]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/command.h
CONFIGS: peach-pit: Enable display for peach_pit board
[karo-tx-uboot.git] / include / command.h
index f782779d8bdf6847745dbf056fcfe04aa42b681f..6f06db1cc302ee219bd5c3ad75dd04723ec8895e 100644 (file)
@@ -11,7 +11,6 @@
 #ifndef __COMMAND_H
 #define __COMMAND_H
 
-#include <config.h>
 #include <linker_lists.h>
 
 #ifndef NULL
@@ -64,6 +63,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
  *