[vala] json-glib-1.0: Fix ownership of several GObject serialization functions



commit 6303f9593274b00cbe345177488a16f3f965f8c3
Author: Evan Nemerson <evan coeus-group com>
Date:   Thu Nov 25 14:31:47 2010 -0800

    json-glib-1.0: Fix ownership of several GObject serialization functions

 vapi/json-glib-1.0.vapi                            |    8 +++++---
 vapi/packages/json-glib-1.0/json-glib-1.0.metadata |    8 ++++++--
 2 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/vapi/json-glib-1.0.vapi b/vapi/json-glib-1.0.vapi
index 219e1fb..fba6441 100644
--- a/vapi/json-glib-1.0.vapi
+++ b/vapi/json-glib-1.0.vapi
@@ -182,16 +182,18 @@ namespace Json {
 	public static void boxed_register_serialize_func (GLib.Type gboxed_type, Json.NodeType node_type, Json.BoxedSerializeFunc serialize_func);
 	[CCode (cheader_filename = "json-glib/json-glib.h")]
 	public static unowned Json.Node boxed_serialize (GLib.Type gboxed_type, void* boxed);
+	[Deprecated (since = "0.10", replacement = "Json.gobject_from_data")]
 	[CCode (cheader_filename = "json-glib/json-glib.h,json-glib/json-gobject.h")]
 	public static GLib.Object construct_gobject (GLib.Type gtype, string data, size_t length) throws GLib.Error;
 	[CCode (cheader_filename = "json-glib/json-glib.h")]
-	public static unowned GLib.Object gobject_deserialize (GLib.Type gtype, Json.Node node);
+	public static GLib.Object gobject_deserialize (GLib.Type gtype, Json.Node node);
 	[CCode (cheader_filename = "json-glib/json-glib.h")]
-	public static unowned GLib.Object gobject_from_data (GLib.Type gtype, string data, ssize_t length) throws GLib.Error;
+	public static GLib.Object gobject_from_data (GLib.Type gtype, string data, ssize_t length = -1) throws GLib.Error;
 	[CCode (cheader_filename = "json-glib/json-glib.h")]
-	public static unowned Json.Node gobject_serialize (GLib.Object gobject);
+	public static Json.Node gobject_serialize (GLib.Object gobject);
 	[CCode (cheader_filename = "json-glib/json-glib.h")]
 	public static string gobject_to_data (GLib.Object gobject, out size_t length);
+	[Deprecated (since = "0.10", replacement = "Json.gobject_to_data")]
 	[CCode (cheader_filename = "json-glib/json-glib.h,json-glib/json-gobject.h")]
 	public static string serialize_gobject (GLib.Object gobject, out size_t length);
 }
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 59ede14..9c7ac31 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
@@ -5,14 +5,18 @@ json_generator_to_data.length is_out="1"
 json_parser_has_assignment.variable_name is_out="1"
 json_serializable_deserialize_property.value is_out="1"
 json_serializable_serialize_property transfer_ownership="1"
-json_construct_gobject cheader_filename="json-glib/json-glib.h,json-glib/json-gobject.h" transfer_ownership="1"
-json_serialize_gobject cheader_filename="json-glib/json-glib.h,json-glib/json-gobject.h" transfer_ownership="1"
+json_construct_gobject cheader_filename="json-glib/json-glib.h,json-glib/json-gobject.h" transfer_ownership="1" deprecated="1" deprecated_since="0.10" replacement="Json.gobject_from_data"
+json_serialize_gobject cheader_filename="json-glib/json-glib.h,json-glib/json-gobject.h" transfer_ownership="1" deprecated="1" deprecated_since="0.10" replacement="Json.gobject_to_data"
 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_foreach_element.data hidden="1"
 json_array_add_object_element.value transfer_ownership="1"
 json_array_get_elements type_arguments="unowned Node" transfer_ownership="1"
+json_gobject_deserialize transfer_ownership="1"
+json_gobject_from_data transfer_ownership="1"
+json_gobject_from_data.length default_value="-1"
+json_gobject_serialize transfer_ownership="1"
 json_gobject_to_data transfer_ownership="1"
 json_gobject_to_data.length is_out="1"
 json_node_copy transfer_ownership="1"



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