From abf36db8113aba96b3be2d11eaffcb51e5ccccb7 Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Mon, 28 Dec 2015 21:15:49 +0000 Subject: introspection: fix nullable annotation for return values in the following methods json_builder_add_boolean_value json_builder_add_double_value json_builder_add_int_value json_builder_add_null_value json_builder_add_string_value json_builder_add_value json_builder_begin_array json_builder_begin_object json_builder_end_array json_builder_end_object json_builder_get_root json_builder_set_member_name json_generator_get_root json_reader_get_error json_reader_get_member_name json_reader_get_value json_serializable_find_property json_serializable_find_property json_boxed_serialize --- json-glib/json-builder.c | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) (limited to 'json-glib/json-builder.c') 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) -- cgit v1.2.1