summaryrefslogtreecommitdiffstats
path: root/include/command.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-04-11 10:17:42 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-15 12:21:44 +0200
commitea5aeb986ca8061b45bfcc73df7285399d714fd0 (patch)
tree42dc13f627010b932ed85ddf2442722576001a59 /include/command.h
parent24a6b3f8eabf08b589a2860aee9b670fa88cd085 (diff)
downloadbarebox-ea5aeb986ca8061b45bfcc73df7285399d714fd0.tar.gz
barebox-ea5aeb986ca8061b45bfcc73df7285399d714fd0.tar.xz
include: move run_command prototype to command.h
run_command fits much better into command.h, move it there. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/command.h')
-rw-r--r--include/command.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/command.h b/include/command.h
index 3aca1a9f1b..4ed5e37395 100644
--- a/include/command.h
+++ b/include/command.h
@@ -71,6 +71,7 @@ extern struct command __barebox_cmd_end;
struct command *find_cmd(const char *cmd);
int execute_command(int argc, char **argv);
void barebox_cmd_usage(struct command *cmdtp);
+int run_command(const char *cmd);
#define COMMAND_SUCCESS 0
#define COMMAND_ERROR 1