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 OF ((
const char* fileName1,
154 const char* fileName2,
155 int iCaseSensitivity));
166 extern unzFile ZEXPORT unzOpen OF((
const char *path));
167 extern unzFile ZEXPORT unzOpen64 OF((
const void *path));
184 extern unzFile ZEXPORT unzOpen2 OF((
const char *path,
191 extern unzFile ZEXPORT unzOpen2_64 OF((
const void *path,
198 extern int ZEXPORT unzClose OF((unzFile file));
205 extern int ZEXPORT unzGetGlobalInfo OF((unzFile file,
208 extern int ZEXPORT unzGetGlobalInfo64 OF((unzFile file,
216 extern int ZEXPORT unzGetGlobalComment OF((unzFile file,
229 extern int ZEXPORT unzGoToFirstFile OF((unzFile file));
235 extern int ZEXPORT unzGoToNextFile OF((unzFile file));
242 extern int ZEXPORT unzLocateFile OF((unzFile file,
243 const char *szFileName,
244 int iCaseSensitivity));
260 uLong pos_in_zip_directory;
264 extern int ZEXPORT unzGetFilePos(
268 extern int ZEXPORT unzGoToFilePos(
274 ZPOS64_T pos_in_zip_directory;
275 ZPOS64_T num_of_file;
278 extern int ZEXPORT unzGetFilePos64(
282 extern int ZEXPORT unzGoToFilePos64(
288 extern int ZEXPORT unzGetCurrentFileInfo64 OF((unzFile file,
291 uLong fileNameBufferSize,
293 uLong extraFieldBufferSize,
295 uLong commentBufferSize));
297 extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file,
300 uLong fileNameBufferSize,
302 uLong extraFieldBufferSize,
304 uLong commentBufferSize));
321 extern ZPOS64_T ZEXPORT unzGetCurrentFileZStreamPos64 OF((unzFile file));
331 extern int ZEXPORT unzOpenCurrentFile OF((unzFile file));
337 extern int ZEXPORT unzOpenCurrentFilePassword OF((unzFile file,
338 const char* password));
345 extern int ZEXPORT unzOpenCurrentFile2 OF((unzFile file,
358 extern int ZEXPORT unzOpenCurrentFile3 OF((unzFile file,
362 const char* password));
373 extern int ZEXPORT unzCloseCurrentFile OF((unzFile file));
379 extern int ZEXPORT unzReadCurrentFile OF((unzFile file,
393 extern z_off_t ZEXPORT unztell OF((unzFile file));
395 extern ZPOS64_T ZEXPORT unztell64 OF((unzFile file));
400 extern int ZEXPORT unzeof OF((unzFile file));
405 extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file,
424 extern ZPOS64_T ZEXPORT unzGetOffset64 (unzFile file);
425 extern uLong ZEXPORT unzGetOffset (unzFile file);
428 extern int ZEXPORT unzSetOffset64 (unzFile file, ZPOS64_T pos);
429 extern int ZEXPORT unzSetOffset (unzFile file, uLong pos);