summaryrefslogtreecommitdiffstats
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
parent24a6b3f8eabf08b589a2860aee9b670fa88cd085 (diff)
downloadbarebox-ea5aeb986ca8061b45bfcc73df7285399d714fd0.tar.gz
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>
-rw-r--r--common/menutree.c1
-rw-r--r--common/password.c1
-rw-r--r--drivers/usb/gadget/f_fastboot.c1
-rw-r--r--fs/fs.c1
-rw-r--r--include/command.h1
-rw-r--r--include/common.h1
6 files changed, 5 insertions, 1 deletions
diff --git a/common/menutree.c b/common/menutree.c
index 97e628d..160ba9a 100644
--- a/common/menutree.c
+++ b/common/menutree.c
@@ -12,6 +12,7 @@
#include <environment.h>
#include <libbb.h>
#include <common.h>
+#include <command.h>
#include <glob.h>
#include <menu.h>
#include <fs.h>
diff --git a/common/password.c b/common/password.c
index 5b754d9..05e6180 100644
--- a/common/password.c
+++ b/common/password.c
@@ -24,6 +24,7 @@
#include <digest.h>
#include <malloc.h>
#include <xfuncs.h>
+#include <command.h>
#include <magicvar.h>
#include <clock.h>
#include <init.h>
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index 0df08c9..9a8cd4c 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -17,6 +17,7 @@
#define pr_fmt(fmt) "fastboot: " fmt
#include <common.h>
+#include <command.h>
#include <errno.h>
#include <malloc.h>
#include <fcntl.h>
diff --git a/fs/fs.c b/fs/fs.c
index 440adae..d69e1e9 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -18,6 +18,7 @@
*/
#include <common.h>
+#include <command.h>
#include <fs.h>
#include <driver.h>
#include <errno.h>
diff --git a/include/command.h b/include/command.h
index 3aca1a9..4ed5e37 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
diff --git a/include/common.h b/include/common.h
index 38a6dbf..f653c04 100644
--- a/include/common.h
+++ b/include/common.h
@@ -61,7 +61,6 @@ void __noreturn hang (void);
char *size_human_readable(unsigned long long size);
-int run_command(const char *cmd);
int readline (const char *prompt, char *buf, int len);
/* common/memsize.c */