diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2016-03-22 16:01:25 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2016-03-22 16:01:25 +0000 |
commit | b659345f0fbf08053ae7087c7c2eb25905e61cf3 (patch) | |
tree | e36f79e5f9471f180eb32d65dec8a67b98eb140d | |
parent | 14fa35ca93b1e553c2f50df5527bb17fb84d69d1 (diff) | |
download | json-glib-b659345f0fbf08053ae7087c7c2eb25905e61cf3.tar.gz |
debug: Add flag for debugging nodes
-rw-r--r-- | json-glib/json-debug.c | 3 | ||||
-rw-r--r-- | 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 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) |