diff options
author | Leo C | 2015-06-06 10:58:34 +0200 |
---|---|---|
committer | Leo C | 2015-06-06 10:58:34 +0200 |
commit | b08e079d1541c80028e3a11affec3f863eb9129d (patch) | |
tree | 5d022b4f1efd4a0a329baae08cbf2a13dcf00c75 /include/cli.h | |
parent | 612a69655af9bed89a1ad9e7e9225dfb3ed3ff42 (diff) | |
download | z180-stamp-b08e079d1541c80028e3a11affec3f863eb9129d.zip |
connect command 'esc \' enhancement, new 'esc :' subcommand
Diffstat (limited to 'include/cli.h')
-rw-r--r-- | include/cli.h | 9 |
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); |