46 #ifndef __MINIZIP_ZIP_H__ 47 #define __MINIZIP_ZIP_H__ 49 #include "minizip/export.h" 62 #include "minizip/ioapi.h" 71 #if defined(STRICTZIP) || defined(STRICTZIPUNZIP) 74 typedef struct TagzipFile__ {
int unused; } zipFile__;
75 typedef zipFile__ *zipFile;
77 typedef voidp zipFile;
82 #define ZIP_ERRNO (Z_ERRNO) 83 #define ZIP_PARAMERROR (-102) 84 #define ZIP_BADZIPFILE (-103) 85 #define ZIP_INTERNALERROR (-104) 88 # if MAX_MEM_LEVEL >= 8 89 # define DEF_MEM_LEVEL 8 91 # define DEF_MEM_LEVEL MAX_MEM_LEVEL 117 typedef const char* zipcharpc;
120 #define APPEND_STATUS_CREATE (0) 121 #define APPEND_STATUS_CREATEAFTER (1) 122 #define APPEND_STATUS_ADDINZIP (2) 124 extern MINIZIP_API zipFile zipOpen OF((
const char *pathname,
int append));
125 extern MINIZIP_API zipFile zipOpen64 OF((
const void *pathname,
int append));
145 extern MINIZIP_API zipFile zipOpen2 OF((
const char *pathname,
147 zipcharpc* globalcomment,
150 extern MINIZIP_API zipFile zipOpen2_64 OF((
const void *pathname,
152 zipcharpc* globalcomment,
155 extern MINIZIP_API
int zipOpenNewFileInZip OF((zipFile file,
156 const char* filename,
158 const void* extrafield_local,
159 uInt size_extrafield_local,
160 const void* extrafield_global,
161 uInt size_extrafield_global,
166 extern MINIZIP_API
int zipOpenNewFileInZip64 OF((zipFile file,
167 const char* filename,
169 const void* extrafield_local,
170 uInt size_extrafield_local,
171 const void* extrafield_global,
172 uInt size_extrafield_global,
195 extern MINIZIP_API
int zipOpenNewFileInZip2 OF((zipFile file,
196 const char* filename,
198 const void* extrafield_local,
199 uInt size_extrafield_local,
200 const void* extrafield_global,
201 uInt size_extrafield_global,
208 extern MINIZIP_API
int zipOpenNewFileInZip2_64 OF((zipFile file,
209 const char* filename,
211 const void* extrafield_local,
212 uInt size_extrafield_local,
213 const void* extrafield_global,
214 uInt size_extrafield_global,
224 extern MINIZIP_API
int zipOpenNewFileInZip3 OF((zipFile file,
225 const char* filename,
227 const void* extrafield_local,
228 uInt size_extrafield_local,
229 const void* extrafield_global,
230 uInt size_extrafield_global,
238 const char* password,
239 uLong crcForCrypting));
241 extern MINIZIP_API
int zipOpenNewFileInZip3_64 OF((zipFile file,
242 const char* filename,
244 const void* extrafield_local,
245 uInt size_extrafield_local,
246 const void* extrafield_global,
247 uInt size_extrafield_global,
255 const char* password,
256 uLong crcForCrypting,
267 extern MINIZIP_API
int zipOpenNewFileInZip4 OF((zipFile file,
268 const char* filename,
270 const void* extrafield_local,
271 uInt size_extrafield_local,
272 const void* extrafield_global,
273 uInt size_extrafield_global,
281 const char* password,
282 uLong crcForCrypting,
288 extern MINIZIP_API
int zipOpenNewFileInZip4_64 OF((zipFile file,
289 const char* filename,
291 const void* extrafield_local,
292 uInt size_extrafield_local,
293 const void* extrafield_global,
294 uInt size_extrafield_global,
302 const char* password,
303 uLong crcForCrypting,
315 extern MINIZIP_API
int zipWriteInFileInZip OF((zipFile file,
322 extern MINIZIP_API
int zipCloseFileInZip OF((zipFile file));
327 extern MINIZIP_API
int zipCloseFileInZipRaw OF((zipFile file,
328 uLong uncompressed_size,
331 extern MINIZIP_API
int zipCloseFileInZipRaw64 OF((zipFile file,
332 ZPOS64_T uncompressed_size,
341 extern MINIZIP_API
int zipClose OF((zipFile file,
342 const char* global_comment));
348 extern MINIZIP_API
int zipRemoveExtraInfoBlock OF((
char* pData,
int* dataLen,
short sHeader));
370 #endif //__MINIZIP_ZIP_H__