--- a/physfs_internal.h Mon Jul 09 01:45:13 2001 +0000
+++ b/physfs_internal.h Mon Jul 09 04:15:35 2001 +0000
@@ -83,6 +83,13 @@
int (*seek)(FileHandle *handle, int offset);
/*
+ * Return number of bytes available in the file, or -1 if you
+ * aren't able to determine.
+ * On failure, call __PHYSFS_setError().
+ */
+ int (*fileLength)(FileHandle *handle);
+
+ /*
* Close the file, and free the FileHandle structure (including "opaque").
* returns non-zero on success, zero if can't close file.
* On failure, call __PHYSFS_setError().
@@ -402,6 +409,13 @@
LinkedStringList *__PHYSFS_platformEnumerateFiles(const char *dirname);
+/*
+ * Determine the current size of a file, in bytes, from a stdio FILE *.
+ * Return -1 if you can't do it, and call __PHYSFS_setError().
+ */
+int __PHYSFS_platformFileLength(FILE *handle);
+
+
#ifdef __cplusplus
extern "C" {
#endif