[Telepathy-commits] [telepathy-glib/master] TpContact: hide object and class structs

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Oct 22 02:42:21 PDT 2008


TpContact isn't usefully subclassable anyway, so we might as well enforce that.
---
 telepathy-glib/contact.c |   11 +++++++++++
 telepathy-glib/contact.h |   11 -----------
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/telepathy-glib/contact.c b/telepathy-glib/contact.c
index 03d1376..b0d7cf6 100644
--- a/telepathy-glib/contact.c
+++ b/telepathy-glib/contact.c
@@ -47,6 +47,17 @@
  * tp_connection_get_contacts_by_id().
  */
 
+struct _TpContactClass {
+    /*<private>*/
+    GObjectClass parent_class;
+};
+
+struct _TpContact {
+    /*<private>*/
+    GObject parent;
+    TpContactPrivate *priv;
+};
+
 /**
  * TpContactFeature:
  * @TP_CONTACT_FEATURE_ALIAS: #TpContact:alias
diff --git a/telepathy-glib/contact.h b/telepathy-glib/contact.h
index 35b8440..a753105 100644
--- a/telepathy-glib/contact.h
+++ b/telepathy-glib/contact.h
@@ -32,17 +32,6 @@ typedef struct _TpContact TpContact;
 typedef struct _TpContactClass TpContactClass;
 typedef struct _TpContactPrivate TpContactPrivate;
 
-struct _TpContactClass {
-    /*<private>*/
-    GObjectClass parent_class;
-};
-
-struct _TpContact {
-    /*<private>*/
-    GObject parent;
-    TpContactPrivate *priv;
-};
-
 GType tp_contact_get_type (void) G_GNUC_CONST;
 
 #define TP_TYPE_CONTACT \
-- 
1.5.6.5




More information about the Telepathy-commits mailing list