[json-glib] Fix introspection annotations



commit 8bb22d7de00f15ef44cad502d757639d8a4e8973
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Tue Feb 15 16:28:07 2011 +0000

    Fix introspection annotations

 json-glib/json-node.c   |    7 ++++---
 json-glib/json-object.c |    4 ++--
 2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/json-glib/json-node.c b/json-glib/json-node.c
index 7cb8852..f136b06 100644
--- a/json-glib/json-node.c
+++ b/json-glib/json-node.c
@@ -330,7 +330,7 @@ json_node_dup_array (JsonNode *node)
 /**
  * json_node_get_value:
  * @node: a #JsonNode
- * @value: (out): return location for an uninitialized value
+ * @value: (out caller-allocates): 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.
@@ -498,7 +498,7 @@ json_node_type_get_name (JsonNodeType node_type)
 /**
  * json_node_set_parent:
  * @node: a #JsonNode
- * @parent: the parent #JsonNode of @node
+ * @parent: (transfer none): the parent #JsonNode of @node
  *
  * Sets the parent #JsonNode of @node
  *
@@ -519,7 +519,8 @@ json_node_set_parent (JsonNode *node,
  *
  * Retrieves the parent #JsonNode of @node.
  *
- * Return value: (transfer none) 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 7a5f2ec..1a655de 100644
--- a/json-glib/json-object.c
+++ b/json-glib/json-object.c
@@ -194,7 +194,7 @@ json_object_add_member (JsonObject  *object,
  * json_object_set_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
  *
  * Sets @node as the value of @member_name inside @object.
  *
@@ -499,7 +499,7 @@ json_object_get_values (JsonObject *object)
  * Retrieves a copy of the #JsonNode containing the value of @member_name
  * inside a #JsonObject
  *
- * Return value: (transfer full) a copy of the node for the requested
+ * Return value: (transfer full): a copy of the node for the requested
  *   object member or %NULL. Use json_node_free() when done.
  *
  * Since: 0.6



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]