From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> This adds a field for submenu description. --- src/shared/shell.c | 3 ++- src/shared/shell.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/shell.c b/src/shared/shell.c index 3aa49597c..b4fdf7043 100644 --- a/src/shared/shell.c +++ b/src/shared/shell.c @@ -208,7 +208,8 @@ static void shell_print_menu(void) submenu = submenu->next) { struct bt_shell_menu *menu = submenu->data; - print_submenu(menu->name, "Submenu"); + print_submenu(menu->name, menu->desc ? menu->desc : + "Submenu"); } } diff --git a/src/shared/shell.h b/src/shared/shell.h index 5f86ed61e..8b8b1f634 100644 --- a/src/shared/shell.h +++ b/src/shared/shell.h @@ -52,6 +52,7 @@ struct bt_shell_menu_entry { struct bt_shell_menu { const char *name; + const char *desc; const struct bt_shell_menu_entry entries[]; }; -- 2.13.6 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html