vala r1776 - in trunk: . vapi



Author: juergbi
Date: Tue Sep 16 14:03:43 2008
New Revision: 1776
URL: http://svn.gnome.org/viewvc/vala?rev=1776&view=rev

Log:
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


Modified:
   trunk/ChangeLog
   trunk/THANKS
   trunk/vapi/glib-2.0.vapi

Modified: trunk/THANKS
==============================================================================
--- trunk/THANKS	(original)
+++ trunk/THANKS	Tue Sep 16 14:03:43 2008
@@ -37,6 +37,7 @@
 Maciej Piechotka
 Marc-Andrà Lureau
 Marcelo Lira
+Mart Roosmaa
 Mathias Hasselmann
 MatÃas De la Puente
 Michael Lawrence

Modified: trunk/vapi/glib-2.0.vapi
==============================================================================
--- trunk/vapi/glib-2.0.vapi	(original)
+++ trunk/vapi/glib-2.0.vapi	Tue Sep 16 14:03:43 2008
@@ -2406,6 +2406,13 @@
 		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 @@
 		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")]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]