summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2011-10-13 01:24:16 -0400
committerRyan Lortie <desrt@desrt.ca>2011-10-13 01:34:08 -0400
commitd904612100120d12126f1a6623a106d8a5b02fa6 (patch)
tree28c0511ae1fc69ce8e5064bf536f239dd437e9c1
parentb1cc2579c199c6568e1bf5cef1aab7633f99824f (diff)
make struct _GThread private
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.
-rw-r--r--glib/deprecated/gthread.h9
-rw-r--r--glib/gthreadprivate.h9
2 files changed, 9 insertions, 9 deletions
diff --git a/glib/deprecated/gthread.h b/glib/deprecated/gthread.h
index fcecd1ec3..306c4f380 100644
--- a/glib/deprecated/gthread.h
+++ b/glib/deprecated/gthread.h
@@ -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
{
diff --git a/glib/gthreadprivate.h b/glib/gthreadprivate.h
index 3670b2f19..71600e2ad 100644
--- a/glib/gthreadprivate.h
+++ b/glib/gthreadprivate.h
@@ -25,6 +25,15 @@
#include "deprecated/gthread.h"
+struct _GThread
+{
+ /*< private >*/
+ GThreadFunc func;
+ gpointer data;
+ gboolean joinable;
+ GThreadPriority priority;
+};
+
typedef struct _GRealThread GRealThread;
struct _GRealThread
{