diff options
author | Ole André Vadla Ravnås <oleavr@gmail.com> | 2017-03-14 18:27:13 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-03-18 18:16:28 +0000 |
commit | 0f6e3d3eddc3bdb321283998924506d9184a0a2a (patch) | |
tree | c9acd73cc443c79616513cdf5e169b988f6eff55 /json-glib/json-parser.h | |
parent | 7d79960747b286da4608f516c575004786d1928c (diff) | |
download | json-glib-0f6e3d3eddc3bdb321283998924506d9184a0a2a.tar.gz |
core: Add json_parser_steal_root()
This avoids copying the root node for the parse-to-node use-case.
https://bugzilla.gnome.org/show_bug.cgi?id=774688
Diffstat (limited to 'json-glib/json-parser.h')
-rw-r--r-- | json-glib/json-parser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/json-glib/json-parser.h b/json-glib/json-parser.h index c7223d2..1470fbf 100644 --- a/json-glib/json-parser.h +++ b/json-glib/json-parser.h @@ -176,6 +176,8 @@ gboolean json_parser_load_from_stream_finish (JsonParser *parser, JSON_AVAILABLE_IN_1_0 JsonNode * json_parser_get_root (JsonParser *parser); +JSON_AVAILABLE_IN_1_4 +JsonNode * json_parser_steal_root (JsonParser *parser); JSON_AVAILABLE_IN_1_0 guint json_parser_get_current_line (JsonParser *parser); |