diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-05-02 11:10:32 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-05-02 11:10:32 +0000 |
commit | 8314289ff46c02984f24347a85b868f2dafc0766 (patch) | |
tree | a5029da428c70775fe02e5a906c40caf914f97af | |
parent | 538416229b5e1be7de0b0882daeac1580decb9e5 (diff) |
TpBaseConnection: simplify access to private area
-rw-r--r-- | docs/reference/telepathy-glib-sections.txt | 1 | ||||
-rw-r--r-- | telepathy-glib/base-connection.c | 4 | ||||
-rw-r--r-- | telepathy-glib/base-connection.h | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/docs/reference/telepathy-glib-sections.txt b/docs/reference/telepathy-glib-sections.txt index 1eae49ed7..cb23d53c5 100644 --- a/docs/reference/telepathy-glib-sections.txt +++ b/docs/reference/telepathy-glib-sections.txt @@ -51,6 +51,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 3c81aa95a..6a35e885a 100644 --- a/telepathy-glib/base-connection.c +++ b/telepathy-glib/base-connection.c @@ -139,7 +139,7 @@ channel_request_cancel (gpointer data, gpointer user_data) channel_request_free (request); } -typedef struct _TpBaseConnectionPrivate +struct _TpBaseConnectionPrivate { /* Telepathy properties */ gchar *protocol; @@ -160,7 +160,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 541128747..ab4f215a7 100644 --- a/telepathy-glib/base-connection.h +++ b/telepathy-glib/base-connection.h @@ -34,6 +34,7 @@ G_BEGIN_DECLS typedef struct _TpBaseConnection TpBaseConnection; typedef struct _TpBaseConnectionClass TpBaseConnectionClass; +typedef struct _TpBaseConnectionPrivate TpBaseConnectionPrivate; /** * TpBaseConnectionProc: @@ -239,7 +240,7 @@ struct _TpBaseConnection { gpointer _future3; gpointer _future4; - gpointer priv; + TpBaseConnectionPrivate *priv; }; GType tp_base_connection_get_type (void); |