archivers/zip.c
changeset 20 efdde0d21521
parent 17 7337737f5120
child 21 b1ea58d70a56
--- a/archivers/zip.c	Sat Jul 07 09:05:19 2001 +0000
+++ b/archivers/zip.c	Sun Jul 08 03:25:12 2001 +0000
@@ -16,32 +16,101 @@
 #error PHYSFS_SUPPORTS_ZIP must be defined.
 #endif
 
+extern const DirFunctions __PHYSFS_DirFunctions_ZIP;
+extern const FileFunctions __PHYSFS_FileHandle_ZIP;
+
+
+static int ZIP_read(FileHandle *handle, void *buffer,
+                    unsigned int objSize, unsigned int objCount)
+{
+} /* ZIP_read */
+
+
+static int ZIP_eof(FileHandle *handle)
+{
+} /* ZIP_eof */
+
+
+static int ZIP_tell(FileHandle *handle)
+{
+} /* ZIP_tell */
+
+
+static int ZIP_seek(FileHandle *handle, int offset)
+{
+} /* ZIP_seek */
+
+
+static int ZIP_fileClose(FileHandle *handle)
+{
+} /* ZIP_fileClose */
+
+
+static int ZIP_isArchive(const char *filename, int forWriting)
+{
+} /* ZIP_isArchive */
+
+
+static DirHandle *ZIP_openArchive(const char *name, int forWriting)
+{
+} /* ZIP_openArchive */
+
+
+static LinkedStringList *ZIP_enumerateFiles(DirHandle *r, const char *dirname)
+{
+} /* ZIP_enumerateFiles */
+
+
+static int ZIP_exists(DirHandle *r, const char *name)
+{
+} /* ZIP_exists */
+
+
+static int ZIP_isDirectory(DirHandle *r, const char *name)
+{
+} /* ZIP_isDirectory */
+
+
+static int ZIP_isSymLink(DirHandle *r, const char *name)
+{
+} /* ZIP_isSymLink */
+
+
+static FileHandle *ZIP_openRead(DirHandle *r, const char *filename)
+{
+} /* ZIP_openRead */
+
+
+static void ZIP_dirClose(DirHandle *r)
+{
+} /* ZIP_dirClose */
+
 
 static const FileFunctions __PHYSFS_FileHandle_ZIP =
 {
-    ZIP_read,   /* read() method  */
-    NULL,       /* write() method */
-    ZIP_eof,    /* eof() method   */
-    ZIP_tell,   /* tell() method  */
-    ZIP_seek,   /* seek() method  */
-    ZIP_close,  /* close() method */
+    ZIP_read,       /* read() method  */
+    NULL,           /* write() method */
+    ZIP_eof,        /* eof() method   */
+    ZIP_tell,       /* tell() method  */
+    ZIP_seek,       /* seek() method  */
+    ZIP_fileClose,  /* fileClose() method */
 };
 
 
 const DirFunctions __PHYSFS_DirFunctions_ZIP =
 {
-    ZIP_isArchive,     /* isArchive() method      */
-    ZIP_openArchive,   /* openArchive() method    */
-    ZIP_enumerate,     /* enumerateFiles() method */
-    ZIP_exists,        /* exists() method         */
-    ZIP_isDirectory,   /* isDirectory() method    */
-    ZIP_isSymLink,     /* isSymLink() method      */
-    ZIP_openRead,      /* openRead() method       */
-    NULL,              /* openWrite() method      */
-    NULL,              /* openAppend() method     */
-    NULL,              /* remove() method         */
-    NULL,              /* mkdir() method          */
-    ZIP_close,         /* close() method          */
+    ZIP_isArchive,          /* isArchive() method      */
+    ZIP_openArchive,        /* openArchive() method    */
+    ZIP_enumerateFiles,     /* enumerateFiles() method */
+    ZIP_exists,             /* exists() method         */
+    ZIP_isDirectory,        /* isDirectory() method    */
+    ZIP_isSymLink,          /* isSymLink() method      */
+    ZIP_openRead,           /* openRead() method       */
+    NULL,                   /* openWrite() method      */
+    NULL,                   /* openAppend() method     */
+    NULL,                   /* remove() method         */
+    NULL,                   /* mkdir() method          */
+    ZIP_dirClose,           /* dirClose() method       */
 };
 
 const __PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_ZIP =