Mercurial > audlegacy-plugins
comparison src/sexypsf/plugin.c @ 1978:fa9f85cebade
s/vfs_/aud_vfs_/g
| author | William Pitcock <nenolod@atheme.org> |
|---|---|
| date | Sun, 07 Oct 2007 00:25:33 -0500 |
| parents | 5fa26178eaef |
| children | 839804c3b3a4 |
comparison
equal
deleted
inserted
replaced
| 1977:5a6b60ceaa0f | 1978:fa9f85cebade |
|---|---|
| 42 | 42 |
| 43 static gchar *get_title_psf(gchar *fn); | 43 static gchar *get_title_psf(gchar *fn); |
| 44 | 44 |
| 45 static int is_our_fd(gchar *filename, VFSFile *file) { | 45 static int is_our_fd(gchar *filename, VFSFile *file) { |
| 46 gchar magic[4]; | 46 gchar magic[4]; |
| 47 vfs_fread(magic, 1, 4, file); | 47 aud_vfs_fread(magic, 1, 4, file); |
| 48 | 48 |
| 49 // only allow PSF1 for now | 49 // only allow PSF1 for now |
| 50 if (!memcmp(magic, "PSF\x01", 4)) | 50 if (!memcmp(magic, "PSF\x01", 4)) |
| 51 return 1; | 51 return 1; |
| 52 return 0; | 52 return 0; |
| 267 .seek = sexypsf_xmms_seek, | 267 .seek = sexypsf_xmms_seek, |
| 268 .get_time = sexypsf_xmms_gettime, | 268 .get_time = sexypsf_xmms_gettime, |
| 269 .get_song_info = sexypsf_xmms_getsonginfo, | 269 .get_song_info = sexypsf_xmms_getsonginfo, |
| 270 .get_song_tuple = get_aud_tuple_psf, | 270 .get_song_tuple = get_aud_tuple_psf, |
| 271 .is_our_file_from_vfs = is_our_fd, | 271 .is_our_file_from_vfs = is_our_fd, |
| 272 .vfs_extensions = sexypsf_fmts, | 272 .aud_vfs_extensions = sexypsf_fmts, |
| 273 }; | 273 }; |
| 274 | 274 |
| 275 InputPlugin *sexypsf_iplist[] = { &sexypsf_ip, NULL }; | 275 InputPlugin *sexypsf_iplist[] = { &sexypsf_ip, NULL }; |
| 276 | 276 |
| 277 DECLARE_PLUGIN(sexypsf, NULL, NULL, sexypsf_iplist, NULL, NULL, NULL, NULL, NULL); | 277 DECLARE_PLUGIN(sexypsf, NULL, NULL, sexypsf_iplist, NULL, NULL, NULL, NULL, NULL); |
