From: Rico Tzschichholz Date: Mon, 7 Mar 2022 06:35:46 +0000 (+0100) Subject: glib-2.0: Fix memory management of TestSuite.add*/get_root() with 2.70 X-Git-Tag: 0.56.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f0a146f65673379fc84c3cd8e6bca826ffad96f;p=thirdparty%2Fvala.git glib-2.0: Fix memory management of TestSuite.add*/get_root() with 2.70 Fixes https://gitlab.gnome.org/GNOME/vala/issues/1295 --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index e22acacdd..47a585cf5 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -5019,13 +5019,25 @@ namespace GLib { public TestSuite (string name); [Version (since = "2.16")] [CCode (cname = "g_test_get_root")] +#if GLIB_2_70 + public static unowned TestSuite get_root (); +#else public static TestSuite get_root (); +#endif [Version (since = "2.16")] [CCode (cname = "g_test_suite_add")] +#if GLIB_2_70 + public void add (owned TestCase test_case); +#else public void add (TestCase test_case); +#endif [Version (since = "2.16")] [CCode (cname = "g_test_suite_add_suite")] +#if GLIB_2_70 + public void add_suite (owned TestSuite test_suite); +#else public void add_suite (TestSuite test_suite); +#endif [Version (since = "2.70")] [DestroysInstance] [CCode (cname = "g_test_suite_free")]