[gnome-online-accounts/wip/rishi/port-to-g-declare: 1/7] kerberos: Use G_DECLARE_FINAL_TYPE



commit 76e147c5e5c8800151128b9e9b2886793770b763
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Dec 5 18:21:27 2019 +0100

    kerberos: Use G_DECLARE_FINAL_TYPE
    
    https://gitlab.gnome.org/GNOME/gnome-online-accounts/merge_requests/40

 src/goabackend/goakerberosprovider.c | 8 --------
 src/goabackend/goakerberosprovider.h | 9 +++------
 2 files changed, 3 insertions(+), 14 deletions(-)
---
diff --git a/src/goabackend/goakerberosprovider.c b/src/goabackend/goakerberosprovider.c
index 2a64767e..b3ffc3f5 100644
--- a/src/goabackend/goakerberosprovider.c
+++ b/src/goabackend/goakerberosprovider.c
@@ -20,7 +20,6 @@
 #include <glib/gi18n-lib.h>
 
 #include "goaprovider.h"
-#include "goaprovider-priv.h"
 #include "goakerberosprovider.h"
 #include "goautils.h"
 #include "goaidentity.h"
@@ -35,13 +34,6 @@ struct _GoaKerberosProvider
   GoaProvider parent_instance;
 };
 
-typedef struct _GoaKerberosProviderClass GoaKerberosProviderClass;
-
-struct _GoaKerberosProviderClass
-{
-  GoaProviderClass parent_class;
-};
-
 static GoaIdentityServiceManager *identity_manager;
 static GMutex identity_manager_mutex;
 static GCond identity_manager_condition;
diff --git a/src/goabackend/goakerberosprovider.h b/src/goabackend/goakerberosprovider.h
index 43b42def..bb9080df 100644
--- a/src/goabackend/goakerberosprovider.h
+++ b/src/goabackend/goakerberosprovider.h
@@ -25,15 +25,12 @@
 
 #include <glib-object.h>
 
+#include "goaprovider-priv.h"
+
 G_BEGIN_DECLS
 
 #define GOA_TYPE_KERBEROS_PROVIDER   (goa_kerberos_provider_get_type ())
-#define GOA_KERBEROS_PROVIDER(o)     (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_TYPE_KERBEROS_PROVIDER, 
GoaKerberosProvider))
-#define GOA_IS_KERBEROS_PROVIDER(o)  (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_TYPE_KERBEROS_PROVIDER))
-
-typedef struct _GoaKerberosProvider GoaKerberosProvider;
-
-GType goa_kerberos_provider_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (GoaKerberosProvider, goa_kerberos_provider, GOA, KERBEROS_PROVIDER, GoaProvider);
 
 G_END_DECLS
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]