summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-05-02 11:10:32 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-05-02 11:10:32 +0000
commit6621c45ce9e5205d4e64cc78689fec30e840f206 (patch)
tree2caae77e9864cfe09cdb241ff1b17cb8a064baad
parent03b7e2926a54c2ae61df7e80a401a9893809828c (diff)
downloadtelepathy-glib-6621c45ce9e5205d4e64cc78689fec30e840f206.tar.gz
TpBaseConnection: simplify access to private area
20080502111032-53eee-d37dc219fdf02becae0e8038fc8fc47391e0a3b9.gz
-rw-r--r--docs/reference/telepathy-glib-sections.txt1
-rw-r--r--telepathy-glib/base-connection.c4
-rw-r--r--telepathy-glib/base-connection.h3
3 files changed, 5 insertions, 3 deletions
diff --git a/docs/reference/telepathy-glib-sections.txt b/docs/reference/telepathy-glib-sections.txt
index 106413909..cb37356d0 100644
--- a/docs/reference/telepathy-glib-sections.txt
+++ b/docs/reference/telepathy-glib-sections.txt
@@ -42,6 +42,7 @@ tp_base_connection_get_type
TP_BASE_CONNECTION_CLASS
TP_IS_BASE_CONNECTION_CLASS
TP_BASE_CONNECTION_GET_CLASS
+TpBaseConnectionPrivate
</SECTION>
<SECTION>
diff --git a/telepathy-glib/base-connection.c b/telepathy-glib/base-connection.c
index f08704835..d50531dea 100644
--- a/telepathy-glib/base-connection.c
+++ b/telepathy-glib/base-connection.c
@@ -141,7 +141,7 @@ channel_request_cancel (gpointer data, gpointer user_data)
channel_request_free (request);
}
-typedef struct _TpBaseConnectionPrivate
+struct _TpBaseConnectionPrivate
{
/* Telepathy properties */
gchar *protocol;
@@ -162,7 +162,7 @@ typedef struct _TpBaseConnectionPrivate
* Note that this is a GArray of gchar*, not a GPtrArray,
* so that we can use GArray's convenient auto-null-termination. */
GArray *interfaces;
-} TpBaseConnectionPrivate;
+};
static void
tp_base_connection_get_property (GObject *object,
diff --git a/telepathy-glib/base-connection.h b/telepathy-glib/base-connection.h
index b4f69076e..d1418cfac 100644
--- a/telepathy-glib/base-connection.h
+++ b/telepathy-glib/base-connection.h
@@ -51,6 +51,7 @@ G_BEGIN_DECLS
typedef struct _TpBaseConnection TpBaseConnection;
typedef struct _TpBaseConnectionClass TpBaseConnectionClass;
+typedef struct _TpBaseConnectionPrivate TpBaseConnectionPrivate;
/**
* TpBaseConnectionProc:
@@ -256,7 +257,7 @@ struct _TpBaseConnection {
gpointer _future3;
gpointer _future4;
- gpointer priv;
+ TpBaseConnectionPrivate *priv;
};
GType tp_base_connection_get_type (void);