Top | ![]() |
![]() |
![]() |
![]() |
GalagoKeyValue * | galago_key_value_new () |
void | galago_key_value_destroy () |
void | galago_key_value_set_key () |
const char * | galago_key_value_get_key () |
void | galago_key_value_set_value () |
const GValue * | galago_key_value_get_value () |
GalagoKeyValue is a key/value pair, returned in some lists. It uses a string for a key and a GValue for the value type. As such, it can hold any value that has a GType.
GalagoKeyValue * galago_key_value_new (const char *key
,GValue *value
);
Allocates a key/value pair. The GalagoKeyValue will take ownership
of value
.
void
galago_key_value_destroy (GalagoKeyValue *key_value
);
Deallocates a GalagoKeyValue. This will free the contained key and value and the structure itself.
void galago_key_value_set_key (GalagoKeyValue *key_value
,const char *key
);
Sets a new key on a GalagoKeyValue.
const char *
galago_key_value_get_key (const GalagoKeyValue *key_value
);
Gets the key belonging to a GalagoKeyValue.
void galago_key_value_set_value (GalagoKeyValue *key_value
,GValue *value
);
Sets the new value on a GalagoKeyValue. This will destroy the old value set. The GalagoKeyValue will take ownership of the new value.