Function
PurpleKeyValuePairnew
unstable since: 3.0
Declaration [src]
PurpleKeyValuePair*
purple_key_value_pair_new (
const gchar* key,
gpointer value
)
Description [src]
Creates a new PurpleKeyValuePair allocating memory for key
,
free value function is NULL.
Available since: 3.0
Parameters
key
-
Type:
const gchar*
The key part of PurpleKeyValuePair.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. value
-
Type:
gpointer
The value part of PurpleKeyValuePair.
The argument can be NULL
.The data is owned by the caller of the function.
Return value
Type: PurpleKeyValuePair
The created PurpleKeyValuePair.
The caller of the function takes ownership of the data, and is responsible for freeing it. |