From d904612100120d12126f1a6623a106d8a5b02fa6 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Thu, 13 Oct 2011 01:24:16 -0400 Subject: [PATCH] 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. --- glib/deprecated/gthread.h | 9 --------- glib/gthreadprivate.h | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/glib/deprecated/gthread.h b/glib/deprecated/gthread.h index fcecd1e..306c4f3 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 3670b2f..71600e2 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 { -- 2.7.4