doc/gatt-api: Includes shall not be mandatory 49/204949/1
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 22 Mar 2018 09:19:14 +0000 (11:19 +0200)
committerAmit Purwar <amit.purwar@samsung.com>
Fri, 26 Apr 2019 10:52:54 +0000 (16:22 +0530)
It is perfectly fine to have a service without any Includes.

Change-Id: Ibc8746d3a961d0900fa90c7b0be04e2a10b64aca
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
doc/gatt-api.txt
src/gatt-database.c

index 6fa44c3..5be82c5 100755 (executable)
@@ -55,7 +55,7 @@ Properties    string UUID [read-only]
                        ObjectManager as soon as they get discovered.
 #endif
 
-               array{object} Includes [read-only]
+               array{object} Includes [read-only, optional]
 
                        Array of object paths representing the included
                        services of this service.
index 6c2b552..1adb5b6 100644 (file)
@@ -1986,7 +1986,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;