32#include "ove_config.h"
44#define OVE_SHELL_MAX_ARGS 8
80#ifdef CONFIG_OVE_SHELL
int ove_shell_init(void)
Initialise the shell subsystem.
int ove_shell_register_cmd(const struct ove_shell_cmd *cmd)
Register a command with the shell.
void ove_shell_process_char(int c)
Feed one character into the shell input processor.
void(* ove_shell_output_hook_t)(const char *data, size_t len)
Shell output hook for capturing command output.
Definition shell.h:78
void ove_shell_set_output_hook(ove_shell_output_hook_t hook)
Set a hook to capture shell output.
void(* ove_shell_cmd_fn)(int argc, const char *argv[])
Prototype for a shell command handler function.
Definition shell.h:58
void ove_shell_process_line(const char *line)
Process a complete input line through the shell.
@ OVE_ERR_NOT_SUPPORTED
Definition types.h:98
Descriptor for a single shell command.
Definition shell.h:67
const char * name
Command name used to match input tokens.
Definition shell.h:68
const char * help
One-line help string shown by the built-in help command.
Definition shell.h:69
ove_shell_cmd_fn handler
Function invoked when the command is matched.
Definition shell.h:70