summaryrefslogtreecommitdiff
path: root/include/command.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-02-14 19:59:23 +0000
committerWolfgang Denk <wd@denx.de>2012-03-06 21:09:34 +0100
commitbdf8e34b936e2b94990ab6ce8dd5463d14d173dd (patch)
tree1cd5822ee530eaba3b22fb6fcf50967c6fce6d19 /include/command.h
parent7fed89e00e0836f7894f350716b3f182ee562760 (diff)
downloadu-boot-bdf8e34b936e2b94990ab6ce8dd5463d14d173dd.tar.gz
u-boot-bdf8e34b936e2b94990ab6ce8dd5463d14d173dd.tar.bz2
u-boot-bdf8e34b936e2b94990ab6ce8dd5463d14d173dd.zip
Create a single cmd_call() function to handle command execution
We should aim for a single point of entry to the commands, whichever parser is used. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/command.h')
-rw-r--r--include/command.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/command.h b/include/command.h
index 3912b80cdd..6dc694f7a8 100644
--- a/include/command.h
+++ b/include/command.h
@@ -112,6 +112,8 @@ static inline int bootm_maybe_autostart(cmd_tbl_t *cmdtp, const char *cmd)
#endif
extern int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+int cmd_call(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
+
#endif /* __ASSEMBLY__ */
/*
@@ -150,4 +152,5 @@ extern int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
#if defined(CONFIG_NEEDS_MANUAL_RELOC)
void fixup_cmdtable(cmd_tbl_t *cmdtp, int size);
#endif
+
#endif /* __COMMAND_H */