68#if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP)
71typedef struct TagunzFile__ {
int unused; } unzFile__;
72typedef unzFile__ *unzFile;
79#define UNZ_END_OF_LIST_OF_FILE (-100)
80#define UNZ_ERRNO (Z_ERRNO)
82#define UNZ_PARAMERROR (-102)
83#define UNZ_BADZIPFILE (-103)
84#define UNZ_INTERNALERROR (-104)
85#define UNZ_CRCERROR (-105)
102 ZPOS64_T number_entry;
118 uLong version_needed;
120 uLong compression_method;
123 ZPOS64_T compressed_size;
124 ZPOS64_T uncompressed_size;
126 uLong size_file_extra;
127 uLong size_file_comment;
129 uLong disk_num_start;
139 uLong version_needed;
141 uLong compression_method;
144 uLong compressed_size;
145 uLong uncompressed_size;
147 uLong size_file_extra;
148 uLong size_file_comment;
150 uLong disk_num_start;
157extern int ZEXPORT unzStringFileNameCompare(
const char* fileName1,
158 const char* fileName2,
159 int iCaseSensitivity);
170extern unzFile ZEXPORT unzOpen(
const char *path);
171extern unzFile ZEXPORT unzOpen64(
const void *path);
188extern unzFile ZEXPORT unzOpen2(
const char *path,
189 zlib_filefunc_def* pzlib_filefunc_def);
195extern unzFile ZEXPORT unzOpen2_64(
const void *path,
196 zlib_filefunc64_def* pzlib_filefunc_def);
202extern int ZEXPORT unzClose(unzFile file);
209extern int ZEXPORT unzGetGlobalInfo(unzFile file,
210 unz_global_info *pglobal_info);
212extern int ZEXPORT unzGetGlobalInfo64(unzFile file,
213 unz_global_info64 *pglobal_info);
220extern int ZEXPORT unzGetGlobalComment(unzFile file,
233extern int ZEXPORT unzGoToFirstFile(unzFile file);
239extern int ZEXPORT unzGoToNextFile(unzFile file);
246extern int ZEXPORT unzLocateFile(unzFile file,
247 const char *szFileName,
248 int iCaseSensitivity);
264 uLong pos_in_zip_directory;
268extern int ZEXPORT unzGetFilePos(
270 unz_file_pos* file_pos);
272extern int ZEXPORT unzGoToFilePos(
274 unz_file_pos* file_pos);
278 ZPOS64_T pos_in_zip_directory;
279 ZPOS64_T num_of_file;
282extern int ZEXPORT unzGetFilePos64(
284 unz64_file_pos* file_pos);
286extern int ZEXPORT unzGoToFilePos64(
288 const unz64_file_pos* file_pos);
292extern int ZEXPORT unzGetCurrentFileInfo64(unzFile file,
293 unz_file_info64 *pfile_info,
295 uLong fileNameBufferSize,
297 uLong extraFieldBufferSize,
299 uLong commentBufferSize);
301extern int ZEXPORT unzGetCurrentFileInfo(unzFile file,
302 unz_file_info *pfile_info,
304 uLong fileNameBufferSize,
306 uLong extraFieldBufferSize,
308 uLong commentBufferSize);
325extern ZPOS64_T ZEXPORT unzGetCurrentFileZStreamPos64(unzFile file);
335extern int ZEXPORT unzOpenCurrentFile(unzFile file);
341extern int ZEXPORT unzOpenCurrentFilePassword(unzFile file,
342 const char* password);
349extern int ZEXPORT unzOpenCurrentFile2(unzFile file,
362extern int ZEXPORT unzOpenCurrentFile3(unzFile file,
366 const char* password);
377extern int ZEXPORT unzCloseCurrentFile(unzFile file);
383extern int ZEXPORT unzReadCurrentFile(unzFile file,
397extern z_off_t ZEXPORT unztell(unzFile file);
399extern ZPOS64_T ZEXPORT unztell64(unzFile file);
404extern int ZEXPORT unzeof(unzFile file);
409extern int ZEXPORT unzGetLocalExtrafield(unzFile file,
428extern ZPOS64_T ZEXPORT unzGetOffset64 (unzFile file);
429extern uLong ZEXPORT unzGetOffset (unzFile file);
432extern int ZEXPORT unzSetOffset64 (unzFile file, ZPOS64_T pos);
433extern int ZEXPORT unzSetOffset (unzFile file, uLong pos);