52#ifdef USE_LOCAL_HEADERS
53 #include "../zlib/zlib.h"
61#if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP)
64typedef struct TagunzFile__ {
int unused; } unzFile__;
65typedef unzFile__ *unzFile;
72#define UNZ_END_OF_LIST_OF_FILE (-100)
73#define UNZ_ERRNO (Z_ERRNO)
75#define UNZ_PARAMERROR (-102)
76#define UNZ_BADZIPFILE (-103)
77#define UNZ_INTERNALERROR (-104)
78#define UNZ_CRCERROR (-105)
105 uLong version_needed;
107 uLong compression_method;
110 uLong compressed_size;
111 uLong uncompressed_size;
113 uLong size_file_extra;
114 uLong size_file_comment;
116 uLong disk_num_start;
123extern int ZEXPORT unzStringFileNameCompare OF ((
const char* fileName1,
124 const char* fileName2,
125 int iCaseSensitivity));
136extern unzFile ZEXPORT unzOpen OF((
const char *path));
147extern unzFile ZEXPORT unzOpen2 OF((
const char *path,
148 zlib_filefunc_def* pzlib_filefunc_def));
154extern int ZEXPORT unzClose OF((unzFile file));
161extern int ZEXPORT unzGetGlobalInfo OF((unzFile file,
162 unz_global_info *pglobal_info));
169extern int ZEXPORT unzGetGlobalComment OF((unzFile file,
182extern int ZEXPORT unzGoToFirstFile OF((unzFile file));
188extern int ZEXPORT unzGoToNextFile OF((unzFile file));
195extern int ZEXPORT unzLocateFile OF((unzFile file,
196 const char *szFileName,
197 int iCaseSensitivity));
213 uLong pos_in_zip_directory;
217extern int ZEXPORT unzGetFilePos(
219 unz_file_pos* file_pos);
221extern int ZEXPORT unzGoToFilePos(
223 unz_file_pos* file_pos);
227extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file,
228 unz_file_info *pfile_info,
230 uLong fileNameBufferSize,
232 uLong extraFieldBufferSize,
234 uLong commentBufferSize));
253extern int ZEXPORT unzOpenCurrentFile OF((unzFile file));
259extern int ZEXPORT unzOpenCurrentFilePassword OF((unzFile file,
260 const char* password));
267extern int ZEXPORT unzOpenCurrentFile2 OF((unzFile file,
280extern int ZEXPORT unzOpenCurrentFile3 OF((unzFile file,
284 const char* password));
295extern int ZEXPORT unzCloseCurrentFile OF((unzFile file));
301extern int ZEXPORT unzReadCurrentFile OF((unzFile file,
315extern z_off_t ZEXPORT unztell OF((unzFile file));
320extern int ZEXPORT unzeof OF((unzFile file));
325extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file,
344extern uLong ZEXPORT unzGetOffset (unzFile file);
347extern int ZEXPORT unzSetOffset (unzFile file, uLong pos);