]> 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>
Sun, 2 Aug 2020 10:38:33 +0000 (12:38 +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 e4589676db32f6bae70cc6838db0c429ee1e5314..64d44614235d97460067f63bec42b4d79ddb0c30 100644 (file)
@@ -84,9 +84,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 c9b3bcb22601e6d3da0ae8c5a625b455c5a3aa1a..7bc438054f81afad73daa57799194c4c04784086 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 ();
@@ -43,9 +46,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);
        }