summaryrefslogtreecommitdiff
path: root/json-glib/json-builder.c
diff options
context:
space:
mode:
Diffstat (limited to 'json-glib/json-builder.c')
-rw-r--r--json-glib/json-builder.c37
1 files changed, 24 insertions, 13 deletions
diff --git a/json-glib/json-builder.c b/json-glib/json-builder.c
index 34c29c6..f8af1cd 100644
--- a/json-glib/json-builder.c
+++ b/json-glib/json-builder.c
@@ -271,8 +271,8 @@ json_builder_new_immutable (void)
* Returns the root of the current constructed tree, if the build is complete
* (ie: all opened objects, object members and arrays are being closed).
*
- * Return value: (transfer full): the #JsonNode, or %NULL if the build is not complete.
- * Free the returned value with json_node_unref().
+ * Return value: (nullable) (transfer full): the #JsonNode, or %NULL if the
+ * build is not complete. Free the returned value with json_node_unref().
*/
JsonNode *
json_builder_get_root (JsonBuilder *builder)
@@ -316,7 +316,8 @@ json_builder_reset (JsonBuilder *builder)
* Can be called for first or only if the call is associated to an object member
* or an array element.
*
- * Return value: (transfer none): the #JsonBuilder, or %NULL if the call was inconsistent
+ * Return value: (nullable) (transfer none): the #JsonBuilder, or %NULL if the
+ * call was inconsistent
*/
JsonBuilder *
json_builder_begin_object (JsonBuilder *builder)
@@ -369,7 +370,8 @@ json_builder_begin_object (JsonBuilder *builder)
*
* Cannot be called after json_builder_set_member_name().
*
- * Return value: (transfer none): the #JsonBuilder, or %NULL if the call was inconsistent
+ * Return value: (nullable) (transfer none): the #JsonBuilder, or %NULL if the
+ * call was inconsistent
*/
JsonBuilder *
json_builder_end_object (JsonBuilder *builder)
@@ -409,7 +411,8 @@ json_builder_end_object (JsonBuilder *builder)
* Can be called for first or only if the call is associated to an object member
* or an array element.
*
- * Return value: (transfer none): the #JsonBuilder, or %NULL if the call was inconsistent
+ * Return value: (nullable) (transfer none): the #JsonBuilder, or %NULL if the
+ * call was inconsistent
*/
JsonBuilder *
json_builder_begin_array (JsonBuilder *builder)
@@ -461,7 +464,8 @@ json_builder_begin_array (JsonBuilder *builder)
*
* Cannot be called after json_builder_set_member_name().
*
- * Return value: (transfer none): the #JsonBuilder, or %NULL if the call was inconsistent
+ * Return value: (nullable) (transfer none): the #JsonBuilder, or %NULL if the
+ * call was inconsistent
*/
JsonBuilder *
json_builder_end_array (JsonBuilder *builder)
@@ -501,7 +505,8 @@ json_builder_end_array (JsonBuilder *builder)
*
* Can be called only if the call is associated to an object.
*
- * Return value: (transfer none): the #JsonBuilder, or %NULL if the call was inconsistent
+ * Return value: (nullable) (transfer none): the #JsonBuilder, or %NULL if the
+ * call was inconsistent
*/
JsonBuilder *
json_builder_set_member_name (JsonBuilder *builder,
@@ -532,7 +537,8 @@ json_builder_set_member_name (JsonBuilder *builder,
*
* The builder will take ownership of the #JsonNode.
*
- * Return value: (transfer none): the #JsonBuilder, or %NULL if the call was inconsistent
+ * Return value: (nullable) (transfer none): the #JsonBuilder, or %NULL if the
+ * call was inconsistent
*/
JsonBuilder *
json_builder_add_value (JsonBuilder *builder,
@@ -581,7 +587,8 @@ json_builder_add_value (JsonBuilder *builder,
*
* See also: json_builder_add_value()
*
- * Return value: (transfer none): the #JsonBuilder, or %NULL if the call was inconsistent
+ * Return value: (nullable) (transfer none): the #JsonBuilder, or %NULL if the
+ * call was inconsistent
*/
JsonBuilder *
json_builder_add_int_value (JsonBuilder *builder,
@@ -625,7 +632,8 @@ json_builder_add_int_value (JsonBuilder *builder,
*
* See also: json_builder_add_value()
*
- * Return value: (transfer none): the #JsonBuilder, or %NULL if the call was inconsistent
+ * Return value: (nullable) (transfer none): the #JsonBuilder, or %NULL if the
+ * call was inconsistent
*/
JsonBuilder *
json_builder_add_double_value (JsonBuilder *builder,
@@ -670,7 +678,8 @@ json_builder_add_double_value (JsonBuilder *builder,
*
* See also: json_builder_add_value()
*
- * Return value: (transfer none): the #JsonBuilder, or %NULL if the call was inconsistent
+ * Return value: (nullable) (transfer none): the #JsonBuilder, or %NULL if the
+ * call was inconsistent
*/
JsonBuilder *
json_builder_add_boolean_value (JsonBuilder *builder,
@@ -715,7 +724,8 @@ json_builder_add_boolean_value (JsonBuilder *builder,
*
* See also: json_builder_add_value()
*
- * Return value: (transfer none): the #JsonBuilder, or %NULL if the call was inconsistent
+ * Return value: (nullable) (transfer none): the #JsonBuilder, or %NULL if the
+ * call was inconsistent
*/
JsonBuilder *
json_builder_add_string_value (JsonBuilder *builder,
@@ -759,7 +769,8 @@ json_builder_add_string_value (JsonBuilder *builder,
*
* See also: json_builder_add_value()
*
- * Return value: (transfer none): the #JsonBuilder, or %NULL if the call was inconsistent
+ * Return value: (nullable) (transfer none): the #JsonBuilder, or %NULL if
+ * the call was inconsistent
*/
JsonBuilder *
json_builder_add_null_value (JsonBuilder *builder)