[gnome-online-accounts] httpclient: Use G_DECLARE_FINAL_TYPE



commit 6c0ba92106ec32066864cb4b378ee772f21fde7b
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed May 31 12:15:08 2017 +0200

    httpclient: Use G_DECLARE_FINAL_TYPE

 src/goabackend/goahttpclient.c |    7 -------
 src/goabackend/goahttpclient.h |    6 +-----
 2 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/src/goabackend/goahttpclient.c b/src/goabackend/goahttpclient.c
index 7070841..bcd484b 100644
--- a/src/goabackend/goahttpclient.c
+++ b/src/goabackend/goahttpclient.c
@@ -28,13 +28,6 @@ struct _GoaHttpClient
   GObject parent_instance;
 };
 
-typedef struct _GoaHttpClientClass GoaHttpClientClass;
-
-struct _GoaHttpClientClass
-{
-  GObjectClass parent_class;
-};
-
 G_DEFINE_TYPE (GoaHttpClient, goa_http_client, G_TYPE_OBJECT);
 
 /* ---------------------------------------------------------------------------------------------------- */
diff --git a/src/goabackend/goahttpclient.h b/src/goabackend/goahttpclient.h
index bc83d2e..208332e 100644
--- a/src/goabackend/goahttpclient.h
+++ b/src/goabackend/goahttpclient.h
@@ -30,12 +30,8 @@
 G_BEGIN_DECLS
 
 #define GOA_TYPE_HTTP_CLIENT        (goa_http_client_get_type ())
-#define GOA_HTTP_CLIENT(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_TYPE_HTTP_CLIENT, GoaHttpClient))
-#define GOA_IS_HTTP_CLIENT(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_TYPE_HTTP_CLIENT))
+G_DECLARE_FINAL_TYPE (GoaHttpClient, goa_http_client, GOA, HTTP_CLIENT, GObject);
 
-typedef struct _GoaHttpClient GoaHttpClient;
-
-GType           goa_http_client_get_type           (void) G_GNUC_CONST;
 GoaHttpClient  *goa_http_client_new                (void);
 void            goa_http_client_check              (GoaHttpClient       *self,
                                                     const gchar         *uri,


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