Zigbee Protocol Controller 1.6.0
|
Command handler and generator. More...
Go to the source code of this file.
Functions | |
sl_status_t | uic_stdin_handle_command (const char *command) |
Handle a command e.g. from stdio. More... | |
char * | uic_stdin_command_generator (const char *text, int state) |
Command generator for editline. More... | |
const char * | get_prompt_string () |
Get the prompt string for CLI. More... | |
void | uic_stdin_init () |
Initialize Unify stdin/stdout. More... | |
Command handler and generator.
This component implements default commands like exit, help and log_level. Also it has the basic functionalities of handling these commands and possibility to add more commands to the existing CLI.
const char * get_prompt_string | ( | ) |
Get the prompt string for CLI.
char * uic_stdin_command_generator | ( | const char * | text, |
int | state | ||
) |
Command generator for editline.
This function will be called several times when we are trying to autocomplete a word. See man rl_completion_matches
text | See man rl_completion_matches |
state | See man rl_completion_matches |
sl_status_t uic_stdin_handle_command | ( | const char * | command | ) |
Handle a command e.g. from stdio.
command | Zero terminated string with the command, e.g. "help" |
void uic_stdin_init | ( | ) |
Initialize Unify stdin/stdout.