50 #define KVARGS_PAIRS_DELIM_1 ","
51 #define KVARGS_PAIRS_DELIM_2 ";"
56 #define KVARGS_KV_DELIM "="
61 typedef int (*
arg_handler_t)(
const char *key,
const char *value,
void *opaque);
126 const char *valid_ends);
static int kvargs_int16(const struct kvargs *kv, const char *key, void *arg)
int kvargs_strcmp(const char *key, const char *value, void *opaque)
static int kvargs_int32(const struct kvargs *kv, const char *key, void *arg)
struct kvargs * kvargs_parse_delim(const char *args, const char *const valid_keys[], const char *valid_ends)
static int kvargs_uint32(const struct kvargs *kv, const char *key, void *arg)
unsigned kvargs_count(const struct kvargs *kvlist, const char *key_match)
int kvargs_process_type(const struct kvargs *kvlist, const char *key_match, kvargs_type_t typ, void *opaque_arg)
void kvargs_free(struct kvargs *kvlist)
static int kvargs_uint8(const struct kvargs *kv, const char *key, void *arg)
struct kvargs * kvargs_parse(const char *args, const char *const valid_keys[])
static int kvargs_ptr(const struct kvargs *kv, const char *key, void *arg)
static int kvargs_uint16(const struct kvargs *kv, const char *key, void *arg)
int(* arg_handler_t)(const char *key, const char *value, void *opaque)
static int kvargs_int64(const struct kvargs *kv, const char *key, void *arg)
int kvargs_process(const struct kvargs *kvlist, const char *key_match, arg_handler_t handler, void *opaque_arg)
static int kvargs_int8(const struct kvargs *kv, const char *key, void *arg)
static int kvargs_uint64(const struct kvargs *kv, const char *key, void *arg)
struct kvargs_pair pairs[KVARGS_MAX]