gdbus: Add g_dbus_get_flags function
authorMichael Janssen <jamuraa@chromium.org>
Fri, 3 Apr 2015 22:02:11 +0000 (15:02 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Apr 2015 17:00:45 +0000 (19:00 +0200)
The g_dbus_get_flags function enables detection of when the
G_DBUS_FLAG_ENABLE_EXPERIMENTAL is set.

gdbus/gdbus.h
gdbus/object.c

index 9814838..d99c254 100644 (file)
@@ -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,
index 4d5a64c..b62c062 100644 (file)
@@ -1816,3 +1816,8 @@ void g_dbus_set_flags(int flags)
 {
        global_flags = flags;
 }
+
+int g_dbus_get_flags(void)
+{
+       return global_flags;
+}