From: Rico Tzschichholz Date: Sun, 2 Aug 2020 10:35:42 +0000 (+0200) Subject: gio-unix-2.0: Fix "g_unix_mount_for" binding X-Git-Tag: 0.46.13~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b2ebb3aee97bf0a71e7f776d99d1dee9013c5aa;p=thirdparty%2Fvala.git gio-unix-2.0: Fix "g_unix_mount_for" binding Fixes https://gitlab.gnome.org/GNOME/vala/issues/1052 --- 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 @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 @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 @for (string file_path, out uint64 time_read = null); [CCode (cname = "g_unix_mounts_get")] public static GLib.List @get (out uint64 time_read = null); }