From: Valeri Ochinski Date: Sat, 30 Dec 2023 17:53:56 +0000 (+0300) Subject: gmodule-2.0: Improvements and updates from 2.76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4adc031783b9ee6d15da22bc03cafe2c0fb381a2;p=thirdparty%2Fvala.git gmodule-2.0: Improvements and updates from 2.76 --- diff --git a/vapi/gmodule-2.0.vapi b/vapi/gmodule-2.0.vapi index 7174a4335..8c128b90e 100644 --- a/vapi/gmodule-2.0.vapi +++ b/vapi/gmodule-2.0.vapi @@ -5,7 +5,11 @@ namespace GLib { [CCode (cheader_filename = "gmodule.h", free_function = "g_module_close", has_type_id = false)] [Compact] public class Module { + [Version (deprecated = true, deprecated_since = "2.76")] public const string SUFFIX; + [CCode (cname = "g_module_open_full", has_construct_function = false)] + [Version (since = "2.70")] + public Module (string? file_name, GLib.ModuleFlags flags) throws GLib.ModuleError; [Version (deprecated = true, deprecated_since = "2.76")] public static string build_path (string? directory, string module_name); [DestroysInstance] @@ -14,6 +18,7 @@ namespace GLib { public static GLib.Quark error_quark (); public void make_resident (); public unowned string name (); + [Version (deprecated = true, deprecated_since = "2.70", replacement = "Module.new")] public static GLib.Module? open (string? file_name, GLib.ModuleFlags flags); public static bool supported (); public bool symbol (string symbol_name, out void* symbol); diff --git a/vapi/metadata/GModule-2.0-custom.vala b/vapi/metadata/GModule-2.0-custom.vala index d4fd26d4a..75ab7e328 100644 --- a/vapi/metadata/GModule-2.0-custom.vala +++ b/vapi/metadata/GModule-2.0-custom.vala @@ -2,8 +2,8 @@ namespace GLib { [Compact] [CCode (free_function = "g_module_close")] public class Module { + [Version (deprecated = true, deprecated_since = "2.76")] public const string SUFFIX; - public static Module? open (string? file_name, ModuleFlags flags); } public enum ModuleFlags { diff --git a/vapi/metadata/GModule-2.0.metadata b/vapi/metadata/GModule-2.0.metadata index 04643af8d..069504da5 100644 --- a/vapi/metadata/GModule-2.0.metadata +++ b/vapi/metadata/GModule-2.0.metadata @@ -1,3 +1,6 @@ GModule name="GLib" -Module.close destroys_instance +Module + .open_full skip=false name="new" symbol_type="constructor" throws="GLib.ModuleError" + .open skip=false unowned=false nullable deprecated_since="2.70" replacement="Module.new" + .close destroys_instance