aboutsummaryrefslogtreecommitdiff
path: root/src/mm-auth-provider.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-02-27 12:51:13 -0800
committerDan Williams <dcbw@redhat.com>2010-02-27 12:51:13 -0800
commit28d065c1f15a7ebf9109abbdca2ba8e831291f13 (patch)
tree1216e3d6a5d800663284720496b6563c6c557726 /src/mm-auth-provider.h
parentaed5f3765d4b8e421888f6cc87800d76853b67d4 (diff)
core: implement optional PolicyKit-based authentication
Diffstat (limited to 'src/mm-auth-provider.h')
-rw-r--r--src/mm-auth-provider.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mm-auth-provider.h b/src/mm-auth-provider.h
index 0bc6f100..94edc44d 100644
--- a/src/mm-auth-provider.h
+++ b/src/mm-auth-provider.h
@@ -17,6 +17,7 @@
#define MM_AUTH_PROVIDER_H
#include <glib-object.h>
+#include <dbus/dbus-glib-lowlevel.h>
#include "mm-auth-request.h"
@@ -43,13 +44,10 @@ typedef struct {
typedef struct {
GObjectClass parent;
- gboolean (*request_auth) (MMAuthProvider *provider,
- MMAuthRequest *req,
- GError **error);
-
MMAuthRequest * (*create_request) (MMAuthProvider *provider,
const char *authorization,
GObject *owner,
+ DBusGMethodInvocation *context,
MMAuthRequestCb callback,
gpointer callback_data,
GDestroyNotify notify);
@@ -57,9 +55,11 @@ typedef struct {
GType mm_auth_provider_get_type (void);
+/* Don't do anything clever from the notify callback... */
MMAuthRequest *mm_auth_provider_request_auth (MMAuthProvider *provider,
const char *authorization,
GObject *owner,
+ DBusGMethodInvocation *context,
MMAuthRequestCb callback,
gpointer callback_data,
GDestroyNotify notify,
@@ -68,6 +68,8 @@ MMAuthRequest *mm_auth_provider_request_auth (MMAuthProvider *provider,
void mm_auth_provider_cancel_for_owner (MMAuthProvider *provider,
GObject *owner);
+/* Subclass API */
+
/* To get an auth provider instance, implemented in mm-auth-provider-factory.c */
MMAuthProvider *mm_auth_provider_get (void);