31#include "ove_config.h"
43#define OVE_SHELL_MAX_ARGS 8
79#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:77
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:57
void ove_shell_process_line(const char *line)
Process a complete input line through the shell.
#define OVE_ERR_NOT_SUPPORTED
The requested feature is not supported by the active backend.
Definition types.h:38
Descriptor for a single shell command.
Definition shell.h:66
const char * name
Command name used to match input tokens.
Definition shell.h:67
const char * help
One-line help string shown by the built-in help command.
Definition shell.h:68
ove_shell_cmd_fn handler
Function invoked when the command is matched.
Definition shell.h:69