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 GDestroyNotify to free value when purple_key_value_pair_free() is called.

Constructors

purple_key_value_pair_new

Creates a new PurpleKeyValuePair allocating memory for key, free value function is NULL.

unstable since: 3.0

purple_key_value_pair_new_full

Creates a new PurpleKeyValuePair allocating memory for key, set free value function to value_destroy_func.

unstable since: 3.0

Instance methods

purple_key_value_pair_copy

Creates a copy of kvp.

unstable since: 3.0

purple_key_value_pair_free

Frees kvp.

unstable since: 3.0