client: Add support for the Roles property.
authorAlain Michaud <alainm@chromium.org>
Tue, 7 Jul 2020 02:19:20 +0000 (02:19 +0000)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
This adds support for reading the Roles property through bluetootctl's
show option.

[bluetooth]# show
...
Roles: central
Roles: peripheral
Roles: central-peripheral

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
client/main.c

index e4b9aa8..b3e4fe2 100644 (file)
@@ -924,6 +924,7 @@ static void cmd_show(int argc, char *argv[])
        print_uuids(adapter->proxy);
        print_property(adapter->proxy, "Modalias");
        print_property(adapter->proxy, "Discovering");
+       print_property(adapter->proxy, "Roles");
 
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
        print_property(adapter->proxy, "Advertising");