diff options
author | Dan Williams <dcbw@redhat.com> | 2010-02-27 12:51:13 -0800 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-02-27 12:51:13 -0800 |
commit | 28d065c1f15a7ebf9109abbdca2ba8e831291f13 (patch) | |
tree | 1216e3d6a5d800663284720496b6563c6c557726 /src/mm-modem-cdma.c | |
parent | aed5f3765d4b8e421888f6cc87800d76853b67d4 (diff) |
core: implement optional PolicyKit-based authentication
Diffstat (limited to 'src/mm-modem-cdma.c')
-rw-r--r-- | src/mm-modem-cdma.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mm-modem-cdma.c b/src/mm-modem-cdma.c index e57203ae..1a4fe6a2 100644 --- a/src/mm-modem-cdma.c +++ b/src/mm-modem-cdma.c @@ -189,10 +189,12 @@ mm_modem_cdma_get_esn (MMModemCdma *self, } static void -esn_auth_cb (MMAuthRequest *req, GObject *owner, gpointer user_data) +esn_auth_cb (MMAuthRequest *req, + GObject *owner, + DBusGMethodInvocation *context, + gpointer user_data) { MMModemCdma *self = MM_MODEM_CDMA (owner); - DBusGMethodInvocation *context = user_data; GError *error = NULL; /* Return any authorization error, otherwise get the ESN */ @@ -211,8 +213,9 @@ impl_modem_cdma_get_esn (MMModemCdma *self, DBusGMethodInvocation *context) /* Make sure the caller is authorized to get the ESN */ if (!mm_modem_auth_request (MM_MODEM (self), MM_AUTHORIZATION_DEVICE, - esn_auth_cb, context, + esn_auth_cb, + NULL, NULL, &error)) { dbus_g_method_return_error (context, error); |