X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/05437fb4cdb907816a4fc3ffafa2617fcf33266a..b51d2360e5a32408daae39b1c311868d0d34374c:/include/cli.h diff --git a/include/cli.h b/include/cli.h index 67ff63b..20e852f 100644 --- a/include/cli.h +++ b/include/cli.h @@ -1,4 +1,13 @@ -#ifndef CLI_H +/* + * (C) Copyright 2014 Leo C. + * + * (C) Copyright 2014 Google, Inc + * Simon Glass + * + * 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 */ -