[Telepathy-commits] [telepathy-glib/master] SimpleConnectionManager: create opaque types for private data

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Mar 3 06:20:11 PST 2009


Same reasoning as for the examples: this is likely to be copied, so we'd
better get it right pre-emptively.
---
 tests/lib/simple-manager.h |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/lib/simple-manager.h b/tests/lib/simple-manager.h
index 748f43c..dddd7fb 100644
--- a/tests/lib/simple-manager.h
+++ b/tests/lib/simple-manager.h
@@ -17,18 +17,21 @@
 G_BEGIN_DECLS
 
 typedef struct _SimpleConnectionManager SimpleConnectionManager;
+typedef struct _SimpleConnectionManagerPrivate SimpleConnectionManagerPrivate;
 typedef struct _SimpleConnectionManagerClass SimpleConnectionManagerClass;
+typedef struct _SimpleConnectionManagerClassPrivate
+  SimpleConnectionManagerClassPrivate;
 
 struct _SimpleConnectionManagerClass {
     TpBaseConnectionManagerClass parent_class;
 
-    gpointer priv;
+    SimpleConnectionManagerClassPrivate *priv;
 };
 
 struct _SimpleConnectionManager {
     TpBaseConnectionManager parent;
 
-    gpointer priv;
+    SimpleConnectionManagerPrivate *priv;
 };
 
 GType simple_connection_manager_get_type (void);
-- 
1.5.6.5




More information about the telepathy-commits mailing list