[vala] json-glib-1.0: Fix parameter ownership



commit 5f8c7a7aec996402c50c6a9ef3f483b1db262ed1
Author: Raffaele Sandrini <raffaele sandrini ch>
Date:   Sun Jan 10 12:15:52 2010 +0100

    json-glib-1.0: Fix parameter ownership

 vapi/json-glib-1.0.vapi                            |    8 ++++----
 vapi/packages/json-glib-1.0/json-glib-1.0.metadata |    4 ++++
 2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/vapi/json-glib-1.0.vapi b/vapi/json-glib-1.0.vapi
index d1db9be..68403bb 100644
--- a/vapi/json-glib-1.0.vapi
+++ b/vapi/json-glib-1.0.vapi
@@ -7,13 +7,13 @@ namespace Json {
 	public class Array {
 		[CCode (has_construct_function = false)]
 		public Array ();
-		public void add_array_element (Json.Array value);
+		public void add_array_element (owned Json.Array value);
 		public void add_boolean_element (bool value);
 		public void add_double_element (double value);
 		public void add_element (owned Json.Node node);
 		public void add_int_element (int64 value);
 		public void add_null_element ();
-		public void add_object_element (Json.Object value);
+		public void add_object_element (owned Json.Object value);
 		public void add_string_element (string value);
 		public unowned Json.Node dup_element (uint index_);
 		public void foreach_element (Json.ArrayForeach func, void* data);
@@ -99,13 +99,13 @@ namespace Json {
 		public GLib.List<weak Json.Node> get_values ();
 		public bool has_member (string member_name);
 		public void remove_member (string member_name);
-		public void set_array_member (string member_name, Json.Array value);
+		public void set_array_member (string member_name, owned Json.Array value);
 		public void set_boolean_member (string member_name, bool value);
 		public void set_double_member (string member_name, double value);
 		public void set_int_member (string member_name, int64 value);
 		public void set_member (string member_name, Json.Node node);
 		public void set_null_member (string member_name);
-		public void set_object_member (string member_name, Json.Object value);
+		public void set_object_member (string member_name, owned Json.Object value);
 		public void set_string_member (string member_name, string value);
 	}
 	[CCode (cheader_filename = "json-glib/json-glib.h")]
diff --git a/vapi/packages/json-glib-1.0/json-glib-1.0.metadata b/vapi/packages/json-glib-1.0/json-glib-1.0.metadata
index b12b828..08bbc39 100644
--- a/vapi/packages/json-glib-1.0/json-glib-1.0.metadata
+++ b/vapi/packages/json-glib-1.0/json-glib-1.0.metadata
@@ -8,7 +8,9 @@ json_serializable_serialize_property transfer_ownership="1"
 json_construct_gobject cheader_filename="json-glib/json-gobject.h" transfer_ownership="1"
 json_serialize_gobject cheader_filename="json-glib/json-gobject.h" transfer_ownership="1"
 json_serialize_gobject.length is_out="1"
+json_array_add_array_element.value transfer_ownership="1"
 json_array_add_element.node transfer_ownership="1"
+json_array_add_object_element.value transfer_ownership="1"
 json_array_get_elements hidden="1"
 json_node_copy transfer_ownership="1"
 json_node_dup_array transfer_ownership="1"
@@ -20,4 +22,6 @@ json_node_take_object.object transfer_ownership="1"
 json_object_get_members hidden="1"
 json_object_get_values hidden="1"
 json_object_add_member.node transfer_ownership="1"
+json_object_set_array_member.value transfer_ownership="1"
+json_object_set_object_member.value transfer_ownership="1"
 



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