comparison libaudacious/vfs_common.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 07143b97314d
children 8aaf0f145578
comparison
equal deleted inserted replaced
1682:ecf1d19f74c7 1683:e9c24e35bd76
15 15
16 #include "vfs.h" 16 #include "vfs.h"
17 #include <string.h> 17 #include <string.h>
18 #include <stdlib.h> 18 #include <stdlib.h>
19 #include <glib/gprintf.h> 19 #include <glib/gprintf.h>
20
21 /* FIXME low performance vfs_getc */
22 gint vfs_getc(VFSFile *stream)
23 {
24 guchar uc;
25 if (vfs_fread(&uc, 1, 1, stream))
26 return uc;
27 return EOF;
28 }
29 20
30 21
31 gint vfs_fputc(gint c, VFSFile *stream) 22 gint vfs_fputc(gint c, VFSFile *stream)
32 { 23 {
33 guchar uc = (guchar) c; 24 guchar uc = (guchar) c;