Function

GLibdataset_id_set_data_full

Declaration

void
g_dataset_id_set_data_full (
  gconstpointer dataset_location,
  GQuark key_id,
  gpointer data,
  GDestroyNotify destroy_func
)

Description

Sets the data element associated with the given GQuark id, and also the function to call when the data element is destroyed. Any previous data with the same key is removed, and its destroy function is called.

Parameters

dataset_location gconstpointer
 

The location identifying the dataset.

key_id GQuark
 

The GQuark id to identify the data element.

data gpointer
 

The data element.

destroy_func GDestroyNotify
 

The function to call when the data element is removed. This function will be called with the data element and can be used to free any memory allocated for it.