diff options
author | Tom Rini <trini@konsulko.com> | 2019-12-03 06:05:35 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-03 06:05:35 +0300 |
commit | a4ef0657e3075d0f951d78cc1398cb7e05af648a (patch) | |
tree | 9a4387de5845e6fd1331f0af32bfd82fac9eb039 /include/command.h | |
parent | 357040645f9f56b33909520483df9f840be7e181 (diff) | |
parent | cb3ef6810a27c8ddf5db8694bcef9337f27d12ce (diff) | |
download | u-boot-a4ef0657e3075d0f951d78cc1398cb7e05af648a.tar.xz |
Merge branch '2019-12-02-master-imports'
- A large series of clean-ups to reduce common.h contents
Diffstat (limited to 'include/command.h')
-rw-r--r-- | include/command.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/command.h b/include/command.h index f6170e7151..d1063774ce 100644 --- a/include/command.h +++ b/include/command.h @@ -199,6 +199,22 @@ void fixup_cmdtable(cmd_tbl_t *cmdtp, int size); * @return 0 if OK, 1 for error */ int board_run_command(const char *cmdline); + +int run_command(const char *cmd, int flag); +int run_command_repeatable(const char *cmd, int flag); + +/** + * Run a list of commands separated by ; or even \0 + * + * Note that if 'len' is not -1, then the command does not need to be nul + * terminated, Memory will be allocated for the command in that case. + * + * @param cmd List of commands to run, each separated bu semicolon + * @param len Length of commands excluding terminator if known (-1 if not) + * @param flag Execution flags (CMD_FLAG_...) + * @return 0 on success, or != 0 on error. + */ +int run_command_list(const char *cmd, int len, int flag); #endif /* __ASSEMBLY__ */ /* |