]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Fix wrong Version annotation and really add binding for g_close
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 7 Feb 2016 19:17:09 +0000 (20:17 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 7 Feb 2016 19:17:09 +0000 (20:17 +0100)
vapi/glib-2.0.vapi

index 66d975243dc03aabbd81e129095a470fd74e0bb0..b240b6b4de8843fe29344bf6a806fa087ce4081b 100644 (file)
@@ -3451,9 +3451,12 @@ namespace GLib {
                [CCode (cname = "symlink", cheader_filename = "unistd.h")]
                public static int symlink (string oldpath, string newpath);
 
-               [Version (since = "2.36")]
                [CCode (cname = "close", cheader_filename = "unistd.h")]
                public static int close (int fd);
+
+               [Version (since = "2.36")]
+               [CCode (cname = "g_close")]
+               public static bool close_checked (int fd) throws FileError;
        }
 
        [CCode (cname = "struct stat", cheader_filename = "sys/stat.h,glib/gstdio.h")]