summaryrefslogtreecommitdiff
path: root/json-glib
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2016-03-22 16:01:25 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2016-03-22 16:01:25 +0000
commitb659345f0fbf08053ae7087c7c2eb25905e61cf3 (patch)
treee36f79e5f9471f180eb32d65dec8a67b98eb140d /json-glib
parent14fa35ca93b1e553c2f50df5527bb17fb84d69d1 (diff)
downloadjson-glib-b659345f0fbf08053ae7087c7c2eb25905e61cf3.tar.gz
debug: Add flag for debugging nodes
Diffstat (limited to 'json-glib')
-rw-r--r--json-glib/json-debug.c3
-rw-r--r--json-glib/json-debug.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/json-glib/json-debug.c b/json-glib/json-debug.c
index 5e72e43..b9c3b8f 100644
--- a/json-glib/json-debug.c
+++ b/json-glib/json-debug.c
@@ -8,7 +8,8 @@ static unsigned int json_debug_flags = 0;
static const GDebugKey json_debug_keys[] = {
{ "parser", JSON_DEBUG_PARSER },
{ "gobject", JSON_DEBUG_GOBJECT },
- { "path", JSON_DEBUG_PATH }
+ { "path", JSON_DEBUG_PATH },
+ { "node", JSON_DEBUG_NODE },
};
#endif /* JSON_ENABLE_DEBUG */
diff --git a/json-glib/json-debug.h b/json-glib/json-debug.h
index 03ea96b..1b3da52 100644
--- a/json-glib/json-debug.h
+++ b/json-glib/json-debug.h
@@ -8,7 +8,8 @@ G_BEGIN_DECLS
typedef enum {
JSON_DEBUG_PARSER = 1 << 0,
JSON_DEBUG_GOBJECT = 1 << 1,
- JSON_DEBUG_PATH = 1 << 2
+ JSON_DEBUG_PATH = 1 << 2,
+ JSON_DEBUG_NODE = 1 << 3
} JsonDebugFlags;
#define JSON_HAS_DEBUG(flag) (json_get_debug_flags () & JSON_DEBUG_##flag)