49 #ifndef __MINIZIP_UNZIP_H__ 50 #define __MINIZIP_UNZIP_H__ 52 #include "minizip/export.h" 63 #include "minizip/ioapi.h" 72 #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP) 75 typedef struct TagunzFile__ {
int unused; } unzFile__;
76 typedef unzFile__ *unzFile;
78 typedef voidp unzFile;
83 #define UNZ_END_OF_LIST_OF_FILE (-100) 84 #define UNZ_ERRNO (Z_ERRNO) 86 #define UNZ_PARAMERROR (-102) 87 #define UNZ_BADZIPFILE (-103) 88 #define UNZ_INTERNALERROR (-104) 89 #define UNZ_CRCERROR (-105) 106 ZPOS64_T number_entry;
122 uLong version_needed;
124 uLong compression_method;
127 ZPOS64_T compressed_size;
128 ZPOS64_T uncompressed_size;
130 uLong size_file_extra;
131 uLong size_file_comment;
133 uLong disk_num_start;
143 uLong version_needed;
145 uLong compression_method;
148 uLong compressed_size;
149 uLong uncompressed_size;
151 uLong size_file_extra;
152 uLong size_file_comment;
154 uLong disk_num_start;
161 extern MINIZIP_API
int unzStringFileNameCompare OF ((
const char* fileName1,
162 const char* fileName2,
163 int iCaseSensitivity));
174 extern MINIZIP_API unzFile unzOpen OF((
const char *path));
175 extern MINIZIP_API unzFile unzOpen64 OF((
const void *path));
192 extern MINIZIP_API unzFile unzOpen2 OF((
const char *path,
199 extern MINIZIP_API unzFile unzOpen2_64 OF((
const void *path,
206 extern MINIZIP_API
int unzClose OF((unzFile file));
213 extern MINIZIP_API
int unzGetGlobalInfo OF((unzFile file,
216 extern MINIZIP_API
int unzGetGlobalInfo64 OF((unzFile file,
224 extern MINIZIP_API
int unzGetGlobalComment OF((unzFile file,
237 extern MINIZIP_API
int unzGoToFirstFile OF((unzFile file));
243 extern MINIZIP_API
int unzGoToNextFile OF((unzFile file));
250 extern MINIZIP_API
int unzLocateFile OF((unzFile file,
251 const char *szFileName,
252 int iCaseSensitivity));
268 uLong pos_in_zip_directory;
272 extern MINIZIP_API
int unzGetFilePos(
276 extern MINIZIP_API
int unzGoToFilePos(
282 ZPOS64_T pos_in_zip_directory;
283 ZPOS64_T num_of_file;
286 extern MINIZIP_API
int unzGetFilePos64(
290 extern MINIZIP_API
int unzGoToFilePos64(
296 extern MINIZIP_API
int unzGetCurrentFileInfo64 OF((unzFile file,
299 uLong fileNameBufferSize,
301 uLong extraFieldBufferSize,
303 uLong commentBufferSize));
305 extern MINIZIP_API
int unzGetCurrentFileInfo OF((unzFile file,
308 uLong fileNameBufferSize,
310 uLong extraFieldBufferSize,
312 uLong commentBufferSize));
329 extern MINIZIP_API ZPOS64_T unzGetCurrentFileZStreamPos64 OF((unzFile file));
339 extern MINIZIP_API
int unzOpenCurrentFile OF((unzFile file));
345 extern MINIZIP_API
int unzOpenCurrentFilePassword OF((unzFile file,
346 const char* password));
353 extern MINIZIP_API
int unzOpenCurrentFile2 OF((unzFile file,
366 extern MINIZIP_API
int unzOpenCurrentFile3 OF((unzFile file,
370 const char* password));
381 extern MINIZIP_API
int unzCloseCurrentFile OF((unzFile file));
387 extern MINIZIP_API
int unzReadCurrentFile OF((unzFile file,
401 extern z_off_t MINIZIP_API unztell OF((unzFile file));
403 extern ZPOS64_T MINIZIP_API unztell64 OF((unzFile file));
408 extern MINIZIP_API
int unzeof OF((unzFile file));
413 extern MINIZIP_API
int unzGetLocalExtrafield OF((unzFile file,
432 extern MINIZIP_API ZPOS64_T unzGetOffset64 (unzFile file);
433 extern MINIZIP_API uLong unzGetOffset (unzFile file);
436 extern MINIZIP_API
int unzSetOffset64 (unzFile file, ZPOS64_T pos);
437 extern MINIZIP_API
int unzSetOffset (unzFile file, uLong pos);
445 #endif // __MINIZIP_UNZIP_H__