archivers/grp.c
changeset 28 529214f57d1b
parent 26 575e03541d5e
child 29 91b45664ec85
--- a/archivers/grp.c	Mon Jul 09 01:45:13 2001 +0000
+++ b/archivers/grp.c	Mon Jul 09 04:15:35 2001 +0000
@@ -115,6 +115,13 @@
 } /* GRP_seek */
 
 
+static int GRP_fileLength(FileHandle *handle)
+{
+    GRPfileinfo *finfo = (GRPfileinfo *) (handle->opaque);
+    return(finfo->size);
+} /* GRP_fileLength */
+
+
 static int GRP_fileClose(FileHandle *handle)
 {
     free(handle->opaque);
@@ -340,12 +347,13 @@
 
 static const FileFunctions __PHYSFS_FileFunctions_GRP =
 {
-    GRP_read,       /* read() method  */
-    NULL,           /* write() method */
-    GRP_eof,        /* eof() method   */
-    GRP_tell,       /* tell() method  */
-    GRP_seek,       /* seek() method  */
-    GRP_fileClose   /* fileClose() method */
+    GRP_read,       /* read() method       */
+    NULL,           /* write() method      */
+    GRP_eof,        /* eof() method        */
+    GRP_tell,       /* tell() method       */
+    GRP_seek,       /* seek() method       */
+    GRP_fileLength, /* fileLength() method */
+    GRP_fileClose   /* fileClose() method  */
 };