From: Rico Tzschichholz Date: Sat, 12 Mar 2016 11:50:03 +0000 (+0100) Subject: json-glib-1.0: Keep compatibility with 1.0.x and lower X-Git-Tag: 0.32.0~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=440ef8076a004c08064e33192c2481ee886a19a1;p=thirdparty%2Fvala.git json-glib-1.0: Keep compatibility with 1.0.x and lower --- diff --git a/vapi/json-glib-1.0.vapi b/vapi/json-glib-1.0.vapi index 596c1a7f4..d33e61af8 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 210fa0c84..937ab2582 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"