Mercurial > audlegacy
comparison src/audacious/vfs.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 | 0ad10a95ed10 |
children | 7d3beedf1db8 6131bf51ee63 |
comparison
equal
deleted
inserted
replaced
2687:fcc497f51c16 | 2688:ac22b2cb6013 |
---|---|
298 { | 298 { |
299 if (file == NULL) | 299 if (file == NULL) |
300 return -1; | 300 return -1; |
301 | 301 |
302 return file->base->vfs_truncate_impl(file, length); | 302 return file->base->vfs_truncate_impl(file, length); |
303 } | |
304 | |
305 /** | |
306 * vfs_fsize: | |
307 * @file: #VFSFile object that represents the VFS stream. | |
308 * | |
309 * Returns te size of the file | |
310 * | |
311 * Return value: On success, the size of the file in bytes. | |
312 * Otherwise, -1. | |
313 */ | |
314 off_t | |
315 vfs_fsize(VFSFile * file) | |
316 { | |
317 if (file == NULL) | |
318 return -1; | |
319 | |
320 return file->base->vfs_fsize_impl(file); | |
303 } | 321 } |
304 | 322 |
305 /** | 323 /** |
306 * vfs_get_metadata: | 324 * vfs_get_metadata: |
307 * @file: #VFSFile object that represents the VFS stream. | 325 * @file: #VFSFile object that represents the VFS stream. |