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>
This commit is contained in:
parent
086d0026a0
commit
4e9f324d37
|
@ -16,6 +16,7 @@
|
|||
#include <glob.h>
|
||||
#include <menu.h>
|
||||
#include <fs.h>
|
||||
#include <shell.h>
|
||||
#include <libfile.h>
|
||||
|
||||
#include <linux/stat.h>
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
* @brief Main entry into the C part of barebox
|
||||
*/
|
||||
#include <common.h>
|
||||
#include <shell.h>
|
||||
#include <init.h>
|
||||
#include <command.h>
|
||||
#include <malloc.h>
|
||||
|
|
|
@ -102,17 +102,6 @@ extern int (*barebox_main)(void);
|
|||
void __noreturn start_barebox(void);
|
||||
void shutdown_barebox(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
|
||||
|
||||
#define ALIGN_DOWN(x, a) ((x) & ~((typeof(x))(a) - 1))
|
||||
|
||||
#define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x)
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in New Issue