]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-unix-2.0: Fix "g_unix_mount_at" binding
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 18 Oct 2016 21:15:40 +0000 (23:15 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 18 Oct 2016 21:15:40 +0000 (23:15 +0200)
vapi/gio-unix-2.0.vapi
vapi/packages/gio-unix-2.0/gio-unix-2.0-custom.vala

index b41b4eda1ca177bad998a3d7b79defb12e0f95a8..d24683ae9e7d56544a70386e2251f904f3113026 100644 (file)
@@ -78,9 +78,9 @@ namespace GLib {
        [Compact]
        public class UnixMountEntry {
                [CCode (cname = "g_unix_mount_at")]
-               public UnixMountEntry (string mount_path, uint64 time_read);
+               public UnixMountEntry (string mount_path, out uint64 time_read = null);
                public int compare (GLib.UnixMountEntry mount);
-               [CCode (cheader_filename = "gio/gunixmounts.h", cname = "g_unix_mounts_get")]
+               [CCode (cname = "g_unix_mounts_get")]
                public static GLib.List<GLib.UnixMountEntry> @get (out uint64 time_read = null);
                public unowned string get_device_path ();
                public unowned string get_fs_type ();
@@ -89,6 +89,7 @@ namespace GLib {
                public GLib.Icon guess_icon ();
                public string guess_name ();
                public bool guess_should_display ();
+               [Version (since = "2.34")]
                public GLib.Icon guess_symbolic_icon ();
                public bool is_readonly ();
                public bool is_system_internal ();
index 424e2ec29c16af1345df739dff0e6ca76a5df5b8..4b930b04a0c16bb518e66b0b0130ab4f802fcc0e 100644 (file)
@@ -25,7 +25,7 @@ namespace GLib {
        [CCode (cname = "GUnixMountEntry", cheader_filename = "gio/gunixmounts.h", lower_case_cprefix = "g_unix_mount_", free_function = "g_unix_mount_free")]
        public class UnixMountEntry {
                [CCode (cname = "g_unix_mount_at")]
-               public UnixMountEntry (string mount_path, uint64 time_read);
+               public UnixMountEntry (string mount_path, out uint64 time_read = null);
                public int compare (GLib.UnixMountEntry mount);
                public unowned string get_device_path ();
                public unowned string get_fs_type ();
@@ -34,11 +34,12 @@ namespace GLib {
                public GLib.Icon guess_icon ();
                public string guess_name ();
                public bool guess_should_display ();
+               [Version (since = "2.34")]
                public GLib.Icon guess_symbolic_icon ();
                public bool is_readonly ();
                public bool is_system_internal ();
 
-               [CCode (cname = "g_unix_mounts_get", cheader_filename = "gio/gunixmounts.h")]
+               [CCode (cname = "g_unix_mounts_get")]
                public static GLib.List<UnixMountEntry> @get (out uint64 time_read = null);
        }
 }