summaryrefslogtreecommitdiff
path: root/include/cli.h
diff options
context:
space:
mode:
authorLeo C2015-06-06 10:58:34 +0200
committerLeo C2015-06-06 10:58:34 +0200
commitb08e079d1541c80028e3a11affec3f863eb9129d (patch)
tree5d022b4f1efd4a0a329baae08cbf2a13dcf00c75 /include/cli.h
parent612a69655af9bed89a1ad9e7e9225dfb3ed3ff42 (diff)
downloadz180-stamp-b08e079d1541c80028e3a11affec3f863eb9129d.zip
connect command 'esc \' enhancement, new 'esc :' subcommand
Diffstat (limited to 'include/cli.h')
-rw-r--r--include/cli.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/cli.h b/include/cli.h
index f6fb2ab..4920cc4 100644
--- a/include/cli.h
+++ b/include/cli.h
@@ -66,6 +66,15 @@ void cli_loop(void);
*/
//int cli_simple_parse_line(char *line, char *argv[]);
+/*
+ * Run a command.
+ *
+ * @param cmd Command to run
+ * @param flag Execution flags (CMD_FLAG_...)
+ * @return 0 on success, or != 0 on error.
+ */
+int run_command(const char *cmd, int flag);
+
int run_command_list(const char *cmd, int len);