struct _NgfProplist NgfProplist
Internal property list instance.
Definition: proplist.h:39
void(* NgfProplistCallback)(const char *key, const void *value, void *userdata)
Property list callback for iterating over each entry.
Definition: proplist.h:42
int ngf_proplist_set_as_integer(NgfProplist *proplist, const char *key, int32_t value)
Set a integer value to property list.
void(* NgfProplistExtendedCallback)(const char *key, const void *value, NgfProplistType type, void *userdata)
Extended iteration callback with type information.
Definition: proplist.h:45
void ngf_proplist_foreach(NgfProplist *proplist, NgfProplistCallback callback, void *userdata)
Iterate over each entry in the property list.
int ngf_proplist_parse_unsigned(const char *value, uint32_t *unsigned_value)
Parse unsigned integer value.
const char * ngf_proplist_gets(NgfProplist *proplist, const char *key)
Get a string value from property list.
void ngf_proplist_free_keys(const char **keys)
Free a list of property keys.
int ngf_proplist_parse_integer(const char *value, int32_t *integer_value)
Parse integer value.
NgfProplist * ngf_proplist_copy(NgfProplist *orig)
Create an identical copy of other proplist.
int ngf_proplist_get_as_boolean(NgfProplist *proplist, const char *key, int *boolean_value)
Get a boolean value from the property list.
_NgfProplistType
Definition: proplist.h:30
@ NGF_PROPLIST_VALUE_TYPE_INTEGER
Definition: proplist.h:32
@ NGF_PROPLIST_VALUE_TYPE_STRING
Definition: proplist.h:31
@ NGF_PROPLIST_VALUE_TYPE_BOOLEAN
Definition: proplist.h:34
@ NGF_PROPLIST_VALUE_TYPE_INVALID
Definition: proplist.h:35
@ NGF_PROPLIST_VALUE_TYPE_UNSIGNED
Definition: proplist.h:33
NgfProplist * ngf_proplist_new(void)
Create a new property list instance.
int ngf_proplist_get_as_unsigned(NgfProplist *proplist, const char *key, uint32_t *unsigned_value)
Get unsigned integer value from the property list.
void ngf_proplist_foreach_extended(NgfProplist *proplist, NgfProplistExtendedCallback callback, void *userdata)
Iterate over each entry in the property list and supply a value type.
int ngf_proplist_set_as_boolean(NgfProplist *proplist, const char *key, int value)
Set a boolean value to property list.
int ngf_proplist_sets(NgfProplist *proplist, const char *key, const char *value)
Set a string value to property list.
int ngf_proplist_set_as_unsigned(NgfProplist *proplist, const char *key, uint32_t value)
Set a unsigned integer value to property list.
void ngf_proplist_free(NgfProplist *proplist)
Free property list.
NgfProplistType ngf_proplist_get_value_type(NgfProplist *proplist, const char *key)
Get value type of the property.
int ngf_proplist_get_as_integer(NgfProplist *proplist, const char *key, int32_t *integer_value)
Get integer value from the property list.
enum _NgfProplistType NgfProplistType
int ngf_proplist_parse_boolean(const char *value, int *boolean_value)
Parse boolean value.
const char ** ngf_proplist_get_keys(NgfProplist *proplist)
Get a list of all keys in the property list.