struct _kv_pair { KVType type; char *key; int length; union { char *_string_value; int _int_value; unsigned char *_binary_value; struct kv_list *_list_value; } _value; #define string_value _value._string_value #define int_value _value._int_value #define binary_value _value._binary_value #define list_value _value._list_value struct _kv_pair *kv_next; struct _kv_pair *kv_prev; }; typedef struct _kv_pair TKVPair;
type
—
Variable type of _value
.
key
—
A pointer to the key name.
length
—
Length of _value
in
bytes.
_value
—
Current value of key.
kv_next
—
A pointer to the next pair on the
list.
kv_prev
—
A pointer to the previous pair
on the list.