62 #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP)
65 typedef struct TagunzFile__ {
int unused; } unzFile__;
66 typedef unzFile__ *unzFile;
68 typedef voidp unzFile;
73 #define UNZ_END_OF_LIST_OF_FILE (-100)
74 #define UNZ_ERRNO (Z_ERRNO)
76 #define UNZ_PARAMERROR (-102)
77 #define UNZ_BADZIPFILE (-103)
78 #define UNZ_INTERNALERROR (-104)
79 #define UNZ_CRCERROR (-105)
106 uLong version_needed;
108 uLong compression_method;
111 uLong compressed_size;
112 uLong uncompressed_size;
114 uLong size_file_extra;
115 uLong size_file_comment;
117 uLong disk_num_start;
124 extern int ZEXPORT unzStringFileNameCompare OF ((
const char* fileName1,
125 const char* fileName2,
126 int iCaseSensitivity));
137 extern unzFile ZEXPORT unzOpen OF((voidpf file));
148 extern unzFile ZEXPORT unzOpen2 OF((voidpf file,
155 extern int ZEXPORT unzClose OF((unzFile file));
162 extern int ZEXPORT unzGetGlobalInfo OF((unzFile file,
170 extern int ZEXPORT unzGetGlobalComment OF((unzFile file,
183 extern int ZEXPORT unzGoToFirstFile OF((unzFile file));
189 extern int ZEXPORT unzGoToNextFile OF((unzFile file));
196 extern int ZEXPORT unzLocateFile OF((unzFile file,
197 const char *szFileName,
198 int iCaseSensitivity));
214 uLong pos_in_zip_directory;
218 extern int ZEXPORT unzGetFilePos(
222 extern int ZEXPORT unzGoToFilePos(
228 extern int ZEXPORT unzGetCurrentFileInfo OF((unzFile file,
231 uLong fileNameBufferSize,
233 uLong extraFieldBufferSize,
235 uLong commentBufferSize));
254 extern int ZEXPORT unzOpenCurrentFile OF((unzFile file));
260 extern int ZEXPORT unzOpenCurrentFilePassword OF((unzFile file,
261 const char* password));
268 extern int ZEXPORT unzOpenCurrentFile2 OF((unzFile file,
281 extern int ZEXPORT unzOpenCurrentFile3 OF((unzFile file,
285 const char* password));
296 extern int ZEXPORT unzCloseCurrentFile OF((unzFile file));
302 extern int ZEXPORT unzReadCurrentFile OF((unzFile file,
316 extern z_off_t ZEXPORT unztell OF((unzFile file));
321 extern int ZEXPORT unzeof OF((unzFile file));
326 extern int ZEXPORT unzGetLocalExtrafield OF((unzFile file,
345 extern uLong ZEXPORT unzGetOffset (unzFile file);
348 extern int ZEXPORT unzSetOffset (unzFile file, uLong pos);