[gnome-online-accounts/wip/rishi/port-to-g-declare] identity-inquiry: 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-inquiry: Use G_DECLARE_INTERFACE
- Date: Fri, 6 Dec 2019 16:38:32 +0000 (UTC)
commit 6d0a2d9983f91cd44896b6a08654ba86acd29506
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Dec 6 17:18:59 2019 +0100
identity-inquiry: Use G_DECLARE_INTERFACE
https://gitlab.gnome.org/GNOME/gnome-online-accounts/merge_requests/40
src/goaidentity/goaidentityinquiry.h | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/goaidentity/goaidentityinquiry.h b/src/goaidentity/goaidentityinquiry.h
index 8a4f264b..aabb054f 100644
--- a/src/goaidentity/goaidentityinquiry.h
+++ b/src/goaidentity/goaidentityinquiry.h
@@ -29,12 +29,8 @@
G_BEGIN_DECLS
#define GOA_TYPE_IDENTITY_INQUIRY (goa_identity_inquiry_get_type ())
-#define GOA_IDENTITY_INQUIRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GOA_TYPE_IDENTITY_INQUIRY,
GoaIdentityInquiry))
-#define GOA_IDENTITY_INQUIRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GOA_TYPE_IDENTITY_INQUIRY,
GoaIdentityInquiryClass))
-#define GOA_IS_IDENTITY_INQUIRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GOA_TYPE_IDENTITY_INQUIRY))
-#define GOA_IDENTITY_INQUIRY_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj),
GOA_TYPE_IDENTITY_INQUIRY, GoaIdentityInquiryInterface))
-typedef struct _GoaIdentityInquiry GoaIdentityInquiry;
-typedef struct _GoaIdentityInquiryInterface GoaIdentityInquiryInterface;
+G_DECLARE_INTERFACE (GoaIdentityInquiry, goa_identity_inquiry, GOA, IDENTITY_INQUIRY, GObject);
+
typedef struct _GoaIdentityInquiryIter GoaIdentityInquiryIter;
typedef struct _GoaIdentityQuery GoaIdentityQuery;
@@ -82,8 +78,6 @@ struct _GoaIdentityInquiryInterface
gboolean (* is_failed) (GoaIdentityInquiry *inquiry);
};
-GType goa_identity_inquiry_get_type (void);
-
GoaIdentity *goa_identity_inquiry_get_identity (GoaIdentityInquiry *inquiry);
char *goa_identity_inquiry_get_name (GoaIdentityInquiry *inquiry);
char *goa_identity_inquiry_get_banner (GoaIdentityInquiry *inquiry);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]