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((voidpf file,
int append));
136 extern zipFile ZEXPORT zipOpen2 OF((voidpf file,
138 zipcharpc* globalcomment,
141 extern int ZEXPORT zipOpenNewFileInZip OF((zipFile file,
142 const char* filename,
144 const void* extrafield_local,
145 uInt size_extrafield_local,
146 const void* extrafield_global,
147 uInt size_extrafield_global,
165 extern int ZEXPORT zipOpenNewFileInZip2 OF((zipFile file,
166 const char* filename,
168 const void* extrafield_local,
169 uInt size_extrafield_local,
170 const void* extrafield_global,
171 uInt size_extrafield_global,
181 extern int ZEXPORT zipOpenNewFileInZip3 OF((zipFile file,
182 const char* filename,
184 const void* extrafield_local,
185 uInt size_extrafield_local,
186 const void* extrafield_global,
187 uInt size_extrafield_global,
195 const char* password,
196 uLong crcForCtypting));
206 extern int ZEXPORT zipWriteInFileInZip OF((zipFile file,
213 extern int ZEXPORT zipCloseFileInZip OF((zipFile file));
218 extern int ZEXPORT zipCloseFileInZipRaw OF((zipFile file,
219 uLong uncompressed_size,
227 extern int ZEXPORT zipClose OF((zipFile file,
228 const char* global_comment));