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[]);
102 const char *
const valid_keys[],
103 const char *valid_ends);
160 const char *key,
const char *value);
198 const char *key_match);
struct rte_kvargs * rte_kvargs_parse_delim(const char *args, const char *const valid_keys[], const char *valid_ends)
void *(* handler)(void *sock_id)
void rte_kvargs_free(struct rte_kvargs *kvlist)
unsigned rte_kvargs_count(const struct rte_kvargs *kvlist, const char *key_match)
int(* arg_handler_t)(const char *key, const char *value, void *opaque)
const char * rte_kvargs_get(const struct rte_kvargs *kvlist, const char *key)
__rte_experimental const char * rte_kvargs_get_with_value(const struct rte_kvargs *kvlist, const char *key, const char *value)
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)