From 7eac58511e0ebfcfdeb962bd1955cfbf3eb93ea2 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Sun, 2 Aug 2020 12:35:42 +0200 Subject: [PATCH] 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 @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); } -- 2.47.3