|
ngfd-plugin
|
#include <ngf/value.h>Go to the source code of this file.
Typedefs | |
| typedef struct _NProplist | NProplist |
| Internal proplist structure. More... | |
| typedef void(* | NProplistFunc) (const char *key, const NValue *value, gpointer userdata) |
| Proplist manipulation function definition. More... | |
Functions | |
| NProplist * | n_proplist_new () |
| Initializes new proplist. More... | |
| NProplist * | n_proplist_copy (const NProplist *source) |
| Create copy of existing proplist. More... | |
| NProplist * | n_proplist_copy_keys (const NProplist *source, GList *keys) |
| Create copy of existing proplist, copying only selected keys. More... | |
| void | n_proplist_merge (NProplist *target, const NProplist *source) |
| Merge two proplists. More... | |
| void | n_proplist_merge_keys (NProplist *target, const NProplist *source, GList *keys) |
| Merge only selected keys on proplists. More... | |
| void | n_proplist_free (NProplist *proplist) |
| Free proplist. More... | |
| int | n_proplist_size (const NProplist *proplist) |
| Return number of keys in the proplist. More... | |
| void | n_proplist_foreach (const NProplist *proplist, NProplistFunc func, gpointer userdata) |
| Run function on each key in the proplist. More... | |
| gboolean | n_proplist_is_empty (const NProplist *proplist) |
| Check if the proplist is empty. More... | |
| gboolean | n_proplist_has_key (const NProplist *proplist, const char *key) |
| Check if the proplist has key. More... | |
| gboolean | n_proplist_match_exact (const NProplist *a, const NProplist *b) |
| Check if two proplists are identical. More... | |
| void | n_proplist_set (NProplist *proplist, const char *key, const NValue *value) |
| Insert or update key/value pair in proplist. More... | |
| NValue * | n_proplist_get (const NProplist *proplist, const char *key) |
| Get value from proplist. More... | |
| void | n_proplist_unset (NProplist *proplist, const char *key) |
| Remove key from proplist. More... | |
| void | n_proplist_set_string (NProplist *proplist, const char *key, const char *value) |
| Set or update string value in proplist. More... | |
| const char * | n_proplist_get_string (const NProplist *proplist, const char *key) |
| Get string value from proplist. More... | |
| gchar * | n_proplist_dup_string (const NProplist *proplist, const char *key) |
| Get duplicate of string value from proplist. More... | |
| void | n_proplist_set_int (NProplist *proplist, const char *key, gint value) |
| Set or update int value in proplist. More... | |
| gint | n_proplist_get_int (const NProplist *proplist, const char *key) |
| Get int value from proplist. More... | |
| void | n_proplist_set_uint (NProplist *proplist, const char *key, guint value) |
| Set or update uint value in proplist. More... | |
| guint | n_proplist_get_uint (const NProplist *proplist, const char *key) |
| Get uint value from proplist. More... | |
| void | n_proplist_set_bool (NProplist *proplist, const char *key, gboolean value) |
| Set or update boolean value in proplist. More... | |
| gboolean | n_proplist_get_bool (const NProplist *proplist, const char *key) |
| Get boolean value from proplist. More... | |
| void | n_proplist_set_pointer (NProplist *proplist, const char *key, gpointer value) |
| Set or update pointer value in proplist. More... | |
| gpointer | n_proplist_get_pointer (const NProplist *proplist, const char *key) |
| Get pointer value from proplist. More... | |
| void | n_proplist_dump (const NProplist *proplist) |
| Dump contents of proplist to debug log. More... | |
| typedef struct _NProplist NProplist |
Internal proplist structure.
| typedef void(* NProplistFunc) (const char *key, const NValue *value, gpointer userdata) |
Proplist manipulation function definition.
Used in n_proplist_foreach
| key | Proplist key |
| value | Value associated with key |
| userdata | Userdata |
Create copy of existing proplist.
| source | Source proplist |
Create copy of existing proplist, copying only selected keys.
| source | Source proplist |
| keys | Keys to be copied as GList |
| void n_proplist_dump | ( | const NProplist * | proplist | ) |
| gchar * n_proplist_dup_string | ( | const NProplist * | proplist, |
| const char * | key | ||
| ) |
Get duplicate of string value from proplist.
| proplist | Proplist |
| key | Key |
| void n_proplist_foreach | ( | const NProplist * | proplist, |
| NProplistFunc | func, | ||
| gpointer | userdata | ||
| ) |
Run function on each key in the proplist.
| proplist | Target proplist |
| func | Function to be run |
| userdata | Userdata |
| void n_proplist_free | ( | NProplist * | proplist | ) |
Free proplist.
| proplist | Proplist |
Get value from proplist.
| proplist | Proplist |
| key | Key |
| gboolean n_proplist_get_bool | ( | const NProplist * | proplist, |
| const char * | key | ||
| ) |
Get boolean value from proplist.
| proplist | Proplist |
| key | Key |
| gint n_proplist_get_int | ( | const NProplist * | proplist, |
| const char * | key | ||
| ) |
Get int value from proplist.
| proplist | Proplist |
| key | Key |
| gpointer n_proplist_get_pointer | ( | const NProplist * | proplist, |
| const char * | key | ||
| ) |
Get pointer value from proplist.
| proplist | Proplist |
| key | Key |
| const char * n_proplist_get_string | ( | const NProplist * | proplist, |
| const char * | key | ||
| ) |
Get string value from proplist.
| proplist | Proplist |
| key | Key |
| guint n_proplist_get_uint | ( | const NProplist * | proplist, |
| const char * | key | ||
| ) |
Get uint value from proplist.
| proplist | Proplist |
| key | Key |
| gboolean n_proplist_has_key | ( | const NProplist * | proplist, |
| const char * | key | ||
| ) |
Check if the proplist has key.
| proplist | Proplist |
| key | Key |
| gboolean n_proplist_is_empty | ( | const NProplist * | proplist | ) |
Check if the proplist is empty.
| proplist | Proplist |
Check if two proplists are identical.
| a | Proplist A |
| b | Proplist B |
Merge two proplists.
| target | Target proplist |
| source | Source to be merged to target |
Merge only selected keys on proplists.
| target | Target proplist |
| source | Source to be merged to target |
| keys | List of keys to be merged as GList |
| NProplist * n_proplist_new | ( | ) |
Initializes new proplist.
Insert or update key/value pair in proplist.
| proplist | Proplist |
| key | Key |
| value | Value |
| void n_proplist_set_bool | ( | NProplist * | proplist, |
| const char * | key, | ||
| gboolean | value | ||
| ) |
Set or update boolean value in proplist.
| proplist | Proplist |
| key | Key |
| value | Value |
| void n_proplist_set_int | ( | NProplist * | proplist, |
| const char * | key, | ||
| gint | value | ||
| ) |
Set or update int value in proplist.
| proplist | Proplist |
| key | Key |
| value | Value |
| void n_proplist_set_pointer | ( | NProplist * | proplist, |
| const char * | key, | ||
| gpointer | value | ||
| ) |
Set or update pointer value in proplist.
| proplist | Proplist |
| key | Key |
| value | Value |
| void n_proplist_set_string | ( | NProplist * | proplist, |
| const char * | key, | ||
| const char * | value | ||
| ) |
Set or update string value in proplist.
| proplist | Proplist |
| key | Key |
| value | Value |
| void n_proplist_set_uint | ( | NProplist * | proplist, |
| const char * | key, | ||
| guint | value | ||
| ) |
Set or update uint value in proplist.
| proplist | Proplist |
| key | Key |
| value | Value |
| int n_proplist_size | ( | const NProplist * | proplist | ) |
Return number of keys in the proplist.
| proplist | Proplist |
| void n_proplist_unset | ( | NProplist * | proplist, |
| const char * | key | ||
| ) |
Remove key from proplist.
| proplist | Proplist |
| key | Key |