Shell interface definition. More...
Shell interface definition.
Definition in file shell.h.
Go to the source code of this file.
Data Structures | |
struct | shell_command_t |
A single command in the list of the supported commands. More... | |
Macros | |
#define | SHELL_DEFAULT_BUFSIZE (128) |
Shutdown RIOT on shell exit. More... | |
Typedefs | |
typedef int(* | shell_command_handler_t) (int argc, char **argv) |
Protype of a shell callback handler. More... | |
typedef struct shell_command_t | shell_command_t |
A single command in the list of the supported commands. More... | |
Functions | |
void | shell_post_readline_hook (void) |
Optional hook after readline has triggered. More... | |
void | shell_pre_command_hook (int argc, char **argv) |
Optional hook before shell command is called. More... | |
void | shell_post_command_hook (int ret, int argc, char **argv) |
Optional hook after shell command is called. More... | |
void | shell_run_once (const shell_command_t *commands, char *line_buf, int len) |
Start a shell and exit once EOF is reached. More... | |
static void | shell_run_forever (const shell_command_t *commands, char *line_buf, int len) |
Start a shell and restart it if it exits. More... | |
static void | shell_run (const shell_command_t *commands, char *line_buf, int len) |
Back-porting alias for shell_run_forever. More... | |