61 #if defined(STRICTZIP) || defined(STRICTZIPUNZIP)
64 typedef struct TagzipFile__ {
int unused; } zipFile__;
65 typedef zipFile__ *zipFile;
67 typedef voidp zipFile;
72 #define ZIP_ERRNO (Z_ERRNO)
73 #define ZIP_PARAMERROR (-102)
74 #define ZIP_BADZIPFILE (-103)
75 #define ZIP_INTERNALERROR (-104)
78 # if MAX_MEM_LEVEL >= 8
79 # define DEF_MEM_LEVEL 8
81 # define DEF_MEM_LEVEL MAX_MEM_LEVEL
107 typedef const char* zipcharpc;
110 #define APPEND_STATUS_CREATE (0)
111 #define APPEND_STATUS_CREATEAFTER (1)
112 #define APPEND_STATUS_ADDINZIP (2)
114 extern zipFile ZEXPORT zipOpen OF((
const char *pathname,
int append));
134 extern zipFile ZEXPORT zipOpen2 OF((
const char *pathname,
136 zipcharpc* globalcomment,
139 extern int ZEXPORT zipOpenNewFileInZip OF((zipFile file,
140 const char* filename,
142 const void* extrafield_local,
143 uInt size_extrafield_local,
144 const void* extrafield_global,
145 uInt size_extrafield_global,
163 extern int ZEXPORT zipOpenNewFileInZip2 OF((zipFile file,
164 const char* filename,
166 const void* extrafield_local,
167 uInt size_extrafield_local,
168 const void* extrafield_global,
169 uInt size_extrafield_global,
179 extern int ZEXPORT zipOpenNewFileInZip3 OF((zipFile file,
180 const char* filename,
182 const void* extrafield_local,
183 uInt size_extrafield_local,
184 const void* extrafield_global,
185 uInt size_extrafield_global,
193 const char* password,
194 uLong crcForCtypting));
204 extern int ZEXPORT zipWriteInFileInZip OF((zipFile file,
211 extern int ZEXPORT zipCloseFileInZip OF((zipFile file));
216 extern int ZEXPORT zipCloseFileInZipRaw OF((zipFile file,
217 uLong uncompressed_size,
225 extern int ZEXPORT zipClose OF((zipFile file,
226 const char* global_comment));