4 #include <readline/readline.h>
6 #define MAX_MENU_ELEMS 100
8 extern int cmd_help(char *args
);
9 extern int cmd_quit(char *args
);
10 extern int cmd_stat(char *args
);
11 extern int cmd_call(char *args
);
12 extern int cmd_hangup(char *args
);
13 extern int cmd_take(char *arg
);
17 rl_icpfunc_t
*callback
;
19 struct shell_cmd
*sub_cmd
;
22 static struct shell_cmd show_node
[] = {
23 { "settings", cmd_help
, "Show settings", NULL
, },
24 { "pubkey", cmd_help
, "Show my public key", NULL
, },
25 { "contacts", cmd_help
, "Show my contacts", NULL
, },
26 { NULL
, NULL
, NULL
, NULL
, },
29 static struct shell_cmd import_node
[] = {
30 { "contact", cmd_help
, "Import a contact user/pubkey", NULL
, },
31 { NULL
, NULL
, NULL
, NULL
, },
34 static struct shell_cmd cmd_tree
[] = {
35 { "help", cmd_help
, "Show help", NULL
, },
36 { "quit", cmd_quit
, "Exit shell", NULL
, },
37 { "call", cmd_call
, "Perform a call", NULL
, },
38 { "hangup", cmd_hangup
, "Hangup the current call", NULL
, },
39 { "take", cmd_take
, "Take a call", NULL
, },
40 { "show", NULL
, "Show information", show_node
, },
41 { "import", NULL
, "Import things", import_node
, },
42 { NULL
, NULL
, NULL
, NULL
, },
45 #endif /* CLICMDS_H */