Struct
PurpleKeyValuePair
Description [src]
struct PurpleKeyValuePair {
gchar* key;
gpointer value;
GDestroyNotify value_destroy_func;
}
A key-value pair.
This is used by, among other things, purple_gtk_combo* functions to pass in a list of key-value pairs so it can display a user-friendly value.
Structure members
key |
The key. |
value |
The value. |
value_destroy_func |
A |
Constructors
purple_key_value_pair_new
Creates a new PurpleKeyValuePair allocating memory for key
,
free value function is NULL.
Available since: 3.0.0
purple_key_value_pair_new_full
Creates a new PurpleKeyValuePair allocating memory for key
,
set free value function to value_destroy_func
.
Available since: 3.0.0
Instance methods
purple_key_value_pair_copy
Creates a copy of kvp
.