make struct _GThread private
authorRyan Lortie <desrt@desrt.ca>
Thu, 13 Oct 2011 05:24:16 +0000 (01:24 -0400)
committerRyan Lortie <desrt@desrt.ca>
Thu, 13 Oct 2011 05:34:08 +0000 (01:34 -0400)
Hide the definition of struct _GThread in gthreadprivate.h for now.

This is possibly an API break -- although the structure contents were
undocumented and it was not safe to access them in a meaningful way,
someone may have tried to do it anyway.  We'll leave it here for a while
to see if it causes any problems.

Avoid merging its contents with GRealThread for now, just incase we need
to expose it again.

glib/deprecated/gthread.h
glib/gthreadprivate.h

index fcecd1e..306c4f3 100644 (file)
@@ -43,15 +43,6 @@ typedef enum
   G_THREAD_PRIORITY_URGENT
 } GThreadPriority;
 
-struct  _GThread
-{
-  /*< private >*/
-  GThreadFunc func;
-  gpointer data;
-  gboolean joinable;
-  GThreadPriority priority;
-};
-
 typedef struct _GThreadFunctions GThreadFunctions;
 struct _GThreadFunctions
 {
index 3670b2f..71600e2 100644 (file)
 
 #include "deprecated/gthread.h"
 
+struct  _GThread
+{
+  /*< private >*/
+  GThreadFunc func;
+  gpointer data;
+  gboolean joinable;
+  GThreadPriority priority;
+};
+
 typedef struct _GRealThread GRealThread;
 struct  _GRealThread
 {