[json-glib] Add introspection annotations
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib] Add introspection annotations
- Date: Sat, 25 Sep 2010 10:27:04 +0000 (UTC)
commit 617286e4d38a93e41e1e1d974d01c1d73fd2ff66
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Sat Sep 25 11:23:10 2010 +0100
Add introspection annotations
json-glib/json-array.c | 4 ++--
json-glib/json-gboxed.c | 14 +++++++-------
json-glib/json-gobject.c | 4 ++--
json-glib/json-object.c | 4 ++--
4 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/json-glib/json-array.c b/json-glib/json-array.c
index 6e0dada..da26898 100644
--- a/json-glib/json-array.c
+++ b/json-glib/json-array.c
@@ -692,8 +692,8 @@ json_array_remove_element (JsonArray *array,
/**
* json_array_foreach_element:
* @array: a #JsonArray
- * @func: the function to be called on each element
- * @data: (allow-none): data to be passed to the function
+ * @func: (scope call): the function to be called on each element
+ * @data: (closure): data to be passed to the function
*
* Iterates over all elements of @array and calls @func on
* each one of them.
diff --git a/json-glib/json-gboxed.c b/json-glib/json-gboxed.c
index cf8e545..8f21f75 100644
--- a/json-glib/json-gboxed.c
+++ b/json-glib/json-gboxed.c
@@ -136,7 +136,7 @@ lookup_boxed_transform (GSList *transforms,
}
/**
- * json_boxed_register_serialize_func:
+ * json_boxed_register_serialize_func: (skip)
* @gboxed_type: a boxed type
* @node_type: a node type
* @serialize_func: serialization function for @boxed_type into
@@ -181,7 +181,7 @@ json_boxed_register_serialize_func (GType gboxed_type,
}
/**
- * json_boxed_register_deserialize_func:
+ * json_boxed_register_deserialize_func: (skip)
* @gboxed_type: a boxed type
* @node_type: a node type
* @deserialize_func: deserialization function for @boxed_type from
@@ -298,9 +298,8 @@ json_boxed_can_deserialize (GType gboxed_type,
* Serializes @boxed, a pointer to a #GBoxed of type @gboxed_type,
* into a #JsonNode
*
- * Return value: a #JsonNode with the serialization of the boxed
- * type, or %NULL if serialization either failed or was not
- * possible
+ * Return value: (transfer full): a #JsonNode with the serialization of the
+ * boxed type, or %NULL if serialization either failed or was not possible
*
* Since: 0.10
*/
@@ -328,8 +327,9 @@ json_boxed_serialize (GType gboxed_type,
*
* Deserializes @node into a #GBoxed of @gboxed_type
*
- * Return value: the newly allocated #GBoxed. Use g_boxed_free() to
- * release the resources allocated by this function
+ * Return value: (transfer full): the newly allocated #GBoxed. Use
+ * g_boxed_free() to release the resources allocated by this
+ * function
*
* Since: 0.10
*/
diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c
index 9401ab9..ba04e19 100644
--- a/json-glib/json-gobject.c
+++ b/json-glib/json-gobject.c
@@ -762,7 +762,7 @@ json_gobject_serialize (GObject *gobject)
*
* Note: the JSON data stream must be an object declaration.
*
- * Return value: a #GObject or %NULL
+ * Return value: (transfer full): a #GObject or %NULL
*
* Since: 0.4
*
@@ -792,7 +792,7 @@ json_construct_gobject (GType gtype,
*
* Note: the JSON data stream must be an object declaration.
*
- * Return value: a #GObject or %NULL
+ * Return value: (transfer full): a #GObject or %NULL
*
* Since: 0.10
*/
diff --git a/json-glib/json-object.c b/json-glib/json-object.c
index 6948f67..51072be 100644
--- a/json-glib/json-object.c
+++ b/json-glib/json-object.c
@@ -814,8 +814,8 @@ json_object_remove_member (JsonObject *object,
/**
* json_object_foreach_member:
* @object: a #JsonObject
- * @func: the function to be called on each member
- * @data: data to be passed to the function
+ * @func: (scope call): the function to be called on each member
+ * @data: (closure): data to be passed to the function
*
* Iterates over all members of @object and calls @func on
* each one of them.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]