64 #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP) 67 typedef struct TagunzFile__ {
int unused; } unzFile__;
68 typedef unzFile__ *unzFile;
70 typedef voidp 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;
153 extern int ZEXPORT unzStringFileNameCompare (
const char* fileName1,
154 const char* fileName2,
155 int iCaseSensitivity);
166 extern unzFile ZEXPORT unzOpen (
const char *path);
167 extern unzFile ZEXPORT unzOpen64 (
const void *path);
184 extern unzFile ZEXPORT unzOpen2 (
const char *path,
191 extern unzFile ZEXPORT unzOpen2_64 (
const void *path,
198 extern int ZEXPORT unzClose (unzFile file);
205 extern void* unzGetOpaque(unzFile file);
208 extern int ZEXPORT unzGetGlobalInfo (unzFile file,
211 extern int ZEXPORT unzGetGlobalInfo64 (unzFile file,
219 extern int ZEXPORT unzGetGlobalComment (unzFile file,
232 extern int ZEXPORT unzGoToFirstFile (unzFile file);
238 extern int ZEXPORT unzGoToNextFile (unzFile file);
245 extern int ZEXPORT unzLocateFile (unzFile file,
246 const char *szFileName,
247 int iCaseSensitivity);
263 uLong pos_in_zip_directory;
267 extern int ZEXPORT unzGetFilePos(
271 extern int ZEXPORT unzGoToFilePos(
277 ZPOS64_T pos_in_zip_directory;
278 ZPOS64_T num_of_file;
281 extern int ZEXPORT unzGetFilePos64(
285 extern int ZEXPORT unzGoToFilePos64(
291 extern int ZEXPORT unzGetCurrentFileInfo64 (unzFile file,
294 uLong fileNameBufferSize,
296 uLong extraFieldBufferSize,
298 uLong commentBufferSize);
300 extern int ZEXPORT unzGetCurrentFileInfo (unzFile file,
303 uLong fileNameBufferSize,
305 uLong extraFieldBufferSize,
307 uLong commentBufferSize);
324 extern ZPOS64_T ZEXPORT unzGetCurrentFileZStreamPos64 (unzFile file);
334 extern int ZEXPORT unzOpenCurrentFile (unzFile file);
340 extern int ZEXPORT unzOpenCurrentFilePassword (unzFile file,
341 const char* password);
348 extern int ZEXPORT unzOpenCurrentFile2 (unzFile file,
361 extern int ZEXPORT unzOpenCurrentFile3 (unzFile file,
365 const char* password);
376 extern int ZEXPORT unzCloseCurrentFile (unzFile file);
382 extern int ZEXPORT unzReadCurrentFile (unzFile file,
396 extern int ZEXPORT unzSeekCurrentFile(unzFile file,
int pos);
401 extern z_off_t ZEXPORT unztell (unzFile file);
403 extern ZPOS64_T ZEXPORT unztell64 (unzFile file);
408 extern int ZEXPORT unzeof (unzFile file);
413 extern int ZEXPORT unzGetLocalExtrafield (unzFile file,
432 extern ZPOS64_T ZEXPORT unzGetOffset64 (unzFile file);
433 extern uLong ZEXPORT unzGetOffset (unzFile file);
436 extern int ZEXPORT unzSetOffset64 (unzFile file, ZPOS64_T pos);
437 extern int ZEXPORT unzSetOffset (unzFile file, uLong pos);