Function

GLibCopyFunc

Declaration

gpointer
(* GCopyFunc) (
  gconstpointer src,
  gpointer data
)

Description

A function of this signature is used to copy the node data when doing a deep-copy of a tree.

Available since:2.4

Parameters

src gconstpointer
 

A pointer to the data which should be copied.

 The data is owned by the caller of the function.
data gpointer
 

Additional data.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: gpointer
 

A pointer to the copy.

 The data is owned by the called function.