]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-unix-2.0: Fix "g_unix_mount_for" binding
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 2 Aug 2020 10:35:42 +0000 (12:35 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 3 Aug 2020 11:35:13 +0000 (13:35 +0200)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1052

vapi/gio-unix-2.0.vapi
vapi/packages/gio-unix-2.0/gio-unix-2.0-custom.vala

index c84d2914e79f531d082107c5627bbc11cb7c5d9b..430e3fa40b5d2bd4bfebe097d1526eaca45c208b 100644 (file)
@@ -81,9 +81,9 @@ namespace GLib {
                [CCode (cname = "g_unix_mount_at")]
                public UnixMountEntry (string mount_path, out uint64 time_read = null);
                public int compare (GLib.UnixMountEntry mount);
-               [CCode (cname = "g_unix_mounts_for")]
+               [CCode (cname = "g_unix_mount_for")]
                [Version (since = "2.52")]
-               public static GLib.List<GLib.UnixMountEntry> @for (string file_path, out uint64 time_read = null);
+               public UnixMountEntry.@for (string file_path, out uint64 time_read = null);
                [CCode (cname = "g_unix_mounts_get")]
                public static GLib.List<GLib.UnixMountEntry> @get (out uint64 time_read = null);
                public unowned string get_device_path ();
index 9a2300f97726858e019ca83e26bb4fbf217fa286..8e8d103cd902e6c2ce3d1143f584b202a628c962 100644 (file)
@@ -26,6 +26,9 @@ namespace GLib {
        public class UnixMountEntry {
                [CCode (cname = "g_unix_mount_at")]
                public UnixMountEntry (string mount_path, out uint64 time_read = null);
+               [CCode (cname = "g_unix_mount_for")]
+               [Version (since = "2.52")]
+               public UnixMountEntry.@for (string file_path, out uint64 time_read = null);
                public int compare (GLib.UnixMountEntry mount);
                public unowned string get_device_path ();
                public unowned string get_fs_type ();
@@ -39,9 +42,6 @@ namespace GLib {
                public bool is_readonly ();
                public bool is_system_internal ();
 
-               [CCode (cname = "g_unix_mounts_for")]
-               [Version (since = "2.52")]
-               public static GLib.List<UnixMountEntry> @for (string file_path, out uint64 time_read = null);
                [CCode (cname = "g_unix_mounts_get")]
                public static GLib.List<UnixMountEntry> @get (out uint64 time_read = null);
        }