64#if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP)
67typedef struct TagunzFile__ {
int unused; } unzFile__;
68typedef unzFile__ *unzFile;
75#define UNZ_END_OF_LIST_OF_FILE (-100)
76#define UNZ_ERRNO (Z_ERRNO)
78#define UNZ_PARAMERROR (-102)
79#define UNZ_BADZIPFILE (-103)
80#define UNZ_INTERNALERROR (-104)
81#define UNZ_CRCERROR (-105)
98 ZPOS64_T number_entry;
114 uLong version_needed;
116 uLong compression_method;
119 ZPOS64_T compressed_size;
120 ZPOS64_T uncompressed_size;
122 uLong size_file_extra;
123 uLong size_file_comment;
125 uLong disk_num_start;
135 uLong version_needed;
137 uLong compression_method;
140 uLong compressed_size;
141 uLong uncompressed_size;
143 uLong size_file_extra;
144 uLong size_file_comment;
146 uLong disk_num_start;
153extern int ZEXPORT unzStringFileNameCompare OF ((
const char* fileName1,
154 const char* fileName2,
155 int iCaseSensitivity));
166extern unzFile ZEXPORT unzOpen OF((
const char *path));
167extern unzFile ZEXPORT unzOpen64 OF((
const void *path));
184extern unzFile ZEXPORT unzOpen2 OF((
const char *path,
191extern unzFile ZEXPORT unzOpen2_64 OF((
const void *path,
198extern int ZEXPORT unzClose OF((unzFile file));
205extern int ZEXPORT unzGetGlobalInfo OF((unzFile file,
208extern int ZEXPORT unzGetGlobalInfo64 OF((unzFile file,
216extern int ZEXPORT unzGetGlobalComment OF((unzFile file,
229extern int ZEXPORT unzGoToFirstFile OF((unzFile file));
235extern int ZEXPORT unzGoToNextFile OF((unzFile file));
242extern int ZEXPORT unzLocateFile OF((unzFile file,
243 const char *szFileName,
244 int iCaseSensitivity));
260 uLong pos_in_zip_directory;
264extern int ZEXPORT unzGetFilePos(
268extern int ZEXPORT unzGoToFilePos(
274 ZPOS64_T pos_in_zip_directory;
275 ZPOS64_T num_of_file;
278extern int ZEXPORT unzGetFilePos64(
282extern int ZEXPORT unzGoToFilePos64(
288extern int ZEXPORT unzGetCurrentFileInfo64 OF((unzFile file,
291 uLong fileNameBufferSize,
293 uLong extraFieldBufferSize,
295 uLong commentBufferSize));
297extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file,
300 uLong fileNameBufferSize,
302 uLong extraFieldBufferSize,
304 uLong commentBufferSize));
321extern ZPOS64_T ZEXPORT unzGetCurrentFileZStreamPos64 OF((unzFile file));
331extern int ZEXPORT unzOpenCurrentFile OF((unzFile file));
337extern int ZEXPORT unzOpenCurrentFilePassword OF((unzFile file,
338 const char* password));
345extern int ZEXPORT unzOpenCurrentFile2 OF((unzFile file,
358extern int ZEXPORT unzOpenCurrentFile3 OF((unzFile file,
362 const char* password));
373extern int ZEXPORT unzCloseCurrentFile OF((unzFile file));
379extern int ZEXPORT unzReadCurrentFile OF((unzFile file,
393extern z_off_t ZEXPORT unztell OF((unzFile file));
395extern ZPOS64_T ZEXPORT unztell64 OF((unzFile file));
400extern int ZEXPORT unzeof OF((unzFile file));
405extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file,
424extern ZPOS64_T ZEXPORT unzGetOffset64 (unzFile file);
425extern uLong ZEXPORT unzGetOffset (unzFile file);
428extern int ZEXPORT unzSetOffset64 (unzFile file, ZPOS64_T pos);
429extern int ZEXPORT unzSetOffset (unzFile file, uLong pos);