Helper Reference Manual 1.7.1
Loading...
Searching...
No Matches
cli.h File Reference

ODP CLI helper. More...

#include <stdarg.h>
#include <stdint.h>
Include dependency graph for cli.h:

Go to the source code of this file.

Data Structures

struct  odph_cli_param_t
 ODP CLI server parameters. More...
 

Typedefs

typedef void(* odph_cli_user_cmd_func_t) (int argc, char *argv[])
 User defined command function type.
 

Functions

void odph_cli_param_init (odph_cli_param_t *param)
 Initialize CLI server params.
 
int odph_cli_init (const odph_cli_param_t *param)
 Initialize CLI helper.
 
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_run (void)
 Run CLI server.
 
int odph_cli_stop (void)
 Stop CLI server.
 
int odph_cli_log (const char *fmt,...)
 Print to CLI.
 
int odph_cli_log_va (const char *fmt, va_list in_args)
 Print to CLI.
 
int odph_cli_term (void)
 Terminate CLI helper.
 

Detailed Description

ODP CLI helper.

Definition in file cli.h.