Function

GLibdatalist_get_data

Declaration

gpointer
g_datalist_get_data (
  GData** datalist,
  const gchar* key
)

Description

Gets a data element, using its string identifier. This is slower than g_datalist_id_get_data() because it compares strings.

Parameters

datalist GData
 

A datalist.

 The data is owned by the caller of the function.
key const gchar*
 

The string identifying a data element.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.

Return value

Returns: gpointer
 

The data element, or NULL if it is not found.