]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
json-glib-1.0: Keep compatibility with 1.0.x and lower
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 12 Mar 2016 11:50:03 +0000 (12:50 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 12 Mar 2016 11:53:52 +0000 (12:53 +0100)
vapi/json-glib-1.0.vapi
vapi/metadata/Json-1.0.metadata

index 596c1a7f4bba64c179b3543270487835b399a6c4..d33e61af8a69bbd3a9979644feea85fbd5470d31 100644 (file)
@@ -112,7 +112,7 @@ namespace Json {
                [Version (since = "0.4")]
                public Json.Node root { get; set; }
        }
-       [CCode (cheader_filename = "json-glib/json-glib.h", ref_function = "json_node_ref", type_id = "json_node_get_type ()", unref_function = "json_node_unref")]
+       [CCode (cheader_filename = "json-glib/json-glib.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "json_node_get_type ()")]
        [Compact]
        public class Node {
                [CCode (has_construct_function = false)]
@@ -162,8 +162,6 @@ namespace Json {
                [Version (since = "0.8")]
                public bool is_null ();
                [Version (since = "1.2")]
-               public Json.Node @ref ();
-               [Version (since = "1.2")]
                public void seal ();
                public void set_array (Json.Array array);
                public void set_boolean (bool value);
@@ -177,8 +175,6 @@ namespace Json {
                public void take_array (owned Json.Array array);
                public void take_object (owned Json.Object object);
                public unowned string type_name ();
-               [Version (since = "1.2")]
-               public void unref ();
        }
        [CCode (cheader_filename = "json-glib/json-glib.h", ref_function = "json_object_ref", type_id = "json_object_get_type ()", unref_function = "json_object_unref")]
        [Compact]
index 210fa0c84c05392803bbc9b71ecf6d01fd638dfb..937ab25829366e297d392665484dc4bb093da64b 100644 (file)
@@ -8,6 +8,9 @@ Builder
        .new_immutable name="immutable_new"
 Parser
        .new_immutable name="immutable_new"
+Node
+       .ref skip
+       .unref skip
 
 // Forward Upstream
 Json cheader_filename="json-glib/json-glib.h"