Mercurial > audlegacy-plugins
annotate src/tta/aud-support.h @ 466:20657d994de8 trunk
[svn] Handle inline metadata. Parsing of tags needs work before it will not crash on
occasion, so it's disabled for now.
author | iabervon |
---|---|
date | Sat, 20 Jan 2007 23:31:12 -0800 |
parents | fbd06b4aa776 |
children |
rev | line source |
---|---|
290 | 1 #include <audacious/vfs.h> |
2 | |
3 #define FILE VFSFile | |
4 #define fopen vfs_fopen | |
5 #define fclose vfs_fclose | |
6 #define fwrite vfs_fwrite | |
7 #define fread vfs_fread | |
8 #define frewind vfs_frewind | |
9 #define ftell vfs_ftell | |
10 #define fseek vfs_fseek | |
11 | |
12 size_t file_size (char *filename) | |
13 { | |
14 VFSFile *f; | |
15 size_t size = -1; | |
16 | |
17 if ((f = vfs_fopen (filename, "r"))) | |
18 { | |
19 vfs_fseek (f, 0, SEEK_END); | |
20 size = vfs_ftell (f); | |
21 vfs_fclose (f); | |
22 } | |
23 return size; | |
24 } |