From: Christian Kellner Date: Tue, 16 Jul 2019 16:16:52 +0000 (+0200) Subject: glib-2.0: add MappedFile.from_fd constructor X-Git-Tag: 0.36.20~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33e3b12c09f3b6c98d86ac1c770957cf9f0bbfc6;p=thirdparty%2Fvala.git glib-2.0: add MappedFile.from_fd constructor Add the missing 'g_mapped_file_new_from_fd' constructor, added with glib 2.32. Fixes https://gitlab.gnome.org/GNOME/vala/issues/824 --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 069e1b325..668153ab5 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -3658,6 +3658,8 @@ namespace GLib { [CCode (ref_function = "g_mapped_file_ref", unref_function = "g_mapped_file_unref")] public class MappedFile { public MappedFile (string filename, bool writable) throws FileError; + [Version (since = "2.32")] + public MappedFile.from_fd (int fd, bool writable) throws FileError; public size_t get_length (); public unowned char* get_contents (); [Version (since = "2.34")]