From b531101e9f3b6654476d236213ea22e100869a9c Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 18 Mar 2011 11:43:16 +0100 Subject: auth-factory: use a proper priv pointer --- libempathy/empathy-auth-factory.c | 4 ++-- libempathy/empathy-auth-factory.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'libempathy') diff --git a/libempathy/empathy-auth-factory.c b/libempathy/empathy-auth-factory.c index 070bbfcff..346d43fc0 100644 --- a/libempathy/empathy-auth-factory.c +++ b/libempathy/empathy-auth-factory.c @@ -35,14 +35,14 @@ G_DEFINE_TYPE (EmpathyAuthFactory, empathy_auth_factory, TP_TYPE_BASE_CLIENT); -typedef struct { +struct _EmpathyAuthFactoryPriv { /* Keep a ref here so the auth client doesn't have to mess with * refs. It will be cleared when the channel (and so the handler) * gets invalidated. */ EmpathyServerSASLHandler *sasl_handler; gboolean dispose_run; -} EmpathyAuthFactoryPriv; +}; enum { NEW_SERVER_TLS_HANDLER, diff --git a/libempathy/empathy-auth-factory.h b/libempathy/empathy-auth-factory.h index 6f62a7a86..e9a670ceb 100644 --- a/libempathy/empathy-auth-factory.h +++ b/libempathy/empathy-auth-factory.h @@ -29,6 +29,7 @@ G_BEGIN_DECLS typedef struct _EmpathyAuthFactory EmpathyAuthFactory; typedef struct _EmpathyAuthFactoryClass EmpathyAuthFactoryClass; +typedef struct _EmpathyAuthFactoryPriv EmpathyAuthFactoryPriv; struct _EmpathyAuthFactoryClass { TpBaseClientClass parent_class; @@ -36,7 +37,7 @@ struct _EmpathyAuthFactoryClass { struct _EmpathyAuthFactory { TpBaseClient parent; - gpointer priv; + EmpathyAuthFactoryPriv *priv; }; GType empathy_auth_factory_get_type (void); -- cgit v1.2.3