13 #include <sys/queue.h>
22 typedef char *(*cli_sfunc_t)(
const char *str);
26 TAILQ_ENTRY(env_node) next;
65 CNDP_API
int cli_env_set(
struct cli_env *env,
const char *var,
const char *val);
94 CNDP_API
const char *
cli_env_get(
struct cli_env *env,
const char *var);
146 CNDP_API
int cli_env_get_all(
struct cli_env *env,
struct env_node **list,
int max_size);
static int cli_env_count(struct cli_env *env)
CNDP_API struct cli_env * cli_env_create(void)
char *(* cli_sfunc_t)(const char *str)
CNDP_API int cli_env_get_all(struct cli_env *env, struct env_node **list, int max_size)
CNDP_API void cli_env_substitution(struct cli_env *env, char *line, int sz)
CNDP_API int cli_env_set(struct cli_env *env, const char *var, const char *val)
CNDP_API int cli_env_del(struct cli_env *env, const char *var)
CNDP_API void cli_env_show(struct cli_env *env)
CNDP_API const char * cli_env_get(struct cli_env *env, const char *var)
CNDP_API int cli_env_string(struct cli_env *env, const char *var, cli_sfunc_t sfunc, const char *val)
CNDP_API void cli_env_destroy(struct cli_env *env)
TAILQ_HEAD(pktdev_driver_list, pktdev_driver)