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.
This commit is contained in:
Aleksander Morgado
2012-03-15 14:14:19 +01:00
committed by Aleksander Morgado
parent 1e79a2d292
commit d47176a32c
16 changed files with 66 additions and 52 deletions
+5 -2
View File
@@ -47,15 +47,18 @@ 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,
DBusGMethodInvocation *context,
gpointer context,
gpointer user_data);
GObject *mm_auth_request_new (GType atype,
const char *authorization,
GObject *owner,
DBusGMethodInvocation *context,
gpointer context,
MMAuthRequestCb callback,
gpointer callback_data,
GDestroyNotify notify);