69 #if defined(STRICTZIP) || defined(STRICTZIPUNZIP)
72 typedef struct TagzipFile__ {
int unused; } zipFile__;
80 #define ZIP_ERRNO (Z_ERRNO)
81 #define ZIP_PARAMERROR (-102)
82 #define ZIP_BADZIPFILE (-103)
83 #define ZIP_INTERNALERROR (-104)
85 #define ZIP_WRITE_DATA_DESCRIPTOR 0x8u
86 #define ZIP_AUTO_CLOSE 0x1u
87 #define ZIP_SEQUENTIAL 0x2u
88 #define ZIP_DEFAULT_FLAGS (ZIP_AUTO_CLOSE | ZIP_WRITE_DATA_DESCRIPTOR)
91 # if MAX_MEM_LEVEL >= 8
92 # define DEF_MEM_LEVEL 8
94 # define DEF_MEM_LEVEL MAX_MEM_LEVEL
123 #define APPEND_STATUS_CREATE (0)
124 #define APPEND_STATUS_CREATEAFTER (1)
125 #define APPEND_STATUS_ADDINZIP (2)
127 extern zipFile ZEXPORT
zipOpen OF((voidpf file,
int append));
128 extern zipFile ZEXPORT
zipOpen64 OF((voidpf file,
int append));
148 extern zipFile ZEXPORT
zipOpen2 OF((voidpf file,
150 zipcharpc* globalcomment,
155 zipcharpc* globalcomment,
163 extern zipFile ZEXPORT
zipOpen3 (voidpf file,
165 zipcharpc* globalcomment,
170 const char* filename,
172 const void* extrafield_local,
173 uInt size_extrafield_local,
174 const void* extrafield_global,
175 uInt size_extrafield_global,
181 const char* filename,
183 const void* extrafield_local,
184 uInt size_extrafield_local,
185 const void* extrafield_global,
186 uInt size_extrafield_global,
210 const char* filename,
212 const void* extrafield_local,
213 uInt size_extrafield_local,
214 const void* extrafield_global,
215 uInt size_extrafield_global,
223 const char* filename,
225 const void* extrafield_local,
226 uInt size_extrafield_local,
227 const void* extrafield_global,
228 uInt size_extrafield_global,
239 const char* filename,
241 const void* extrafield_local,
242 uInt size_extrafield_local,
243 const void* extrafield_global,
244 uInt size_extrafield_global,
252 const char* password,
253 uLong crcForCrypting));
256 const char* filename,
258 const void* extrafield_local,
259 uInt size_extrafield_local,
260 const void* extrafield_global,
261 uInt size_extrafield_global,
269 const char* password,
270 uLong crcForCrypting,
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,
303 const char* filename,
305 const void* extrafield_local,
306 uInt size_extrafield_local,
307 const void* extrafield_global,
308 uInt size_extrafield_global,
316 const char* password,
317 uLong crcForCrypting,
342 uLong uncompressed_size,
356 const char* global_comment));
383 extern int ZEXPORT
zipSetFlags(zipFile file,
unsigned flags);
384 extern int ZEXPORT
zipClearFlags(zipFile file,
unsigned flags);
zipFile ZEXPORT zipOpen64(voidpf file, int append)
int ZEXPORT zipCloseFileInZipRaw64(zipFile file, ZPOS64_T uncompressed_size, uLong crc32)
int ZEXPORT zipOpenNewFileInZip2(zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw)
int ZEXPORT zipOpenNewFileInZip3(zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, const char *password, uLong crcForCrypting)
int ZEXPORT zipRemoveExtraInfoBlock(char *pData, int *dataLen, short sHeader)
zipFile ZEXPORT zipOpen2_64(voidpf file, int append, zipcharpc *globalcomment, zlib_filefunc64_def *pzlib_filefunc_def)
int ZEXPORT zipCloseFileInZipRaw(zipFile file, uLong uncompressed_size, uLong crc32)
int ZEXPORT zipOpenNewFileInZip64(zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int zip64)
int ZEXPORT zipWriteInFileInZip(zipFile file, const void *buf, unsigned int len)
zipFile ZEXPORT zipOpen3(voidpf file, int append, zipcharpc *globalcomment, zlib_filefunc64_32_def *pzlib_filefunc64_32_def, unsigned flags)
int ZEXPORT zipClearFlags(zipFile file, unsigned flags)
unsigned long long int ZPOS64_T
int ZEXPORT zipOpenNewFileInZip(zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level)
int ZEXPORT zipOpenNewFileInZip3_64(zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, const char *password, uLong crcForCrypting, int zip64)
zipFile ZEXPORT zipOpen(voidpf file, int append)
zipFile ZEXPORT zipOpen2(voidpf file, int append, zipcharpc *globalcomment, zlib_filefunc_def *pzlib_filefunc32_def)
int ZEXPORT zipOpenNewFileInZip2_64(zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int zip64)
int ZEXPORT zipCloseFileInZip(zipFile file)
int ZEXPORT zipOpenNewFileInZip4(zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, const char *password, uLong crcForCrypting, uLong versionMadeBy, uLong flagBase)
int ZEXPORT zipOpenNewFileInZip4_64(zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, const char *password, uLong crcForCrypting, uLong versionMadeBy, uLong flagBase, int zip64)
int ZEXPORT zipClose(zipFile file, const char *global_comment)
int ZEXPORT zipSetFlags(zipFile file, unsigned flags)