Function

GLibDuplicateFunc

Declaration

gpointer
(* GDuplicateFunc) (
  gpointer data,
  gpointer user_data
)

Description [src]

The type of functions that are used to ‘duplicate’ an object. What this means depends on the context, it could just be incrementing the reference count, if data is a ref-counted object.

Parameters

data gpointer
 

The data to duplicate.

user_data gpointer
 

User data that was specified in g_datalist_id_dup_data()

Return value

Returns: gpointer
 

A duplicate of data.