]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-unix-2.0: Restore MountEntry/MountPoint constructors main
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 26 Mar 2026 08:39:39 +0000 (09:39 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 26 Mar 2026 08:40:38 +0000 (09:40 +0100)
vapi/gio-unix-2.0.vapi
vapi/metadata/GioUnix-2.0.metadata

index e4201e2a285e5196adff8445a56d319229fc91e6..3f8b2376406478593ec19fd57549f8399540042f 100644 (file)
@@ -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")]
index 68162cdc95959d1e3a238535d5eda677d91e5e64..897faea14061c97887db9a8dafa0f3ecbb80d4ae 100644 (file)
@@ -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"