diff --git a/glib/gnode.h b/glib/gnode.h index b7220a44c..693e6154d 100644 --- a/glib/gnode.h +++ b/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 diff --git a/glib/gtypes.h b/glib/gtypes.h index 3eba019be..000c4ca31 100644 --- a/glib/gtypes.h +++ b/glib/gtypes.h @@ -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