diff options
| author | Emmanuele Bassi <ebassi@gnome.org> | 2012-10-27 11:44:30 +0100 |
|---|---|---|
| committer | Emmanuele Bassi <ebassi@gnome.org> | 2012-10-27 11:44:30 +0100 |
| commit | 615538100a42063ca0b84b5bb9c8a6a046a89e0b (patch) | |
| tree | 8dabcc64cac3717969af08b8a07a3472ae004f0a /json-glib/json-glib.symbols | |
| parent | 3fb92bc727365bce5f99da3a150a237da4da64d6 (diff) | |
| download | json-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-glib.symbols')
| -rw-r--r-- | json-glib/json-glib.symbols | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/json-glib/json-glib.symbols b/json-glib/json-glib.symbols index 93f3827..d5b08c4 100644 --- a/json-glib/json-glib.symbols +++ b/json-glib/json-glib.symbols @@ -68,6 +68,7 @@ json_gvariant_deserialize json_gvariant_deserialize_data
json_gvariant_serialize
json_gvariant_serialize_data
+json_node_alloc
json_node_copy
json_node_dup_array
json_node_dup_object
@@ -84,6 +85,14 @@ json_node_get_string json_node_get_type
json_node_get_value
json_node_get_value_type
+json_node_init_array
+json_node_init_boolean
+json_node_init_double
+json_node_init_int
+json_node_init_null
+json_node_init_object
+json_node_init_string
+json_node_init
json_node_is_null
json_node_new
json_node_set_array
|
