]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
json-glib-1.0: Fix bindings
authorMark Lee <git@lazymalevolence.com>
Sat, 2 May 2009 03:12:20 +0000 (20:12 -0700)
committerJürg Billeter <j@bitron.ch>
Thu, 7 May 2009 14:27:15 +0000 (16:27 +0200)
Fix JsonSerializable, json_serializable_deserialize_property,
json_construct_gobject, json_serialize_gobject, and
json_node_get_value bindings. Fixes bug 581068.

vapi/json-glib-1.0.vapi
vapi/packages/json-glib-1.0/json-glib-1.0.metadata

index c61ff0c9bf851cc8c8b99fa10e48cb80a9fad218..1cfab6201b3ade70c14bd7bc431821afc0904365 100644 (file)
@@ -45,7 +45,7 @@ namespace Json {
                public unowned Json.Object get_object ();
                public unowned Json.Node get_parent ();
                public unowned string get_string ();
-               public void get_value (GLib.Value value);
+               public void get_value (out GLib.Value value);
                public GLib.Type get_value_type ();
                [CCode (has_construct_function = false)]
                public Node (Json.NodeType type);
@@ -94,9 +94,9 @@ namespace Json {
                public virtual signal void parse_end ();
                public virtual signal void parse_start ();
        }
-       [CCode (cheader_filename = "json-glib/json-glib.h")]
+       [CCode (cheader_filename = "json-glib/json-gobject.h")]
        public interface Serializable {
-               public abstract bool deserialize_property (string property_name, GLib.Value value, GLib.ParamSpec pspec, Json.Node property_node);
+               public abstract bool deserialize_property (string property_name, out GLib.Value value, GLib.ParamSpec pspec, Json.Node property_node);
                public abstract Json.Node serialize_property (string property_name, GLib.Value value, GLib.ParamSpec pspec);
        }
        [CCode (cprefix = "JSON_NODE_", has_type_id = "0", cheader_filename = "json-glib/json-glib.h")]
@@ -130,8 +130,8 @@ namespace Json {
        public const int VERSION_HEX;
        [CCode (cheader_filename = "json-glib/json-glib.h")]
        public const string VERSION_S;
-       [CCode (cheader_filename = "json-glib/json-glib.h")]
+       [CCode (cheader_filename = "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")]
+       [CCode (cheader_filename = "json-glib/json-gobject.h")]
        public static string serialize_gobject (GLib.Object gobject, out size_t length);
 }
index 303a37979ca30573db459429d2b22365d4a38f53..b12b8283e665f13079250f409a9c6e3a93aa4d1e 100644 (file)
@@ -1,10 +1,12 @@
 Json cheader_filename="json-glib/json-glib.h"
+JsonSerializable cheader_filename="json-glib/json-gobject.h"
 json_generator_to_data transfer_ownership="1"
 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 transfer_ownership="1"
-json_serialize_gobject 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_element.node transfer_ownership="1"
 json_array_get_elements hidden="1"
@@ -12,6 +14,7 @@ json_node_copy transfer_ownership="1"
 json_node_dup_array transfer_ownership="1"
 json_node_dup_object transfer_ownership="1"
 json_node_dup_string transfer_ownership="1"
+json_node_get_value.value is_out="1"
 json_node_take_array.array transfer_ownership="1"
 json_node_take_object.object transfer_ownership="1"
 json_object_get_members hidden="1"