comparison src/timidity/libtimidity/stream.c @ 1978:fa9f85cebade

s/vfs_/aud_vfs_/g
author William Pitcock <nenolod@atheme.org>
date Sun, 07 Oct 2007 00:25:33 -0500
parents f14d11bf9cbb
children
comparison
equal deleted inserted replaced
1977:5a6b60ceaa0f 1978:fa9f85cebade
20 } StdIOContext; 20 } StdIOContext;
21 21
22 size_t 22 size_t
23 stdio_istream_read (void *ctx, void *ptr, size_t size, size_t nmemb) 23 stdio_istream_read (void *ctx, void *ptr, size_t size, size_t nmemb)
24 { 24 {
25 return vfs_fread (ptr, size, nmemb, ((StdIOContext *) ctx)->fp); 25 return aud_vfs_fread (ptr, size, nmemb, ((StdIOContext *) ctx)->fp);
26 } 26 }
27 27
28 int 28 int
29 stdio_istream_close (void *ctx) 29 stdio_istream_close (void *ctx)
30 { 30 {
31 int ret = 0; 31 int ret = 0;
32 if (((StdIOContext *) ctx)->autoclose) 32 if (((StdIOContext *) ctx)->autoclose)
33 ret = vfs_fclose (((StdIOContext *) ctx)->fp); 33 ret = aud_vfs_fclose (((StdIOContext *) ctx)->fp);
34 free (ctx); 34 free (ctx);
35 return ret; 35 return ret;
36 } 36 }
37 37
38 typedef struct MemContext 38 typedef struct MemContext
99 MidIStream * 99 MidIStream *
100 mid_istream_open_file (const char *file) 100 mid_istream_open_file (const char *file)
101 { 101 {
102 VFSFile *fp; 102 VFSFile *fp;
103 103
104 fp = vfs_fopen (file, "rb"); 104 fp = aud_vfs_fopen (file, "rb");
105 if (fp == NULL) 105 if (fp == NULL)
106 return NULL; 106 return NULL;
107 107
108 return mid_istream_open_fp (fp, 1); 108 return mid_istream_open_fp (fp, 1);
109 } 109 }