summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2011-02-15 16:28:07 +0000
committerEmmanuele Bassi <ebassi@linux.intel.com>2011-02-15 16:28:07 +0000
commit8bb22d7de00f15ef44cad502d757639d8a4e8973 (patch)
treeecc356c1f1929465f3972569b7f65f12207da6d4
parent217127545b07f93ac27e3f137d748d61a5e199da (diff)
downloadjson-glib-8bb22d7de00f15ef44cad502d757639d8a4e8973.tar.gz
Fix introspection annotations
-rw-r--r--json-glib/json-node.c7
-rw-r--r--json-glib/json-object.c4
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