]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: add bindings for fread and fwrite
authorSandino Flores <tigrux@gmail.com>
Wed, 10 Feb 2010 05:58:42 +0000 (23:58 -0600)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 12 Feb 2010 21:00:34 +0000 (22:00 +0100)
Fixes bug 609496.

vapi/glib-2.0.vapi

index 7a3b02c3db515c822a33a2418eea22238bd78e30..955bce7a634851cc42d045245623d21fd707501d 100644 (file)
@@ -2540,6 +2540,10 @@ namespace GLib {
                public int error ();
                [CCode (cname = "clearerr")]
                public void clearerr ();
+               [CCode (cname = "fread", instance_pos = -1)]
+               public size_t read ([CCode (array_length_pos = 2.1)] char[] buf, int size = 1);
+               [CCode (cname = "fwrite", instance_pos = -1)]
+               public size_t write ([CCode (array_length_pos = 2.1)] char[] buf, int size = 1);
 
                public string? read_line () {
                        int c;