[vala] json-glib-1.0: Keep compatibility with 1.0.x and lower



commit 440ef8076a004c08064e33192c2481ee886a19a1
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Mar 12 12:50:03 2016 +0100

    json-glib-1.0: Keep compatibility with 1.0.x and lower

 vapi/json-glib-1.0.vapi         |    6 +-----
 vapi/metadata/Json-1.0.metadata |    3 +++
 2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/vapi/json-glib-1.0.vapi b/vapi/json-glib-1.0.vapi
index 596c1a7..d33e61a 100644
--- a/vapi/json-glib-1.0.vapi
+++ b/vapi/json-glib-1.0.vapi
@@ -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]
diff --git a/vapi/metadata/Json-1.0.metadata b/vapi/metadata/Json-1.0.metadata
index 210fa0c..937ab25 100644
--- a/vapi/metadata/Json-1.0.metadata
+++ b/vapi/metadata/Json-1.0.metadata
@@ -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"


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