summaryrefslogtreecommitdiff
path: root/json-glib/json-array.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2012-10-27 11:44:30 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2012-10-27 11:44:30 +0100
commit615538100a42063ca0b84b5bb9c8a6a046a89e0b (patch)
tree8dabcc64cac3717969af08b8a07a3472ae004f0a /json-glib/json-array.c
parent3fb92bc727365bce5f99da3a150a237da4da64d6 (diff)
downloadjson-glib-615538100a42063ca0b84b5bb9c8a6a046a89e0b.tar.gz
node: Add typed initializers
We should simplify the JsonNode API a bit, especially when it comes to initializing nodes. Instead of a two-step "new(<type>) followed by a set_<type>(value)" API, we can provide a "init_<type>(value)" API that can take any existing JsonNode and initialize it to the given type. This makes the JsonNode creation more concise and reliable; it also allows to implicitly re-initialize JsonNodes without requiring the user to de-allocate/re-allocate them first.
Diffstat (limited to 'json-glib/json-array.c')
0 files changed, 0 insertions, 0 deletions