]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: add MappedFile.from_fd constructor
authorChristian Kellner <christian@kellner.me>
Tue, 16 Jul 2019 16:16:52 +0000 (18:16 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 6 Aug 2019 12:02:21 +0000 (14:02 +0200)
Add the missing 'g_mapped_file_new_from_fd' constructor, added
with glib 2.32.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/824

vapi/glib-2.0.vapi

index 069e1b325a716946b67ee7ea8185e4198592e8e8..668153ab5c20bd1518f466be7b017124cf11505d 100644 (file)
@@ -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")]