28 #include <rte_compat.h> 31 #define RTE_KVARGS_MAX 32 34 #define RTE_KVARGS_PAIRS_DELIM "," 37 #define RTE_KVARGS_KV_DELIM "=" 40 typedef int (*
arg_handler_t)(
const char *key,
const char *value,
void *opaque);
74 const char *
const valid_keys[]);
103 const char *
const valid_keys[],
104 const char *valid_ends);
139 const char *key_match,
arg_handler_t handler,
void *opaque_arg);
153 const char *key_match);
void rte_kvargs_free(struct rte_kvargs *kvlist)
unsigned rte_kvargs_count(const struct rte_kvargs *kvlist, const char *key_match)
__rte_experimental struct rte_kvargs * rte_kvargs_parse_delim(const char *args, const char *const valid_keys[], const char *valid_ends)
int(* arg_handler_t)(const char *key, const char *value, void *opaque)
struct rte_kvargs_pair pairs[RTE_KVARGS_MAX]
struct rte_kvargs * rte_kvargs_parse(const char *args, const char *const valid_keys[])
int rte_kvargs_process(const struct rte_kvargs *kvlist, const char *key_match, arg_handler_t handler, void *opaque_arg)
__rte_experimental int rte_kvargs_strcmp(const char *key, const char *value, void *opaque)