]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/cli.h
refactor path functions, working do_rm()
[z180-stamp.git] / include / cli.h
index 4920cc47e45bed7d1372370a31f21f3ce0f5e3d3..e6df4085d99172be3b8909d041994271a8a0ca24 100644 (file)
@@ -1,15 +1,17 @@
 /*
- * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ * (C) Copyright 2014-2016 Leo C. <erbl259-lmu@yahoo.de>
  *
  * (C) Copyright 2014 Google, Inc
  * Simon Glass <sjg@chromium.org>
  *
- * SPDX-License-Identifier:    GPL-2.0+
+ * SPDX-License-Identifier:    GPL-2.0
  */
 
 #ifndef CLI_H
 #define CLI_H
 
+#include "common.h"
+
 /**
  * Go into the command loop
  *
@@ -30,7 +32,7 @@ void cli_loop(void);
  *           (If cmd is NULL or "" or longer than CONFIG_SYS_CBSIZE-1 it is
  *           considered unrecognized)
  */
-//int cli_simple_run_command(const char *cmd, int flag);
+//int cli_simple_run_command(const char *cmd, uint_fast8_t flag);
 
 /**
  * cli_simple_run_command_list() - Execute a list of command
@@ -45,7 +47,7 @@ void cli_loop(void);
  * @param flag Execution flags (CMD_FLAG_...)
  * @return 0 on success, or != 0 on error.
  */
-//int cli_simple_run_command_list(char *cmd, int flag);
+//int cli_simple_run_command_list(char *cmd, uint_fast8_t flag);
 
 /**
  * parse_line() - split a command line down into separate arguments
@@ -73,7 +75,7 @@ void cli_loop(void);
  * @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(const char *cmd, uint_fast8_t flag);
 
 int run_command_list(const char *cmd, int len);