int odph_cli_init(const odph_cli_param_t *param)
Initialize CLI helper.
void(* odph_cli_user_cmd_func_t)(int argc, char *argv[])
User defined command function type.
int odph_cli_log(const char *fmt,...)
Print to CLI.
int odph_cli_register_command(const char *name, odph_cli_user_cmd_func_t func, const char *help)
Register a user defined command.
int odph_cli_term(void)
Terminate CLI helper.
int odph_cli_run(void)
Run CLI server.
int odph_cli_log_va(const char *fmt, va_list in_args)
Print to CLI.
void odph_cli_param_init(odph_cli_param_t *param)
Initialize CLI server params.
int odph_cli_stop(void)
Stop CLI server.
ODP CLI server parameters.
const char * address
A character string containing an IP address.
uint32_t max_user_commands
Maximum number of user defined commands.
const char * hostname
Hostname to be displayed as the first part of the prompt.