20#ifdef CONFIG_OVE_SHELL
39 return from_rc(ove_shell_init());
50 return from_rc(ove_shell_register_cmd(cmd));
62 ove_shell_process_char(c);
71 ove_shell_process_line(line);
80 ove_shell_set_output_hook(hook);
Strong ove::Error type, Result<T> alias, and std::error_code interop for the oveRTOS C++ binding.
Thin C++ wrappers around the oveRTOS interactive shell API.
Definition shell.hpp:23
void process_char(int c)
Feeds a single character into the shell input processor.
Definition shell.hpp:60
void process_line(const char *line)
Process a complete input line through the shell.
Definition shell.hpp:69
Result< void > init() noexcept
Initialises the shell subsystem.
Definition shell.hpp:37
Result< void > register_cmd(const struct ove_shell_cmd *cmd) noexcept
Registers a shell command.
Definition shell.hpp:48
void set_output_hook(ove_shell_output_hook_t hook)
Set a hook to capture shell output.
Definition shell.hpp:78
Result< void > from_rc(int rc) noexcept
Lifts a substrate rc-code into a Result<void>.
Definition error.hpp:254
std::expected< T, Error > Result
std::expected-based result alias.
Definition error.hpp:139
Common type definitions and concepts for the C++ wrapper layer.