summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2010-05-05 15:27:23 -0400
committerDavid Zeuthen <davidz@redhat.com>2010-05-05 15:27:23 -0400
commitf8c19758e965e6f38fe30d394886c4da9a93c999 (patch)
treeeedc6e06a0ff83a9306553a922a769a931f7a68b
parentfa6c61da654a60df38234f6b07b28e7d189aab03 (diff)
Add 'all' option to G_DBUS_DEBUG
-rw-r--r--gdbus/gdbusprivate.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gdbus/gdbusprivate.c b/gdbus/gdbusprivate.c
index f28abbb..f4f3425 100644
--- a/gdbus/gdbusprivate.c
+++ b/gdbus/gdbusprivate.c
@@ -954,15 +954,16 @@ _g_dbus_worker_stop (GDBusWorker *worker)
_g_dbus_worker_unref (worker);
}
-#define G_DBUS_DEBUG_AUTHENTICATON (1<<0)
-#define G_DBUS_DEBUG_MESSAGE (1<<1)
+#define G_DBUS_DEBUG_AUTHENTICATION (1<<0)
+#define G_DBUS_DEBUG_MESSAGE (1<<1)
+#define G_DBUS_DEBUG_ALL 0xffffffff
static gint _gdbus_debug_flags = 0;
gboolean
_g_dbus_debug_authentication (void)
{
_g_dbus_initialize ();
- return (_gdbus_debug_flags & G_DBUS_DEBUG_AUTHENTICATON) != 0;
+ return (_gdbus_debug_flags & G_DBUS_DEBUG_AUTHENTICATION) != 0;
}
gboolean
@@ -1001,9 +1002,11 @@ _g_dbus_initialize (void)
for (n = 0; tokens[n] != NULL; n++)
{
if (g_strcmp0 (tokens[n], "authentication") == 0)
- _gdbus_debug_flags |= G_DBUS_DEBUG_AUTHENTICATON;
+ _gdbus_debug_flags |= G_DBUS_DEBUG_AUTHENTICATION;
else if (g_strcmp0 (tokens[n], "message") == 0)
_gdbus_debug_flags |= G_DBUS_DEBUG_MESSAGE;
+ else if (g_strcmp0 (tokens[n], "all") == 0)
+ _gdbus_debug_flags |= G_DBUS_DEBUG_ALL;
}
g_strfreev (tokens);
}