From: Rico Tzschichholz Date: Thu, 26 Mar 2026 08:39:39 +0000 (+0100) Subject: gio-unix-2.0: Restore MountEntry/MountPoint constructors X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;p=thirdparty%2Fvala.git gio-unix-2.0: Restore MountEntry/MountPoint constructors --- diff --git a/vapi/gio-unix-2.0.vapi b/vapi/gio-unix-2.0.vapi index e4201e2a2..3f8b23764 100644 --- a/vapi/gio-unix-2.0.vapi +++ b/vapi/gio-unix-2.0.vapi @@ -95,18 +95,18 @@ namespace GLib { [Compact] [GIR (name = "MountEntry")] public class UnixMountEntry { - [CCode (cname = "g_unix_mount_entry_at")] + [CCode (cname = "g_unix_mount_entry_at", has_construct_function = false)] [Version (since = "2.84")] - public static GLib.UnixMountEntry? at (string mount_path, out uint64 time_read); + public UnixMountEntry (string mount_path, out uint64 time_read); [CCode (cname = "g_unix_mount_entry_compare")] [Version (since = "2.84")] public int compare (GLib.UnixMountEntry mount2); [CCode (cname = "g_unix_mount_entry_copy")] [Version (since = "2.84")] public GLib.UnixMountEntry copy (); - [CCode (cname = "g_unix_mount_entry_for")] + [CCode (cname = "g_unix_mount_entry_for", has_construct_function = false)] [Version (since = "2.84")] - public static GLib.UnixMountEntry? @for (string file_path, out uint64 time_read); + public UnixMountEntry.@for (string file_path, out uint64 time_read); [CCode (cname = "g_unix_mount_entry_free")] [Version (since = "2.84")] public void free (); @@ -166,9 +166,9 @@ namespace GLib { [Compact] [GIR (name = "MountPoint")] public class UnixMountPoint { - [CCode (cname = "g_unix_mount_point_at")] + [CCode (cname = "g_unix_mount_point_at", has_construct_function = false)] [Version (since = "2.66")] - public static GLib.UnixMountPoint? at (string mount_path, out uint64 time_read); + public UnixMountPoint (string mount_path, out uint64 time_read); [CCode (cname = "g_unix_mount_point_compare")] public int compare (GLib.UnixMountPoint mount2); [CCode (cname = "g_unix_mount_point_copy")] diff --git a/vapi/metadata/GioUnix-2.0.metadata b/vapi/metadata/GioUnix-2.0.metadata index 68162cdc9..897faea14 100644 --- a/vapi/metadata/GioUnix-2.0.metadata +++ b/vapi/metadata/GioUnix-2.0.metadata @@ -20,3 +20,9 @@ OutputStream name="UnixOutputStream" cheader_filename="gio/gunixoutputstream.h" DesktopAppInfo .search type="string**[]" + +MountEntry + .at name="new" symbol_type="constructor" + .for symbol_type="constructor" +MountPoint + .at name="new" symbol_type="constructor"