diff options
Diffstat (limited to 'include/command.h')
| -rw-r--r-- | include/command.h | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/include/command.h b/include/command.h index f782779d8..d3f700fc3 100644 --- a/include/command.h +++ b/include/command.h @@ -64,6 +64,15 @@ extern int var_complete(int argc, char * const argv[], char last_char, int maxv,  extern int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *colp);  #endif +/** + * cmd_process_error() - report and process a possible error + * + * @cmdtp: Command which caused the error + * @err: Error code (0 if none, -ve for error, like -EIO) + * @return 0 if there is not error, 1 (CMD_RET_FAILURE) if an error is found + */ +int cmd_process_error(cmd_tbl_t *cmdtp, int err); +  /*   * Monitor Command   * |