Commit Graph
10 Commits
Author SHA1 Message Date
Ben Chan 37b0402ee5 core: minor coding style fixes 2014-05-20 09:32:29 +02:00
Aleksander Morgado c668972d9e build: add missing includes in polkit auth provider 2012-10-10 15:57:35 +02:00
Aleksander Morgado c250fa3797 libmm-glib: remove the `libmm-common.h' header
Both the ModemManager daemon and the mmcli will now include `libmm-glib.h' only.

We also handle two new special `_LIBMM_INSIDE_MM' and `LIBMM_INSIDE_MMCLI'
symbols, which if included before the `libmm-glib.h' library allow us to:

 * Don't include the libmm-glib high level API in the ModemManager daemon, as
   the object names would clash with those in the core.

 * Define some of the methods of helper objects to be included only if compiling
   ModemManager daemon or the mmcli.
2012-10-04 10:17:12 +02:00
Aleksander Morgado 513abb2ccf polkit: fix authority object disposal 2012-06-27 15:38:28 +02:00
Aleksander Morgado 089a983850 auth: refactor and simplify authentication related setup
We get rid of the MMAuthRequests; and we leave up to the caller and user of the
MMAuthProvider the handling of request cancellations through the provided
GCancellable.

Also made GIO-async-friendly methods.
2012-03-16 14:53:15 +01:00
Aleksander Morgado 5bee67c032 core: use GDBusMethodInvocation in the auth API 2012-03-16 14:28:15 +01:00
Aleksander Morgado 5f167fd199 Revert "core: avoid using DBusGMethodInvocation in auth API"
This reverts commit 013fd179f458d87bba9fd7657ffe1bd90169f231.

We will start using GDBus-only based code from now on.
2012-03-16 14:28:15 +01:00
Aleksander Morgado d47176a32c 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.
2012-03-15 14:14:19 +01:00
Dan Williams 67d936e46c polkit: fix for polkit >= 0.97 (bgo #628105) 2010-09-01 17:20:57 -05:00
Dan Williams 28d065c1f1 core: implement optional PolicyKit-based authentication 2010-02-27 12:51:13 -08:00