[vala/0.46] gio-unix-2.0: Fix "g_unix_mount_for" binding



commit 8b2ebb3aee97bf0a71e7f776d99d1dee9013c5aa
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Aug 2 12:35:42 2020 +0200

    gio-unix-2.0: Fix "g_unix_mount_for" binding
    
    Fixes https://gitlab.gnome.org/GNOME/vala/issues/1052

 vapi/gio-unix-2.0.vapi                              | 4 ++--
 vapi/packages/gio-unix-2.0/gio-unix-2.0-custom.vala | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/vapi/gio-unix-2.0.vapi b/vapi/gio-unix-2.0.vapi
index e4589676d..64d446142 100644
--- a/vapi/gio-unix-2.0.vapi
+++ b/vapi/gio-unix-2.0.vapi
@@ -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 ();
diff --git a/vapi/packages/gio-unix-2.0/gio-unix-2.0-custom.vala 
b/vapi/packages/gio-unix-2.0/gio-unix-2.0-custom.vala
index c9b3bcb22..7bc438054 100644
--- a/vapi/packages/gio-unix-2.0/gio-unix-2.0-custom.vala
+++ b/vapi/packages/gio-unix-2.0/gio-unix-2.0-custom.vala
@@ -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);
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]