summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--THANKS1
-rw-r--r--vapi/glib-2.0.vapi13
3 files changed, 21 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8cf02c085..d61f96726 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
diff --git a/THANKS b/THANKS
index bceb0ac1e..4c6c4420b 100644
--- a/THANKS
+++ b/THANKS
@@ -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")]