diff options
| author | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-11-07 17:38:22 +0100 |
|---|---|---|
| committer | Emmanuele Bassi <ebassi@gnome.org> | 2016-03-01 14:53:02 +0000 |
| commit | 1de237a502ceee96df7091c2df4492b8bc08b2c5 (patch) | |
| tree | c9f51fdc9c370b57abe75e97200b3747a5f326bb /doc/reference/json-glib-sections.txt | |
| parent | 58f479b60eb2db4c73605d469d68a8ffd8679327 (diff) | |
| download | json-glib-1de237a502ceee96df7091c2df4492b8bc08b2c5.tar.gz | |
node: Add json_node_ref() and json_node_unref()
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
Diffstat (limited to 'doc/reference/json-glib-sections.txt')
| -rw-r--r-- | doc/reference/json-glib-sections.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/reference/json-glib-sections.txt b/doc/reference/json-glib-sections.txt index 2dccde9..21e1f0d 100644 --- a/doc/reference/json-glib-sections.txt +++ b/doc/reference/json-glib-sections.txt @@ -110,6 +110,8 @@ json_node_init_array json_node_new json_node_copy json_node_free +json_node_ref +json_node_unref json_node_is_immutable json_node_seal |
