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-modem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mm-modem.c') diff --git a/src/mm-modem.c b/src/mm-modem.c index 012e3203..27c55c80 100644 --- a/src/mm-modem.c +++ b/src/mm-modem.c @@ -491,7 +491,7 @@ impl_modem_reset (MMModem *modem, DBusGMethodInvocation *context) if (!mm_modem_auth_request (MM_MODEM (modem), MM_AUTHORIZATION_DEVICE_CONTROL, context, - reset_auth_cb, + (MMAuthRequestCb)reset_auth_cb, NULL, NULL, &error)) { dbus_g_method_return_error (context, error); @@ -544,7 +544,7 @@ impl_modem_factory_reset (MMModem *modem, if (!mm_modem_auth_request (MM_MODEM (modem), MM_AUTHORIZATION_DEVICE_CONTROL, context, - factory_reset_auth_cb, + (MMAuthRequestCb)factory_reset_auth_cb, g_strdup (code), g_free, &error)) { -- cgit v1.2.3-70-g09d2