diff 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
line wrap: on
line diff
--- a/src/audacious/vfs.c	Fri Apr 20 04:49:29 2007 -0700
+++ b/src/audacious/vfs.c	Fri Apr 20 06:49:07 2007 -0700
@@ -303,6 +303,24 @@
 }
 
 /**
+ * vfs_fsize:
+ * @file: #VFSFile object that represents the VFS stream.
+ *
+ * Returns te size of the file
+ *
+ * Return value: On success, the size of the file in bytes.
+ * Otherwise, -1.
+ */
+off_t
+vfs_fsize(VFSFile * file)
+{
+    if (file == NULL)
+        return -1;
+
+    return file->base->vfs_fsize_impl(file);
+}
+
+/**
  * vfs_get_metadata:
  * @file: #VFSFile object that represents the VFS stream.
  * @field: The string constant field name to get.