[gnome-online-accounts/wip/rishi/port-to-g-declare] identity-manager: Use G_DECLARE_INTERFACE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/wip/rishi/port-to-g-declare] identity-manager: Use G_DECLARE_INTERFACE
- Date: Fri, 6 Dec 2019 18:06:56 +0000 (UTC)
commit 41afb2242e655b3d78a374e860de236c0b2cafa7
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Dec 6 17:57:31 2019 +0100
identity-manager: Use G_DECLARE_INTERFACE
https://gitlab.gnome.org/GNOME/gnome-online-accounts/merge_requests/40
src/goaidentity/goaidentitymanager.h | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
---
diff --git a/src/goaidentity/goaidentitymanager.h b/src/goaidentity/goaidentitymanager.h
index 415f424a..6b7001d1 100644
--- a/src/goaidentity/goaidentitymanager.h
+++ b/src/goaidentity/goaidentitymanager.h
@@ -28,13 +28,7 @@
G_BEGIN_DECLS
#define GOA_TYPE_IDENTITY_MANAGER (goa_identity_manager_get_type ())
-#define GOA_IDENTITY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GOA_TYPE_IDENTITY_MANAGER,
GoaIdentityManager))
-#define GOA_IDENTITY_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GOA_TYPE_IDENTITY_MANAGER,
GoaIdentityManagerInterface))
-#define GOA_IS_IDENTITY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GOA_TYPE_IDENTITY_MANAGER))
-#define GOA_IDENTITY_MANAGER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj),
GOA_TYPE_IDENTITY_MANAGER, GoaIdentityManagerInterface))
-
-typedef struct _GoaIdentityManager GoaIdentityManager;
-typedef struct _GoaIdentityManagerInterface GoaIdentityManagerInterface;
+G_DECLARE_INTERFACE (GoaIdentityManager, goa_identity_manager, GOA, IDENTITY_MANAGER, GObject);
struct _GoaIdentityManagerInterface
{
@@ -110,8 +104,6 @@ struct _GoaIdentityManagerInterface
GoaIdentity *identity);
};
-GType goa_identity_manager_get_type (void);
-
void goa_identity_manager_get_identity (GoaIdentityManager *identity_manager,
const char *identifier,
GCancellable *cancellable,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]