diff mbox series

[BlueZ,2/2] client: Add support for the Roles property.

Message ID 20200707021920.209213-2-alainm@chromium.org (mailing list archive)
State Accepted
Headers show
Series [BlueZ,1/2] adapter: add support for the Roles property | expand

Commit Message

Alain Michaud July 7, 2020, 2:19 a.m. UTC
This adds support for reading the Roles property through bluetootctl's
show option.

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

---

 client/main.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/client/main.c b/client/main.c
index c0b351aed..8af7c4e0f 100644
--- a/client/main.c
+++ b/client/main.c
@@ -925,6 +925,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");
 
 	if (adapter->ad_proxy) {
 		bt_shell_printf("Advertising Features:\n");