Commit f3507399 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

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
parent 023d8620
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:
......
......@@ -37,6 +37,7 @@ Levi Bard
Maciej Piechotka
Marc-André Lureau
Marcelo Lira
Mart Roosmaa
Mathias Hasselmann
Matías De la Puente
Michael Lawrence
......
......@@ -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")]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment