[glib: 1/5] Moving GCopyFunc typedef from glib/gnode.h to glib/gtypes.h



commit cf29e37c54f6018514792919766055980af0ae22
Author: Emmanuel Fleury <emmanuel fleury u-bordeaux fr>
Date:   Wed Jun 19 10:51:39 2019 +0200

    Moving GCopyFunc typedef from glib/gnode.h to glib/gtypes.h

 glib/gnode.h  | 15 ---------------
 glib/gtypes.h | 14 ++++++++++++++
 2 files changed, 14 insertions(+), 15 deletions(-)
---
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]