Jump to: navigation, search

TKVPair

Syntax

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;

Values

  • 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.

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on June 27, 2017, at 12:22.