Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 1.26 KB

zip.c

File metadata and controls

51 lines (41 loc) · 1.26 KB
 
Jul 6, 2001
Jul 6, 2001
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
* ZIP support routines for PhysicsFS.
*
* Please see the file LICENSE in the source's root directory.
*
* This file written by Ryan C. Gordon.
*/
#include <stdio.h>
#include <stdlib.h>
#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"
Jul 6, 2001
Jul 6, 2001
15
16
17
18
19
20
#if (!defined PHYSFS_SUPPORTS_ZIP)
#error PHYSFS_SUPPORTS_ZIP must be defined.
#endif
static const FileFunctions __PHYSFS_FileHandle_ZIP =
Jul 6, 2001
Jul 6, 2001
21
22
23
24
25
26
27
28
29
{
ZIP_read, /* read() method */
NULL, /* write() method */
ZIP_eof, /* eof() method */
ZIP_tell, /* tell() method */
ZIP_seek, /* seek() method */
ZIP_close, /* close() method */
};
Jul 6, 2001
Jul 6, 2001
30
31
const DirFunctions __PHYSFS_DirFunctions_ZIP =
Jul 6, 2001
Jul 6, 2001
32
{
Jul 6, 2001
Jul 6, 2001
33
34
ZIP_isArchive, /* isArchive() method */
ZIP_openArchive, /* openArchive() method */
Jul 6, 2001
Jul 6, 2001
35
36
37
38
39
ZIP_enumerate, /* enumerateFiles() method */
ZIP_isDirectory, /* isDirectory() method */
ZIP_isSymLink, /* isSymLink() method */
ZIP_isOpenable, /* isOpenable() method */
ZIP_openRead, /* openRead() method */
Jul 6, 2001
Jul 6, 2001
40
NULL, /* openWrite() method */
Jul 6, 2001
Jul 6, 2001
41
42
43
44
45
46
47
48
49
50
ZIP_dirClose, /* close() method */
};
const __PHYSFS_ArchiveInfo __PHYSFS_ArchiveInfo_ZIP =
{
"ZIP",
"PkZip/WinZip/Info-Zip compatible"
};
/* end of zip.c ... */