summaryrefslogtreecommitdiffstats
path: root/gdbus/gdbus.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-09-09 16:39:46 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-09-09 18:26:36 +0200
commite173173a1f2b966fea6b0e0863b919e446a0a2c2 (patch)
treeaf7495bf6268c838144b50b670b21e88ce22453d /gdbus/gdbus.h
parent679f17303dbe792c69dae097b825fcf10ae23ad1 (diff)
downloadofono-e173173a1f2b966fea6b0e0863b919e446a0a2c2.tar.bz2
Add support for GDBus security action and flags
Diffstat (limited to 'gdbus/gdbus.h')
-rw-r--r--gdbus/gdbus.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h
index 553918c0..d902f8e7 100644
--- a/gdbus/gdbus.h
+++ b/gdbus/gdbus.h
@@ -58,6 +58,8 @@ typedef DBusMessage * (* GDBusMethodFunction) (DBusConnection *connection,
typedef guint32 GDBusPendingReply;
typedef void (* GDBusSecurityFunction) (DBusConnection *connection,
+ const char *action,
+ gboolean interaction,
GDBusPendingReply pending);
typedef enum {
@@ -74,6 +76,12 @@ typedef enum {
G_DBUS_PROPERTY_FLAG_DEPRECATED = (1 << 0),
} GDBusPropertyFlags;
+typedef enum {
+ G_DBUS_SECURITY_FLAG_DEPRECATED = (1 << 0),
+ G_DBUS_SECURITY_FLAG_BUILTIN = (1 << 1),
+ G_DBUS_SECURITY_FLAG_ALLOW_INTERACTION = (1 << 2),
+} GDBusSecurityFlags;
+
typedef struct {
const char *name;
const char *signature;
@@ -97,6 +105,8 @@ typedef struct {
typedef struct {
unsigned int privilege;
+ const char *action;
+ GDBusSecurityFlags flags;
GDBusSecurityFunction function;
} GDBusSecurityTable;