]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/cli.h
Adaptions for fatfs R0.12b
[z180-stamp.git] / include / cli.h
index 67ff63b587eef91308e21c41831c5011264532f4..28e92be7f6719e09ca0d7d85ec9ebd9961e3ac54 100644 (file)
@@ -1,4 +1,13 @@
-#ifndef CLI_H          
+/*
+ * (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
+ */
+
+#ifndef CLI_H
 #define CLI_H
 
 /**
@@ -57,8 +66,16 @@ 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);
 
 
 #endif /* CLI_H */
-