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:

committed by
Aleksander Morgado

parent
1e79a2d292
commit
d47176a32c
@@ -137,7 +137,7 @@ impl_modem_location_enable (MMModemLocation *modem,
|
||||
if (!mm_modem_auth_request (MM_MODEM (modem),
|
||||
MM_AUTHORIZATION_LOCATION,
|
||||
context,
|
||||
loc_enable_auth_cb,
|
||||
(MMAuthRequestCb)loc_enable_auth_cb,
|
||||
info,
|
||||
loc_auth_info_destroy,
|
||||
&error)) {
|
||||
@@ -232,7 +232,7 @@ impl_modem_location_get_location (MMModemLocation *modem,
|
||||
if (!mm_modem_auth_request (MM_MODEM (modem),
|
||||
MM_AUTHORIZATION_LOCATION,
|
||||
context,
|
||||
loc_get_auth_cb,
|
||||
(MMAuthRequestCb)loc_get_auth_cb,
|
||||
info,
|
||||
loc_auth_info_destroy,
|
||||
&error)) {
|
||||
|
Reference in New Issue
Block a user