[glib] make struct _GThread private
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] make struct _GThread private
- Date: Thu, 13 Oct 2011 05:35:04 +0000 (UTC)
commit d904612100120d12126f1a6623a106d8a5b02fa6
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Oct 13 01:24:16 2011 -0400
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
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]