From 2c9e91b4a0387b8e6e2fbd11a9b335cdc63896cd Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Thu, 26 Mar 2026 09:39:39 +0100 Subject: [PATCH] gio-unix-2.0: Restore MountEntry/MountPoint constructors --- vapi/gio-unix-2.0.vapi | 12 ++++++------ vapi/metadata/GioUnix-2.0.metadata | 6 ++++++ 2 files changed, 12 insertions(+), 6 deletions(-) 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" -- 2.47.3