[json-glib] debug: Add debug flags for GObject-related code



commit 7707b18f42b3a19dd780ba73ce1dabb6b8ef3c95
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Sat Sep 25 11:48:25 2010 +0100

    debug: Add debug flags for GObject-related code

 json-glib/json-debug.c |    3 ++-
 json-glib/json-debug.h |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/json-glib/json-debug.c b/json-glib/json-debug.c
index 471d082..dd725c4 100644
--- a/json-glib/json-debug.c
+++ b/json-glib/json-debug.c
@@ -9,7 +9,8 @@ static gboolean     json_debug_flags_set = FALSE;
 
 #ifdef JSON_ENABLE_DEBUG
 static const GDebugKey json_debug_keys[] = {
-  { "parser", JSON_DEBUG_PARSER }
+  { "parser", JSON_DEBUG_PARSER },
+  { "gobject", JSON_DEBUG_GOBJECT }
 };
 #endif /* JSON_ENABLE_DEBUG */
 
diff --git a/json-glib/json-debug.h b/json-glib/json-debug.h
index dc0d861..20f22c6 100644
--- a/json-glib/json-debug.h
+++ b/json-glib/json-debug.h
@@ -6,7 +6,8 @@
 G_BEGIN_DECLS
 
 typedef enum {
-  JSON_DEBUG_PARSER = 1 << 0
+  JSON_DEBUG_PARSER  = 1 << 0,
+  JSON_DEBUG_GOBJECT = 1 << 1
 } JsonDebugFlags;
 
 #ifdef JSON_ENABLE_DEBUG



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]