64 #if defined(STRICTZIP) || defined(STRICTZIPUNZIP) 67 typedef struct TagzipFile__ {
int unused; } zipFile__;
68 typedef zipFile__ *zipFile;
70 typedef voidp zipFile;
75 #define ZIP_ERRNO (Z_ERRNO) 76 #define ZIP_PARAMERROR (-102) 77 #define ZIP_BADZIPFILE (-103) 78 #define ZIP_INTERNALERROR (-104) 81 # if MAX_MEM_LEVEL >= 8 82 # define DEF_MEM_LEVEL 8 84 # define DEF_MEM_LEVEL MAX_MEM_LEVEL 110 typedef const char* zipcharpc;
113 #define APPEND_STATUS_CREATE (0) 114 #define APPEND_STATUS_CREATEAFTER (1) 115 #define APPEND_STATUS_ADDINZIP (2) 117 extern zipFile ZEXPORT zipOpen (
const char *pathname,
int append);
118 extern zipFile ZEXPORT zipOpen64 (
const void *pathname,
int append);
138 extern zipFile ZEXPORT zipOpen2 (
const char *pathname,
140 zipcharpc* globalcomment,
143 extern zipFile ZEXPORT zipOpen2_64 (
const void *pathname,
145 zipcharpc* globalcomment,
148 extern int ZEXPORT zipOpenNewFileInZip (zipFile file,
149 const char* filename,
151 const void* extrafield_local,
152 uInt size_extrafield_local,
153 const void* extrafield_global,
154 uInt size_extrafield_global,
159 extern int ZEXPORT zipOpenNewFileInZip64 (zipFile file,
160 const char* filename,
162 const void* extrafield_local,
163 uInt size_extrafield_local,
164 const void* extrafield_global,
165 uInt size_extrafield_global,
188 extern int ZEXPORT zipOpenNewFileInZip2 (zipFile file,
189 const char* filename,
191 const void* extrafield_local,
192 uInt size_extrafield_local,
193 const void* extrafield_global,
194 uInt size_extrafield_global,
201 extern int ZEXPORT zipOpenNewFileInZip2_64 (zipFile file,
202 const char* filename,
204 const void* extrafield_local,
205 uInt size_extrafield_local,
206 const void* extrafield_global,
207 uInt size_extrafield_global,
217 extern int ZEXPORT zipOpenNewFileInZip3 (zipFile file,
218 const char* filename,
220 const void* extrafield_local,
221 uInt size_extrafield_local,
222 const void* extrafield_global,
223 uInt size_extrafield_global,
231 const char* password,
232 uLong crcForCrypting);
234 extern int ZEXPORT zipOpenNewFileInZip3_64 (zipFile file,
235 const char* filename,
237 const void* extrafield_local,
238 uInt size_extrafield_local,
239 const void* extrafield_global,
240 uInt size_extrafield_global,
248 const char* password,
249 uLong crcForCrypting,
260 extern int ZEXPORT zipOpenNewFileInZip4 (zipFile file,
261 const char* filename,
263 const void* extrafield_local,
264 uInt size_extrafield_local,
265 const void* extrafield_global,
266 uInt size_extrafield_global,
274 const char* password,
275 uLong crcForCrypting,
281 extern int ZEXPORT zipOpenNewFileInZip4_64 (zipFile file,
282 const char* filename,
284 const void* extrafield_local,
285 uInt size_extrafield_local,
286 const void* extrafield_global,
287 uInt size_extrafield_global,
295 const char* password,
296 uLong crcForCrypting,
308 extern int ZEXPORT zipWriteInFileInZip (zipFile file,
315 extern int ZEXPORT zipCloseFileInZip (zipFile file);
320 extern int ZEXPORT zipCloseFileInZipRaw (zipFile file,
321 uLong uncompressed_size,
324 extern int ZEXPORT zipCloseFileInZipRaw64 (zipFile file,
325 ZPOS64_T uncompressed_size,
334 extern int ZEXPORT zipClose (zipFile file,
335 const char* global_comment);
341 extern int ZEXPORT zipRemoveExtraInfoBlock (
char* pData,
int* dataLen,
short sHeader);