[json-glib/json-glib-0-12] Add missing introspection annotations.
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib/json-glib-0-12] Add missing introspection annotations.
- Date: Mon, 10 Jan 2011 11:28:18 +0000 (UTC)
commit 389e3213ff33aee096a6734ae87080462310a893
Author: Luca Bruno <lucabru src gnome org>
Date: Thu Jan 6 17:44:46 2011 +0100
Add missing introspection annotations.
https://bugzilla.gnome.org/show_bug.cgi?id=638932
(cherry picked from commit e828cba563f2584e848994935478a7ffd21728df)
Signed-off-by: Emmanuele Bassi <ebassi linux intel com>
json-glib/json-array.c | 8 ++++----
json-glib/json-node.c | 8 ++++----
json-glib/json-object.c | 8 ++++----
json-glib/json-parser.c | 2 +-
json-glib/json-serializable.c | 2 +-
5 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/json-glib/json-array.c b/json-glib/json-array.c
index da26898..0a19e0a 100644
--- a/json-glib/json-array.c
+++ b/json-glib/json-array.c
@@ -215,7 +215,7 @@ json_array_dup_element (JsonArray *array,
* Retrieves the #JsonNode containing the value of the element at @index_
* inside a #JsonArray.
*
- * Return value: a pointer to the #JsonNode at the requested index
+ * Return value: (transfer none): a pointer to the #JsonNode at the requested index
*/
JsonNode *
json_array_get_element (JsonArray *array,
@@ -464,7 +464,7 @@ json_array_get_length (JsonArray *array)
/**
* json_array_add_element:
* @array: a #JsonArray
- * @node: a #JsonNode
+ * @node: (transfer full): a #JsonNode
*
* Appends @node inside @array. The array will take ownership of the
* #JsonNode.
@@ -610,7 +610,7 @@ json_array_add_null_element (JsonArray *array)
/**
* json_array_add_array_element:
* @array: a #JsonArray
- * @value: a #JsonArray
+ * @value: (transfer full): a #JsonArray
*
* Conveniently adds an array into @array. The @array takes ownership
* of the newly added #JsonArray
@@ -642,7 +642,7 @@ json_array_add_array_element (JsonArray *array,
/**
* json_array_add_object_element:
* @array: a #JsonArray
- * @value: a #JsonObject
+ * @value: (transfer full): a #JsonObject
*
* Conveniently adds an object into @array. The @array takes ownership
* of the newly added #JsonObject
diff --git a/json-glib/json-node.c b/json-glib/json-node.c
index 6a79c4c..529bf5a 100644
--- a/json-glib/json-node.c
+++ b/json-glib/json-node.c
@@ -193,7 +193,7 @@ json_node_set_object (JsonNode *node,
/**
* json_node_take_object:
* @node: a #JsonNode
- * @object: a #JsonObject
+ * @object: (transfer full): a #JsonObject
*
* Sets @object inside @node. The reference count of @object is not increased.
*/
@@ -278,7 +278,7 @@ json_node_set_array (JsonNode *node,
/**
* json_node_take_array:
* @node: a #JsonNode
- * @array: a #JsonArray
+ * @array: (transfer full): a #JsonArray
*
* Sets @array into @node without increasing the #JsonArray reference count.
*/
@@ -341,7 +341,7 @@ json_node_dup_array (JsonNode *node)
/**
* json_node_get_value:
* @node: a #JsonNode
- * @value: return location for an uninitialized value
+ * @value: (out): return location for an uninitialized value
*
* Retrieves a value from a #JsonNode and copies into @value. When done
* using it, call g_value_unset() on the #GValue.
@@ -530,7 +530,7 @@ json_node_set_parent (JsonNode *node,
*
* Retrieves the parent #JsonNode of @node.
*
- * Return value: the parent node, or %NULL if @node is the root node
+ * Return value: (transfer none) the parent node, or %NULL if @node is the root node
*/
JsonNode *
json_node_get_parent (JsonNode *node)
diff --git a/json-glib/json-object.c b/json-glib/json-object.c
index 51072be..c761134 100644
--- a/json-glib/json-object.c
+++ b/json-glib/json-object.c
@@ -150,7 +150,7 @@ object_set_member_internal (JsonObject *object,
* json_object_add_member:
* @object: a #JsonObject
* @member_name: the name of the member
- * @node: the value of the member
+ * @node: (transfer full): the value of the member
*
* Adds a member named @member_name and containing @node into a #JsonObject.
* The object will take ownership of the #JsonNode.
@@ -353,7 +353,7 @@ json_object_set_null_member (JsonObject *object,
* json_object_set_array_member:
* @object: a #JsonObject
* @member_name: the name of the member
- * @value: the value of the member
+ * @value: (transfer full): the value of the member
*
* Convenience function for setting an array @value of
* @member_name inside @object.
@@ -389,7 +389,7 @@ json_object_set_array_member (JsonObject *object,
* json_object_set_object_member:
* @object: a #JsonObject
* @member_name: the name of the member
- * @value: the value of the member
+ * @value: (transfer full): the value of the member
*
* Convenience function for setting an object @value of
* @member_name inside @object.
@@ -515,7 +515,7 @@ object_get_member_internal (JsonObject *object,
* Retrieves the #JsonNode containing the value of @member_name inside
* a #JsonObject.
*
- * Return value: a pointer to the node for the requested object
+ * Return value: (transfer none): a pointer to the node for the requested object
* member, or %NULL
*/
JsonNode *
diff --git a/json-glib/json-parser.c b/json-glib/json-parser.c
index 8c35770..ae5e48a 100644
--- a/json-glib/json-parser.c
+++ b/json-glib/json-parser.c
@@ -1127,7 +1127,7 @@ json_parser_get_current_pos (JsonParser *parser)
/**
* json_parser_has_assignment:
* @parser: a #JsonParser
- * @variable_name: (out) (allow-none): Return location for the variable
+ * @variable_name: (out) (allow-none) (transfer none): Return location for the variable
* name, or %NULL
*
* A JSON data stream might sometimes contain an assignment, like:
diff --git a/json-glib/json-serializable.c b/json-glib/json-serializable.c
index 1263eec..c2ac0ad 100644
--- a/json-glib/json-serializable.c
+++ b/json-glib/json-serializable.c
@@ -72,7 +72,7 @@ json_serializable_serialize_property (JsonSerializable *serializable,
* json_serializable_deserialize_property:
* @serializable: a #JsonSerializable
* @property_name: the name of the property
- * @value: a pointer to an uninitialized #GValue
+ * @value: (out): a pointer to an uninitialized #GValue
* @pspec: a #GParamSpec
* @property_node: a #JsonNode containing the serialized property
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]