summaryrefslogtreecommitdiff
path: root/include/command.h
diff options
context:
space:
mode:
authorDetlev Zundel <dzu@denx.de>2009-03-25 17:27:52 +0100
committerWolfgang Denk <wd@denx.de>2009-03-27 21:06:30 +0100
commit2dce551e10728f9e5655279f761f1d3cc0a8fe90 (patch)
tree981e2c3efa07a2058fa98b745243a230ba1f15e5 /include/command.h
parent4e325fbfa4dea04eceb6392e00807c40d214dc6f (diff)
command.c: Expose the core of do_help as _do_help to the rest of u-boot.
Other commands implementing subcommands can reuse this code nicely. Signed-off-by: Detlev Zundel <dzu@denx.de> Signed-off-by: Andreas Pfefferle <ap@denx.de>
Diffstat (limited to 'include/command.h')
-rw-r--r--include/command.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/command.h b/include/command.h
index d7321af92bc..bd478539250 100644
--- a/include/command.h
+++ b/include/command.h
@@ -1,5 +1,5 @@
/*
- * (C) Copyright 2000
+ * (C) Copyright 2000-2009
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* See file CREDITS for list of people who contributed to this
@@ -66,6 +66,8 @@ extern cmd_tbl_t __u_boot_cmd_end;
/* common/command.c */
+int _do_help (cmd_tbl_t *cmd_start, int cmd_items, cmd_tbl_t * cmdtp, int
+ flag, int argc, char *argv[]);
cmd_tbl_t *find_cmd(const char *cmd);
cmd_tbl_t *find_cmd_tbl (const char *cmd, cmd_tbl_t *table, int table_len);