mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
Moving GCopyFunc typedef from glib/gnode.h to glib/gtypes.h
This commit is contained in:
parent
c411d0aa6d
commit
cf29e37c54
15
glib/gnode.h
15
glib/gnode.h
@ -60,21 +60,6 @@ typedef gboolean (*GNodeTraverseFunc) (GNode *node,
|
||||
typedef void (*GNodeForeachFunc) (GNode *node,
|
||||
gpointer data);
|
||||
|
||||
/**
|
||||
* GCopyFunc:
|
||||
* @src: (not nullable): A pointer to the data which should be copied
|
||||
* @data: Additional data
|
||||
*
|
||||
* A function of this signature is used to copy the node data
|
||||
* when doing a deep-copy of a tree.
|
||||
*
|
||||
* Returns: (not nullable): A pointer to the copy
|
||||
*
|
||||
* Since: 2.4
|
||||
*/
|
||||
typedef gpointer (*GCopyFunc) (gconstpointer src,
|
||||
gpointer data);
|
||||
|
||||
/* N-way tree implementation
|
||||
*/
|
||||
struct _GNode
|
||||
|
@ -118,6 +118,20 @@ typedef void (*GHFunc) (gpointer key,
|
||||
gpointer value,
|
||||
gpointer user_data);
|
||||
|
||||
/**
|
||||
* GCopyFunc:
|
||||
* @src: (not nullable): A pointer to the data which should be copied
|
||||
* @data: Additional data
|
||||
*
|
||||
* A function of this signature is used to copy the node data
|
||||
* when doing a deep-copy of a tree.
|
||||
*
|
||||
* Returns: (not nullable): A pointer to the copy
|
||||
*
|
||||
* Since: 2.4
|
||||
*/
|
||||
typedef gpointer (*GCopyFunc) (gconstpointer src,
|
||||
gpointer data);
|
||||
/**
|
||||
* GFreeFunc:
|
||||
* @data: a data pointer
|
||||
|
Loading…
Reference in New Issue
Block a user