summaryrefslogtreecommitdiffstats
path: root/include/shell.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-04-12 09:21:12 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-15 12:21:44 +0200
commit4e9f324d37e98823eb7179a239d412e9786d9938 (patch)
treedbf48964f86b31bb552c2b821ab597983ae97435 /include/shell.h
parent086d0026a0eadb40e3c5502042a7c20a0ffa1c4f (diff)
downloadbarebox-4e9f324d37e98823eb7179a239d412e9786d9938.tar.gz
barebox-4e9f324d37e98823eb7179a239d412e9786d9938.tar.xz
include: move shell prototypes to shell.h
We have a shell,h, so move shell specific prototypes there. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/shell.h')
-rw-r--r--include/shell.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/shell.h b/include/shell.h
index b98cac3dc5..65dad0e1d1 100644
--- a/include/shell.h
+++ b/include/shell.h
@@ -9,4 +9,15 @@
int shell_get_last_return_code(void);
+int run_shell(void);
+
+#ifdef CONFIG_SHELL_HUSH
+char *shell_expand(char *str);
+#else
+static inline char *shell_expand(char *str)
+{
+ return strdup(str);
+}
+#endif
+
#endif /* __SHELL_H__ */