]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gmodule-2.0: Improvements and updates from 2.76
authorValeri Ochinski <v19930312@gmail.com>
Sat, 30 Dec 2023 17:53:56 +0000 (20:53 +0300)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 1 Jan 2024 12:00:23 +0000 (13:00 +0100)
vapi/gmodule-2.0.vapi
vapi/metadata/GModule-2.0-custom.vala
vapi/metadata/GModule-2.0.metadata

index 7174a433581a6b05b40249de6a56811692678fa0..8c128b90e872acad1bf62f5a9bbaebd2690d6181 100644 (file)
@@ -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);
index d4fd26d4abdd6b055b645affc1137675809a90e4..75ab7e328e04a529ed2412aac60d280785592edc 100644 (file)
@@ -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 {
index 04643af8de8c227dc2a7c3cc6792618e56d32bba..069504da5fdeb8ac1b0c1214967944ecf2135269 100644 (file)
@@ -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