diff options
-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")] |