gobject: move _g_type_debug_flags from gtype.h to gtype-private.h
authorKang Hu <hukangustc@gmail.com>
Sat, 10 May 2014 12:47:57 +0000 (20:47 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 28 Jun 2014 18:00:32 +0000 (14:00 -0400)
_g_type_debug_flags is used internally to suport GOBJECT_DEBUG
environment variable. it should never be exposed to the outside.

https://bugzilla.gnome.org/show_bug.cgi?id=729914

gobject/gtype-private.h
gobject/gtype.h

index e599bd9..d7e2ee2 100644 (file)
@@ -26,6 +26,8 @@
 
 G_BEGIN_DECLS
 
+extern GTypeDebugFlags _g_type_debug_flags;
+
 typedef struct _GRealClosure  GRealClosure;
 struct _GRealClosure
 {
index c604d53..3db7f2e 100644 (file)
@@ -1984,7 +1984,6 @@ const gchar *    g_type_name_from_class         (GTypeClass       *g_class);
  * A bit in the type number that's supposed to be left untouched.
  */
 #define        G_TYPE_FLAG_RESERVED_ID_BIT     ((GType) (1 << 0))
-extern GTypeDebugFlags                 _g_type_debug_flags;
 
 G_END_DECLS