From d47176a32c45da0f63ec5ab8024cf4e5f6467a7f Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 2 Sep 2011 20:28:12 +0200 Subject: core: avoid using DBusGMethodInvocation in auth API While porting to GDBus, use opaque pointers. This allows us to include either a DBusGMethodInvocation or a GDBusMethodInvocation in the 'context' pointer. Once fully ported to GDBus, we can safely change it back to make the context be a GDBusMethodInvocation. --- src/mm-auth-request.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mm-auth-request.c') diff --git a/src/mm-auth-request.c b/src/mm-auth-request.c index 79f0d421..03de3a6d 100644 --- a/src/mm-auth-request.c +++ b/src/mm-auth-request.c @@ -22,7 +22,7 @@ G_DEFINE_TYPE (MMAuthRequest, mm_auth_request, G_TYPE_OBJECT) typedef struct { GObject *owner; char *auth; - DBusGMethodInvocation *context; + gpointer context; MMAuthRequestCb callback; gpointer callback_data; @@ -35,7 +35,7 @@ GObject * mm_auth_request_new (GType atype, const char *authorization, GObject *owner, - DBusGMethodInvocation *context, + gpointer context, MMAuthRequestCb callback, gpointer callback_data, GDestroyNotify notify) -- cgit v1.2.3-70-g09d2