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.40.24~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc7f769899be50363baa7550910d8695fbca67ab;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 c84d2914e..430e3fa40 100644 --- a/vapi/gio-unix-2.0.vapi +++ b/vapi/gio-unix-2.0.vapi @@ -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 @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 9a2300f97..8e8d103cd 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 (); @@ -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 @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); }