[vala/0.40] glib-2.0: add MappedFile.from_fd constructor
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] glib-2.0: add MappedFile.from_fd constructor
- Date: Mon, 5 Aug 2019 11:40:16 +0000 (UTC)
commit 2b4b1cc5c09c5fd899e1ad4928aa06be226d90fb
Author: Christian Kellner <christian kellner me>
Date: Tue Jul 16 18:16:52 2019 +0200
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
vapi/glib-2.0.vapi | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 6964cd9b4..eb725ffd9 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -3742,6 +3742,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")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]