]> git.0d.be Git - empathy.git/commitdiff
auth-factory: use a proper priv pointer
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 18 Mar 2011 10:43:16 +0000 (11:43 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 18 Mar 2011 12:47:53 +0000 (13:47 +0100)
libempathy/empathy-auth-factory.c
libempathy/empathy-auth-factory.h

index 070bbfcff5656f19b60ee42c1f2e2e9af2dae31b..346d43fc0f0bcd7da32c7139b359408670099f1d 100644 (file)
 
 G_DEFINE_TYPE (EmpathyAuthFactory, empathy_auth_factory, TP_TYPE_BASE_CLIENT);
 
 
 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;
   /* 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,
 
 enum {
   NEW_SERVER_TLS_HANDLER,
index 6f62a7a86af27ec2ee786a2596a007825ff3dca8..e9a670ceb2d48a9e3b17f0983d29d3160b7e59d9 100644 (file)
@@ -29,6 +29,7 @@ G_BEGIN_DECLS
 
 typedef struct _EmpathyAuthFactory EmpathyAuthFactory;
 typedef struct _EmpathyAuthFactoryClass EmpathyAuthFactoryClass;
 
 typedef struct _EmpathyAuthFactory EmpathyAuthFactory;
 typedef struct _EmpathyAuthFactoryClass EmpathyAuthFactoryClass;
+typedef struct _EmpathyAuthFactoryPriv EmpathyAuthFactoryPriv;
 
 struct _EmpathyAuthFactoryClass {
     TpBaseClientClass parent_class;
 
 struct _EmpathyAuthFactoryClass {
     TpBaseClientClass parent_class;
@@ -36,7 +37,7 @@ struct _EmpathyAuthFactoryClass {
 
 struct _EmpathyAuthFactory {
     TpBaseClient parent;
 
 struct _EmpathyAuthFactory {
     TpBaseClient parent;
-    gpointer priv;
+    EmpathyAuthFactoryPriv *priv;
 };
 
 GType empathy_auth_factory_get_type (void);
 };
 
 GType empathy_auth_factory_get_type (void);