summaryrefslogtreecommitdiff
path: root/json-glib/json-builder.c
Commit message (Collapse)AuthorAgeFilesLines
* docs: Fix the Since tagsEmmanuele Bassi2016-03-011-2/+2
| | | | The newly added API is available since 1.2.
* node: Add json_node_ref() and json_node_unref()Philip Withnall2016-03-011-2/+2
| | | | | | | | | | | | | | Add reference counting semantics to JsonNode, in addition to the existing init/unset and alloc/free semantics. json_node_free() must only be used with nodes allocated using json_node_alloc(). json_node_unref() may be used with all nodes (if correctly paired; it may be paired with json_node_alloc()). It is not valid to call json_node_free() on a node whose reference count is not 1. https://bugzilla.gnome.org/show_bug.cgi?id=756121
* core: Add immutability support to core objectsPhilip Withnall2016-03-011-0/+106
| | | | | | | | | | | Add an immutable mode to JsonNode, JsonObject, JsonArray and JsonValue. This is an optional mode which objects enter by calling json_*_seal(). It is a one-way transition, which means that we can build and manipulate objects as much as desired, before sealing them and enjoying the benefits of immutable objects: no need to take copies when handling them, persistent hash values (still to be implemented). https://bugzilla.gnome.org/show_bug.cgi?id=756121
* builder: Add missing (transfer) annotation to json_builder_add_value()Philip Withnall2015-01-251-1/+3
| | | | | | | Document and annotate the fact that json_builder_add_value() takes ownership of the JsonNode passed in to it. https://bugzilla.gnome.org/show_bug.cgi?id=743475
* Remove conditional inclusion of config.hEmmanuele Bassi2014-03-181-2/+0
| | | | All the platforms and build system we support have a config.h header.
* docs: Port to MarkDownEmmanuele Bassi2014-03-181-1/+1
| | | | | Drop the DocBook documentation, and move everything to the MarkDown format used by modern gtk-doc.
* Drop some more pointless GET_PRIVATE macrosEmmanuele Bassi2013-08-221-5/+3
| | | | We can use the autogenerated get_instance_private() function.
* Remove compile time GLib version checkEmmanuele Bassi2013-08-211-13/+1
| | | | | We depend on a new version of GLib, so we can remove a bunch of old version checks.
* Use new macros when compiling against new GLibEmmanuele Bassi2013-07-201-3/+12
| | | | | | | | If we're being compiled against a newer version of GLib, we should use the new macros that add instance private data. Since this is a stable branch, we cannot bump the GLib requirement; so we use version checks to conditionally compile the new code.
* builder: Conform to the coding styleEmmanuele Bassi2012-10-261-6/+14
| | | | Function arguments should be aligned on different lines.
* builder: Initialize state fieldsEmmanuele Bassi2011-05-281-0/+1
| | | | | | | If we're calling g_free() on a field we better make sure that it's either NULL or contains valid data. https://bugzilla.gnome.org/show_bug.cgi?id=651271
* docs: Add transfer none annotation to JsonBuilder return values.Luca Bruno2010-08-151-11/+11
|
* docs: Add JsonBuilder to the API referenceEmmanuele Bassi2010-06-161-1/+2
| | | | | And silence gtk-doc-scanner by removing an undefined argument from json_builder_add_null_value().
* builder: Add convenience API for building JSON trees.Luca Bruno2010-06-161-0/+682
https://bugzilla.gnome.org/show_bug.cgi?id=621141 Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>