[json-glib] Add missing annotations



commit d8de1631c41333ba72a11658a2102bb42fb15d09
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Feb 14 17:56:10 2014 +0000

    Add missing annotations
    
    JsonNode, JsonObject, and JsonArray have various constructors, so we
    need to annotate them.

 json-glib/json-array.c  |   10 +++++-----
 json-glib/json-node.c   |    2 +-
 json-glib/json-object.c |    6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/json-glib/json-array.c b/json-glib/json-array.c
index 0d65e42..9108a72 100644
--- a/json-glib/json-array.c
+++ b/json-glib/json-array.c
@@ -47,11 +47,11 @@
 G_DEFINE_BOXED_TYPE (JsonArray, json_array, json_array_ref, json_array_unref);
 
 /**
- * json_array_new:
+ * json_array_new: (constructor)
  *
  * Creates a new #JsonArray.
  *
- * Return value: the newly created #JsonArray
+ * Return value: (transfer full): the newly created #JsonArray
  */
 JsonArray *
 json_array_new (void)
@@ -67,12 +67,12 @@ json_array_new (void)
 }
 
 /**
- * json_array_sized_new:
+ * json_array_sized_new: (constructor)
  * @n_elements: number of slots to pre-allocate
  *
  * Creates a new #JsonArray with @n_elements slots already allocated.
  *
- * Return value: the newly created #JsonArray
+ * Return value: (transfer full): the newly created #JsonArray
  */
 JsonArray *
 json_array_sized_new (guint n_elements)
@@ -93,7 +93,7 @@ json_array_sized_new (guint n_elements)
  *
  * Increase by one the reference count of a #JsonArray.
  *
- * Return value: the passed #JsonArray, with the reference count
+ * Return value: (transfer none): the passed #JsonArray, with the reference count
  *   increased by one.
  */
 JsonArray *
diff --git a/json-glib/json-node.c b/json-glib/json-node.c
index 88a814e..e5a66a7 100644
--- a/json-glib/json-node.c
+++ b/json-glib/json-node.c
@@ -89,7 +89,7 @@ json_node_get_value_type (JsonNode *node)
 }
 
 /**
- * json_node_alloc:
+ * json_node_alloc: (constructor)
  *
  * Allocates a new #JsonNode. Use json_node_init() and its variants
  * to initialize the returned value.
diff --git a/json-glib/json-object.c b/json-glib/json-object.c
index e7a7e29..95d2e86 100644
--- a/json-glib/json-object.c
+++ b/json-glib/json-object.c
@@ -52,11 +52,11 @@
 G_DEFINE_BOXED_TYPE (JsonObject, json_object, json_object_ref, json_object_unref);
 
 /**
- * json_object_new:
+ * json_object_new: (constructor)
  * 
  * Creates a new #JsonObject, an JSON object type representation.
  *
- * Return value: the newly created #JsonObject
+ * Return value: (transfer full): the newly created #JsonObject
  */
 JsonObject *
 json_object_new (void)
@@ -80,7 +80,7 @@ json_object_new (void)
  *
  * Increase by one the reference count of a #JsonObject.
  *
- * Return value: the passed #JsonObject, with the reference count
+ * Return value: (transfer none): the passed #JsonObject, with the reference count
  *   increased by one.
  */
 JsonObject *


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