diff options
author | Jürg Billeter <j@bitron.ch> | 2008-09-16 14:03:43 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-09-16 14:03:43 +0000 |
commit | f3507399cbd16b9aa7f59f94eff51e323b9fb3ba (patch) | |
tree | a7ca3da1d77be9af35f5dde7bd927f7e7108a79f | |
parent | 023d86202c04e0d3cc5ce9dbd31afd36d63d6c04 (diff) | |
download | vala-f3507399cbd16b9aa7f59f94eff51e323b9fb3ba.tar.gz |
Add bindings for fseek, ftell, and rewind, patch by Mart Roosmaa, fixes
2008-09-16 Jürg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi:
Add bindings for fseek, ftell, and rewind, patch by Mart Roosmaa,
fixes bug 547196
svn path=/trunk/; revision=1776
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | THANKS | 1 | ||||
-rw-r--r-- | vapi/glib-2.0.vapi | 13 |
3 files changed, 21 insertions, 0 deletions
@@ -1,5 +1,12 @@ 2008-09-16 Jürg Billeter <j@bitron.ch> + * vapi/glib-2.0.vapi: + + Add bindings for fseek, ftell, and rewind, patch by Mart Roosmaa, + fixes bug 547196 + +2008-09-16 Jürg Billeter <j@bitron.ch> + * vala/valasemanticanalyzer.vala: Check for structs without fields, patch by Jared Moore, @@ -37,6 +37,7 @@ Levi Bard Maciej Piechotka Marc-André Lureau Marcelo Lira +Mart Roosmaa Mathias Hasselmann Matías De la Puente Michael Lawrence diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 0641f3626..4cf4c888b 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -2406,6 +2406,13 @@ namespace GLib { EXISTS } + [CCode (cprefix = "SEEK_", has_type_id = false)] + public enum FileSeek { + SET, + CUR, + END + } + [Compact] [CCode (cname = "FILE", free_function = "fclose", cheader_filename = "stdio.h")] public class FileStream { @@ -2430,6 +2437,12 @@ namespace GLib { public int scanf (string format, ...); [CCode (cname = "fflush")] public int flush (); + [CCode (cname = "fseek")] + public int seek (long offset, FileSeek whence); + [CCode (cname = "ftell")] + public long tell (); + [CCode (cname = "rewind")] + public void rewind (); } [CCode (lower_case_cprefix = "g_file_", cheader_filename = "glib/gstdio.h")] |