client: Rename set-uuids to uuids 84/204884/1
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 14 Dec 2017 18:09:39 +0000 (16:09 -0200)
committerAmit Purwar <amit.purwar@samsung.com>
Mon, 15 Apr 2019 03:19:55 +0000 (08:49 +0530)
Make the command return the current value if no parameters:

[bluetooth]# uuids 0x1820
[bluetooth]# uuids
UUID: Internet Protocol Support (0x1820

Change-Id: Ia0fa56d8374f1efcfdbc03a2929a2ea8131ba00d
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
client/advertising.c

index 9b1df12..3a2bff8 100644 (file)
@@ -510,7 +510,11 @@ void ad_unregister(DBusConnection *conn, GDBusProxy *manager)
 void ad_advertise_uuids(DBusConnection *conn, int argc, char *argv[])
 {
        if (argc < 2 || !strlen(argv[1])) {
-               print_ad_uuids();
+               char **uuid;
+               
+               for (uuid = ad.uuids; uuid && *uuid; uuid++)
+                       print_uuid(*uuid);
+
                return;
        }