Helper Reference Manual  1.7.1
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. More...
 

Functions

void odph_cli_param_init (odph_cli_param_t *param)
 Initialize CLI server params. More...
 
int odph_cli_init (const odph_cli_param_t *param)
 Initialize CLI helper. More...
 
int odph_cli_register_command (const char *name, odph_cli_user_cmd_func_t func, const char *help)
 Register a user defined command. More...
 
int odph_cli_run (void)
 Run CLI server. More...
 
int odph_cli_stop (void)
 Stop CLI server. More...
 
int odph_cli_log (const char *fmt,...)
 Print to CLI. More...
 
int odph_cli_log_va (const char *fmt, va_list in_args)
 Print to CLI. More...
 
int odph_cli_term (void)
 Terminate CLI helper. More...
 

Detailed Description

ODP CLI helper.

Definition in file cli.h.