summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorMichael Janssen <jamuraa@chromium.org>2015-04-03 22:02:11 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2015-04-07 17:00:45 (GMT)
commit73e517bcca8732c1498d0f48c49d7f31bfb64aca (patch)
tree2967ca02a788a112b1474006b3c0214630a6679e /gdbus
parentdae225a0d64235780e09bb699afa101aeab6cc94 (diff)
downloadofono-73e517bcca8732c1498d0f48c49d7f31bfb64aca.tar.gz
ofono-73e517bcca8732c1498d0f48c49d7f31bfb64aca.tar.xz
gdbus: Add g_dbus_get_flags function
The g_dbus_get_flags function enables detection of when the G_DBUS_FLAG_ENABLE_EXPERIMENTAL is set.
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/gdbus.h1
-rw-r--r--gdbus/object.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h
index 9814838..d99c254 100644
--- a/gdbus/gdbus.h
+++ b/gdbus/gdbus.h
@@ -216,6 +216,7 @@ struct GDBusSecurityTable {
.flags = G_DBUS_SIGNAL_FLAG_EXPERIMENTAL
void g_dbus_set_flags(int flags);
+int g_dbus_get_flags(void);
gboolean g_dbus_register_interface(DBusConnection *connection,
const char *path, const char *name,
diff --git a/gdbus/object.c b/gdbus/object.c
index 4d5a64c..b62c062 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -1816,3 +1816,8 @@ void g_dbus_set_flags(int flags)
{
global_flags = flags;
}
+
+int g_dbus_get_flags(void)
+{
+ return global_flags;
+}