[gnome-online-accounts] owncloud: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] owncloud: Use G_DECLARE_FINAL_TYPE
- Date: Thu, 14 Dec 2017 14:28:56 +0000 (UTC)
commit 764edc848631e1cacd7a09e63bc6c3e2418e63da
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Dec 5 19:57:17 2017 +0100
owncloud: Use G_DECLARE_FINAL_TYPE
src/goabackend/goaowncloudprovider.c | 8 --------
src/goabackend/goaowncloudprovider.h | 9 +++------
2 files changed, 3 insertions(+), 14 deletions(-)
---
diff --git a/src/goabackend/goaowncloudprovider.c b/src/goabackend/goaowncloudprovider.c
index eb4fee8..3c81986 100644
--- a/src/goabackend/goaowncloudprovider.c
+++ b/src/goabackend/goaowncloudprovider.c
@@ -26,7 +26,6 @@
#include "goahttpclient.h"
#include "goaprovider.h"
-#include "goaprovider-priv.h"
#include "goaowncloudprovider.h"
#include "goaobjectskeletonutils.h"
#include "goautils.h"
@@ -36,13 +35,6 @@ struct _GoaOwncloudProvider
GoaProvider parent_instance;
};
-typedef struct _GoaOwncloudProviderClass GoaOwncloudProviderClass;
-
-struct _GoaOwncloudProviderClass
-{
- GoaProviderClass parent_class;
-};
-
G_DEFINE_TYPE_WITH_CODE (GoaOwncloudProvider, goa_owncloud_provider, GOA_TYPE_PROVIDER,
goa_provider_ensure_extension_points_registered ();
g_io_extension_point_implement (GOA_PROVIDER_EXTENSION_POINT_NAME,
diff --git a/src/goabackend/goaowncloudprovider.h b/src/goabackend/goaowncloudprovider.h
index c572731..dc4ad08 100644
--- a/src/goabackend/goaowncloudprovider.h
+++ b/src/goabackend/goaowncloudprovider.h
@@ -25,15 +25,12 @@
#include <glib-object.h>
+#include "goaprovider-priv.h"
+
G_BEGIN_DECLS
#define GOA_TYPE_OWNCLOUD_PROVIDER (goa_owncloud_provider_get_type ())
-#define GOA_OWNCLOUD_PROVIDER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_TYPE_OWNCLOUD_PROVIDER,
GoaOwncloudProvider))
-#define GOA_IS_OWNCLOUD_PROVIDER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_TYPE_OWNCLOUD_PROVIDER))
-
-typedef struct _GoaOwncloudProvider GoaOwncloudProvider;
-
-GType goa_owncloud_provider_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (GoaOwncloudProvider, goa_owncloud_provider, GOA, OWNCLOUD_PROVIDER, GoaProvider);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]