From 4f7162071f885714f8a3aaedc50333576e2dd8f5 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 22 Mar 2018 11:19:14 +0200 Subject: [PATCH] doc/gatt-api: Includes shall not be mandatory It is perfectly fine to have a service without any Includes. --- doc/gatt-api.txt | 2 +- src/gatt-database.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/gatt-api.txt b/doc/gatt-api.txt index f58de23c3..60a997cbf 100644 --- a/doc/gatt-api.txt +++ b/doc/gatt-api.txt @@ -45,7 +45,7 @@ Properties string UUID [read-only] belongs to. Only present on services from remote devices. - array{object} Includes [read-only] + array{object} Includes [read-only, optional] Array of object paths representing the included services of this service. diff --git a/src/gatt-database.c b/src/gatt-database.c index ce0e03f0f..24bcef5f4 100644 --- a/src/gatt-database.c +++ b/src/gatt-database.c @@ -1633,7 +1633,7 @@ static bool parse_includes(GDBusProxy *proxy, struct external_service *service) char *obj; if (!g_dbus_proxy_get_property(proxy, "Includes", &iter)) - return false; + return true; if (dbus_message_iter_get_arg_type(&iter) != DBUS_TYPE_ARRAY) return false; -- 2.47.3