From 5f167fd199ce7cc359aa1d884df9b332aa669a79 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 20 Feb 2012 13:13:55 +0100 Subject: Revert "core: avoid using DBusGMethodInvocation in auth API" This reverts commit 013fd179f458d87bba9fd7657ffe1bd90169f231. We will start using GDBus-only based code from now on. --- src/mm-auth-request.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/mm-auth-request.h') diff --git a/src/mm-auth-request.h b/src/mm-auth-request.h index 9660cef6..e22f0a23 100644 --- a/src/mm-auth-request.h +++ b/src/mm-auth-request.h @@ -47,18 +47,15 @@ typedef struct { GType mm_auth_request_get_type (void); -/* TODO: Change the context gpointer to be a GDBusMethodInvocation when - * fully ported to GDBus, and remove all (MMAuthRequestCb) casts */ - typedef void (*MMAuthRequestCb) (MMAuthRequest *req, GObject *owner, - gpointer context, + DBusGMethodInvocation *context, gpointer user_data); GObject *mm_auth_request_new (GType atype, const char *authorization, GObject *owner, - gpointer context, + DBusGMethodInvocation *context, MMAuthRequestCb callback, gpointer callback_data, GDestroyNotify notify); -- cgit v1.2.3-70-g09d2