summaryrefslogtreecommitdiff
path: root/mesh/util.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2017-12-08 08:52:49 -0200
committerJohan Hedberg <johan.hedberg@intel.com>2017-12-08 13:06:12 +0200
commitfc53175b8a3a9833b879f65795bc4ae3e74c949d (patch)
treee157ea6bf33abe8d40f66d577db708327abbf0c7 /mesh/util.h
parent8edcc31fa2a754e0e2ee70f0152485c75bd8271b (diff)
downloadbluez-fc53175b8a3a9833b879f65795bc4ae3e74c949d.tar.gz
mesh: Make meshctl use bt_shell helpers
This makes meshctl use bt_shell to manage the menus and command handling.
Diffstat (limited to 'mesh/util.h')
-rw-r--r--mesh/util.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/mesh/util.h b/mesh/util.h
index 7f729ab62..c3facfa73 100644
--- a/mesh/util.h
+++ b/mesh/util.h
@@ -27,21 +27,7 @@ struct mesh_publication;
#define OP_UNRELIABLE 0x0100
-struct menu_entry {
- const char *cmd;
- const char *arg;
- void (*func) (const char *arg);
- const char *desc;
-};
-
-bool cmd_menu_init(const struct menu_entry *cmd_table);
-void cmd_menu_main(bool forced);
-bool add_cmd_menu(const char *name, const struct menu_entry *cmd_table);
-bool switch_cmd_menu(const char *name);
-void set_menu_prompt(const char *prefix, const char * node);
-void process_menu_cmd(const char *cmd, const char *arg);
-void print_cmd_menu(const struct menu_entry *cmd_table);
-void cmd_menu_cleanup(void);
+void set_menu_prompt(const char *name, const char *id);
void print_byte_array(const char *prefix, const void *ptr, int len);
bool str2hex(const char *str, uint16_t in_len, uint8_t *out_buf,
uint16_t out_len);