summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-10-01 10:15:38 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2007-10-01 10:15:38 +0200
commit1e3465553be1cb7cb982b69658b70fe6e68e9fbd (patch)
tree1ced9ac47790b1752bdae75d34693ad01be2e19c /include
parentc41b41f9e778e48f3afe7956870c7c7f1e10d006 (diff)
downloadbarebox-1e3465553be1cb7cb982b69658b70fe6e68e9fbd.tar.gz
barebox-1e3465553be1cb7cb982b69658b70fe6e68e9fbd.tar.xz
Add register_command() to register a command in runtime. This
is only needed when modules are enabled, so the change is inside "#ifdef CONFIG_MODULE"
Diffstat (limited to 'include')
-rw-r--r--include/command.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/command.h b/include/command.h
index 7a3cb398b3..b1e5f4caf2 100644
--- a/include/command.h
+++ b/include/command.h
@@ -110,4 +110,6 @@ const cmd_tbl_t __u_boot_cmd_##_name \
#define U_BOOT_CMD_HELP(text)
#endif
+int register_command(cmd_tbl_t *);
+
#endif /* __COMMAND_H */