summaryrefslogtreecommitdiffstats
path: root/include/shell.h
blob: 65dad0e1d147fc3397be86419cfda9dea0b704c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * (C) Copyright 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
 *
 * Under GPLv2 only
 */

#ifndef __SHELL_H__
#define __SHELL_H__

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__ */