Function Macro

GLibdatalist_set_data_full

Declaration [src]

#define g_datalist_set_data_full (
  dl,
  k,
  d,
  f
)

Description [src]

Sets the data element corresponding to the given string identifier, and the function to be called when the data element is removed.

Parameters

dl -
 

A datalist.

k -
 

The string to identify the data element.

d -
 

The data element, or NULL to remove any previous element corresponding to k.

f -
 

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. If d is NULL, then f must also be NULL.