diff options
author | Aleksander Morgado <aleksander@gnu.org> | 2011-09-02 20:28:12 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:19 +0100 |
commit | d47176a32c45da0f63ec5ab8024cf4e5f6467a7f (patch) | |
tree | 3914d9064c045e606d2da23eff392dbf9af43ea5 /src/mm-auth-request.h | |
parent | 1e79a2d292e7e68430043d9741bfbbe01cd3206f (diff) |
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.
Diffstat (limited to 'src/mm-auth-request.h')
-rw-r--r-- | src/mm-auth-request.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mm-auth-request.h b/src/mm-auth-request.h index e22f0a23..9660cef6 100644 --- a/src/mm-auth-request.h +++ b/src/mm-auth-request.h @@ -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); |