[json-glib] builder: Add missing (transfer) annotation to json_builder_add_value()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib] builder: Add missing (transfer) annotation to json_builder_add_value()
- Date: Sun, 25 Jan 2015 17:03:06 +0000 (UTC)
commit aee569b0bc2542aa8f1d13d66ddadacbda1035ac
Author: Philip Withnall <philip withnall collabora co uk>
Date: Sun Jan 25 11:47:23 2015 +0000
builder: Add missing (transfer) annotation to json_builder_add_value()
Document and annotate the fact that json_builder_add_value() takes
ownership of the JsonNode passed in to it.
https://bugzilla.gnome.org/show_bug.cgi?id=743475
json-glib/json-builder.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/json-glib/json-builder.c b/json-glib/json-builder.c
index f3d6599..d3a5cef 100644
--- a/json-glib/json-builder.c
+++ b/json-glib/json-builder.c
@@ -422,12 +422,14 @@ json_builder_set_member_name (JsonBuilder *builder,
/**
* json_builder_add_value:
* @builder: a #JsonBuilder
- * @node: the value of the member or element
+ * @node: (transfer full): the value of the member or element
*
* If called after json_builder_set_member_name(), sets @node as member of the
* most recent opened object, otherwise @node is added as element of the most
* recent opened array.
*
+ * The builder will take ownership of the #JsonNode.
+ *
* Return value: (transfer none): the #JsonBuilder, or %NULL if the call was inconsistent
*/
JsonBuilder *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]