63 #if defined(STRICTZIP) || defined(STRICTZIPUNZIP)
66 typedef struct TagzipFile__ {
int unused; } zipFile__;
67 typedef zipFile__ *zipFile;
69 typedef voidp zipFile;
74 #define ZIP_ERRNO (Z_ERRNO)
75 #define ZIP_PARAMERROR (-102)
76 #define ZIP_BADZIPFILE (-103)
77 #define ZIP_INTERNALERROR (-104)
80 # if MAX_MEM_LEVEL >= 8
81 # define DEF_MEM_LEVEL 8
83 # define DEF_MEM_LEVEL MAX_MEM_LEVEL
109 typedef const char* zipcharpc;
112 #define APPEND_STATUS_CREATE (0)
113 #define APPEND_STATUS_CREATEAFTER (1)
114 #define APPEND_STATUS_ADDINZIP (2)
116 extern zipFile ZEXPORT zipOpen OF((
const char *pathname,
int append));
117 extern zipFile ZEXPORT zipOpen64 OF((
const void *pathname,
int append));
137 extern zipFile ZEXPORT zipOpen2 OF((
const char *pathname,
139 zipcharpc* globalcomment,
142 extern zipFile ZEXPORT zipOpen2_64 OF((
const void *pathname,
144 zipcharpc* globalcomment,
147 extern int ZEXPORT zipOpenNewFileInZip OF((zipFile file,
148 const char* filename,
150 const void* extrafield_local,
151 uInt size_extrafield_local,
152 const void* extrafield_global,
153 uInt size_extrafield_global,
158 extern int ZEXPORT zipOpenNewFileInZip64 OF((zipFile file,
159 const char* filename,
161 const void* extrafield_local,
162 uInt size_extrafield_local,
163 const void* extrafield_global,
164 uInt size_extrafield_global,
187 extern int ZEXPORT zipOpenNewFileInZip2 OF((zipFile file,
188 const char* filename,
190 const void* extrafield_local,
191 uInt size_extrafield_local,
192 const void* extrafield_global,
193 uInt size_extrafield_global,
200 extern int ZEXPORT zipOpenNewFileInZip2_64 OF((zipFile file,
201 const char* filename,
203 const void* extrafield_local,
204 uInt size_extrafield_local,
205 const void* extrafield_global,
206 uInt size_extrafield_global,
216 extern int ZEXPORT zipOpenNewFileInZip3 OF((zipFile file,
217 const char* filename,
219 const void* extrafield_local,
220 uInt size_extrafield_local,
221 const void* extrafield_global,
222 uInt size_extrafield_global,
230 const char* password,
231 uLong crcForCrypting));
233 extern int ZEXPORT zipOpenNewFileInZip3_64 OF((zipFile file,
234 const char* filename,
236 const void* extrafield_local,
237 uInt size_extrafield_local,
238 const void* extrafield_global,
239 uInt size_extrafield_global,
247 const char* password,
248 uLong crcForCrypting,
259 extern int ZEXPORT zipOpenNewFileInZip4 OF((zipFile file,
260 const char* filename,
262 const void* extrafield_local,
263 uInt size_extrafield_local,
264 const void* extrafield_global,
265 uInt size_extrafield_global,
273 const char* password,
274 uLong crcForCrypting,
280 extern int ZEXPORT zipOpenNewFileInZip4_64 OF((zipFile file,
281 const char* filename,
283 const void* extrafield_local,
284 uInt size_extrafield_local,
285 const void* extrafield_global,
286 uInt size_extrafield_global,
294 const char* password,
295 uLong crcForCrypting,
307 extern int ZEXPORT zipWriteInFileInZip OF((zipFile file,
314 extern int ZEXPORT zipCloseFileInZip OF((zipFile file));
319 extern int ZEXPORT zipCloseFileInZipRaw OF((zipFile file,
320 uLong uncompressed_size,
323 extern int ZEXPORT zipCloseFileInZipRaw64 OF((zipFile file,
324 ZPOS64_T uncompressed_size,
333 extern int ZEXPORT zipClose OF((zipFile file,
334 const char* global_comment));
340 extern int ZEXPORT zipRemoveExtraInfoBlock OF((
char* pData,
int* dataLen,
short sHeader));