diff libaudacious/vfs_stdio.c @ 1683:e9c24e35bd76 trunk

[svn] - File stream API for audacious vfs; uses real getc/ungetc functions for vfs_stdio and emulated functions for vfs_gnome
author giacomo
date Wed, 13 Sep 2006 15:59:49 -0700
parents 411b4aaf928b
children 976da06332df
line wrap: on
line diff
--- a/libaudacious/vfs_stdio.c	Wed Sep 13 14:01:54 2006 -0700
+++ b/libaudacious/vfs_stdio.c	Wed Sep 13 15:59:49 2006 -0700
@@ -96,6 +96,18 @@
 }
 
 gint
+vfs_getc(VFSFile *stream)
+{
+  return getc( stream->handle );
+}
+
+gint
+vfs_ungetc(gint c, VFSFile *stream)
+{
+  return ungetc( c , stream->handle );
+}
+
+gint
 vfs_fseek(VFSFile * file,
           glong offset,
           gint whence)