diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2009-11-12 11:28:17 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2009-11-12 11:28:17 +0000 |
commit | 30d4efb775cb416212c00e3ececb0f0147739f40 (patch) | |
tree | 1e8d338133325e1ec85bdf4836f04a79a4563073 /json-glib/json-array.c | |
parent | 47cd2f678a8321faac0e2d00a3538181e7bc1cbf (diff) | |
download | json-glib-30d4efb775cb416212c00e3ececb0f0147739f40.tar.gz |
Update Introspection annotations
• Fix the transfer rules for JsonNode, JsonObject and JsonArray
getters.
• Annotate the methods returning lists
Diffstat (limited to 'json-glib/json-array.c')
-rw-r--r-- | json-glib/json-array.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/json-glib/json-array.c b/json-glib/json-array.c index 16f36a4..5149aad 100644 --- a/json-glib/json-array.c +++ b/json-glib/json-array.c @@ -157,10 +157,10 @@ json_array_unref (JsonArray *array) * * Gets the elements of a #JsonArray as a list of #JsonNode<!-- -->s. * - * Return value: a #GList containing the elements of the array. The - * contents of the list are owned by the array and should never be - * modified or freed. Use g_list_free() on the returned list when - * done using it + * Return value: (element-type JsonNode) (transfer container): a #GList + * containing the elements of the array. The contents of the list are + * owned by the array and should never be modified or freed. Use + * g_list_free() on the returned list when done using it */ GList * json_array_get_elements (JsonArray *array) @@ -186,8 +186,8 @@ json_array_get_elements (JsonArray *array) * Retrieves a copy of the #JsonNode containing the value of the * element at @index_ inside a #JsonArray * - * Return value: a copy of the #JsonNode at the requested index. - * Use json_node_free() when done. + * Return value: (transfer full): a copy of the #JsonNode at the requested + * index. Use json_node_free() when done. * * Since: 0.6 */ @@ -386,7 +386,7 @@ json_array_get_null_element (JsonArray *array, * * See also: json_array_get_element(), json_node_get_array() * - * Return value: the array + * Return value: (transfer none): the array * * Since: 0.8 */ @@ -416,7 +416,7 @@ json_array_get_array_element (JsonArray *array, * * See also: json_array_get_element(), json_node_get_object() * - * Return value: the object + * Return value: (transfer none): the object * * Since: 0.8 */ @@ -669,7 +669,7 @@ json_array_remove_element (JsonArray *array, * json_array_foreach_element: * @array: a #JsonArray * @func: the function to be called on each element - * @data: data to be passed to the function + * @data: (allow-none): data to be passed to the function * * Iterates over all elements of @array and calls @func on * each one of them. |