Mercurial > audlegacy
diff src/audacious/vfs_buffer.c @ 2688:ac22b2cb6013 trunk
[svn]
- Add a vfs_fsize() call to the VFS layer
| author | ertzing |
|---|---|
| date | Fri, 20 Apr 2007 06:49:07 -0700 |
| parents | 07b990906823 |
| children | 7d3beedf1db8 |
line wrap: on
line diff
--- a/src/audacious/vfs_buffer.c Fri Apr 20 04:49:29 2007 -0700 +++ b/src/audacious/vfs_buffer.c Fri Apr 20 06:49:07 2007 -0700 @@ -185,6 +185,19 @@ return 0; } +off_t +buffer_vfs_fsize_impl(VFSFile * file) +{ + VFSBuffer *handle; + + if (file == NULL) + return -1; + + handle = (VFSBuffer *) file->handle; + + return (off_t)handle->end; +} + VFSConstructor buffer_const = { NULL, // not a normal VFS class buffer_vfs_fopen_impl, @@ -198,6 +211,7 @@ buffer_vfs_ftell_impl, buffer_vfs_feof_impl, buffer_vfs_truncate_impl, + buffer_vfs_fsize_impl, NULL };
