summaryrefslogtreecommitdiff
path: root/gdbus/gdbus.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-12-28 14:51:00 +0200
committerMarcel Holtmann <marcel@holtmann.org>2012-12-30 10:49:44 -0800
commit519d9a13c379cad60b1f67bb8697e2c9415b79a5 (patch)
treefc5eb2d6cc1fbcb9c3e21618a77ff4a6e9cbf6e2 /gdbus/gdbus.h
parent1fbd845b552d13185252c5ced6997d891cc6b102 (diff)
downloadconnman-519d9a13c379cad60b1f67bb8697e2c9415b79a5.tar.gz
connman-519d9a13c379cad60b1f67bb8697e2c9415b79a5.tar.bz2
connman-519d9a13c379cad60b1f67bb8697e2c9415b79a5.zip
gdbus: Introduce G_DBUS_SIGNAL_FLAG_EXPERIMENTAL
This flag can be used to mark signals as experimental, marked signals are disabled by default and can be enabled by setting G_DBUS_FLAG_ENABLE_EXPERIMENTAL using g_dbus_set_flags.
Diffstat (limited to 'gdbus/gdbus.h')
-rw-r--r--gdbus/gdbus.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h
index 86b5affc..7ec25619 100644
--- a/gdbus/gdbus.h
+++ b/gdbus/gdbus.h
@@ -100,7 +100,8 @@ enum GDBusMethodFlags {
};
enum GDBusSignalFlags {
- G_DBUS_SIGNAL_FLAG_DEPRECATED = (1 << 0),
+ G_DBUS_SIGNAL_FLAG_DEPRECATED = (1 << 0),
+ G_DBUS_SIGNAL_FLAG_EXPERIMENTAL = (1 << 1),
};
enum GDBusPropertyFlags {
@@ -208,6 +209,11 @@ struct GDBusSecurityTable {
.args = _args, \
.flags = G_DBUS_SIGNAL_FLAG_DEPRECATED
+#define GDBUS_EXPERIMENTAL_SIGNAL(_name, _args) \
+ .name = _name, \
+ .args = _args, \
+ .flags = G_DBUS_SIGNAL_FLAG_EXPERIMENTAL
+
void g_dbus_set_flags(int flags);
gboolean g_dbus_register_interface(DBusConnection *connection,