[vala] glib-2.0: Fix wrong Version annotation and really add binding for g_close



commit c884192511c97e846675a9c350dcb960feb07627
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Feb 7 20:17:09 2016 +0100

    glib-2.0: Fix wrong Version annotation and really add binding for g_close

 vapi/glib-2.0.vapi |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 66d9752..b240b6b 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -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")]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]