[vala] glib-2.0: add bindings for fread and fwrite
- From: Victor Manuel Jaquez Leal <vjaquez src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: add bindings for fread and fwrite
- Date: Fri, 12 Feb 2010 22:09:23 +0000 (UTC)
commit 01b5b9897ab295ec0c4f9d58df0369888e50c441
Author: Sandino Flores <tigrux gmail com>
Date: Tue Feb 9 23:58:42 2010 -0600
glib-2.0: add bindings for fread and fwrite
Fixes bug 609496.
vapi/glib-2.0.vapi | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 7a3b02c..955bce7 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]