comparison 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
comparison
equal deleted inserted replaced
1682:ecf1d19f74c7 1683:e9c24e35bd76
94 94
95 return fwrite(ptr, size, nmemb, file->handle); 95 return fwrite(ptr, size, nmemb, file->handle);
96 } 96 }
97 97
98 gint 98 gint
99 vfs_getc(VFSFile *stream)
100 {
101 return getc( stream->handle );
102 }
103
104 gint
105 vfs_ungetc(gint c, VFSFile *stream)
106 {
107 return ungetc( c , stream->handle );
108 }
109
110 gint
99 vfs_fseek(VFSFile * file, 111 vfs_fseek(VFSFile * file,
100 glong offset, 112 glong offset,
101 gint whence) 113 gint whence)
102 { 114 {
103 if (file == NULL) 115 if (file == NULL)