[PATCH BlueZ 2/3] client: Add description for submenus

Luiz Augusto von Dentz
2017-12-12T12:14:18Z

This adds proper descriptions for each submenu.
---
client/main.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/client/main.c b/client/main.c
index f3369e89a..5af4c97d8 100644
--- a/client/main.c
+++ b/client/main.c
@@ -2202,6 +2202,7 @@ static void cmd_set_advertise_timeout(int argc, char *argv[])

static const struct bt_shell_menu advertise_menu = {
.name = "advertise",
+ .desc = "Advertising Management Submenu",
.entries = {
{ "set-uuids", "[uuid1 uuid2 ...]",
cmd_set_advertise_uuids, "Set advertise uuids" },
@@ -2226,6 +2227,7 @@ static const struct bt_shell_menu advertise_menu = {

static const struct bt_shell_menu scan_menu = {
.name = "scan",
+ .desc = "Scan Filters Submenu",
.entries = {
{ "set-filter-uuids", "[uuid1 uuid2 ...]", cmd_set_scan_filter_uuids,
"Set scan filter uuids" },
@@ -2246,6 +2248,7 @@ static const struct bt_shell_menu scan_menu = {

static const struct bt_shell_menu gatt_menu = {
.name = "gatt",
+ .desc = "Generic Attribute Submenu",
.entries = {
{ "list-attributes", "[dev]", cmd_list_attributes, "List attributes",
dev_generator },
--
2.13.6