aboutsummaryrefslogtreecommitdiff
path: root/contrib/minizip/zip.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2023-04-15 11:16:17 -0700
committerMark Adler <madler@alumni.caltech.edu>2023-04-15 22:56:37 -0700
commitbf2578be2d0566dc3ee47655d56b62063fe6bae6 (patch)
treebcd69242c3cda836d7f146d44008be4f1b99fe56 /contrib/minizip/zip.h
parentc4aa356742e03af6670c043905cd2c96f515ad72 (diff)
downloadzlib-bf2578be2d0566dc3ee47655d56b62063fe6bae6.tar.gz
zlib-bf2578be2d0566dc3ee47655d56b62063fe6bae6.tar.bz2
zlib-bf2578be2d0566dc3ee47655d56b62063fe6bae6.zip
Remove K&R function definitions from contrib/minizip.
Diffstat (limited to 'contrib/minizip/zip.h')
-rw-r--r--contrib/minizip/zip.h297
1 files changed, 147 insertions, 150 deletions
diff --git a/contrib/minizip/zip.h b/contrib/minizip/zip.h
index 7e4509d..259efd2 100644
--- a/contrib/minizip/zip.h
+++ b/contrib/minizip/zip.h
@@ -113,8 +113,8 @@ typedef const char* zipcharpc;
113#define APPEND_STATUS_CREATEAFTER (1) 113#define APPEND_STATUS_CREATEAFTER (1)
114#define APPEND_STATUS_ADDINZIP (2) 114#define APPEND_STATUS_ADDINZIP (2)
115 115
116extern zipFile ZEXPORT zipOpen OF((const char *pathname, int append)); 116extern zipFile ZEXPORT zipOpen(const char *pathname, int append);
117extern zipFile ZEXPORT zipOpen64 OF((const void *pathname, int append)); 117extern zipFile ZEXPORT zipOpen64(const void *pathname, int append);
118/* 118/*
119 Create a zipfile. 119 Create a zipfile.
120 pathname contain on Windows XP a filename like "c:\\zlib\\zlib113.zip" or on 120 pathname contain on Windows XP a filename like "c:\\zlib\\zlib113.zip" or on
@@ -134,43 +134,43 @@ extern zipFile ZEXPORT zipOpen64 OF((const void *pathname, int append));
134 Of couse, you can use RAW reading and writing to copy the file you did not want delte 134 Of couse, you can use RAW reading and writing to copy the file you did not want delte
135*/ 135*/
136 136
137extern zipFile ZEXPORT zipOpen2 OF((const char *pathname, 137extern zipFile ZEXPORT zipOpen2(const char *pathname,
138 int append, 138 int append,
139 zipcharpc* globalcomment, 139 zipcharpc* globalcomment,
140 zlib_filefunc_def* pzlib_filefunc_def)); 140 zlib_filefunc_def* pzlib_filefunc_def);
141 141
142extern zipFile ZEXPORT zipOpen2_64 OF((const void *pathname, 142extern zipFile ZEXPORT zipOpen2_64(const void *pathname,
143 int append, 143 int append,
144 zipcharpc* globalcomment, 144 zipcharpc* globalcomment,
145 zlib_filefunc64_def* pzlib_filefunc_def)); 145 zlib_filefunc64_def* pzlib_filefunc_def);
146 146
147extern zipFile ZEXPORT zipOpen3 OF((const void *pathname, 147extern zipFile ZEXPORT zipOpen3(const void *pathname,
148 int append, 148 int append,
149 zipcharpc* globalcomment, 149 zipcharpc* globalcomment,
150 zlib_filefunc64_32_def* pzlib_filefunc64_32_def)); 150 zlib_filefunc64_32_def* pzlib_filefunc64_32_def);
151 151
152extern int ZEXPORT zipOpenNewFileInZip OF((zipFile file, 152extern int ZEXPORT zipOpenNewFileInZip(zipFile file,
153 const char* filename, 153 const char* filename,
154 const zip_fileinfo* zipfi, 154 const zip_fileinfo* zipfi,
155 const void* extrafield_local, 155 const void* extrafield_local,
156 uInt size_extrafield_local, 156 uInt size_extrafield_local,
157 const void* extrafield_global, 157 const void* extrafield_global,
158 uInt size_extrafield_global, 158 uInt size_extrafield_global,
159 const char* comment, 159 const char* comment,
160 int method, 160 int method,
161 int level)); 161 int level);
162 162
163extern int ZEXPORT zipOpenNewFileInZip64 OF((zipFile file, 163extern int ZEXPORT zipOpenNewFileInZip64(zipFile file,
164 const char* filename, 164 const char* filename,
165 const zip_fileinfo* zipfi, 165 const zip_fileinfo* zipfi,
166 const void* extrafield_local, 166 const void* extrafield_local,
167 uInt size_extrafield_local, 167 uInt size_extrafield_local,
168 const void* extrafield_global, 168 const void* extrafield_global,
169 uInt size_extrafield_global, 169 uInt size_extrafield_global,
170 const char* comment, 170 const char* comment,
171 int method, 171 int method,
172 int level, 172 int level,
173 int zip64)); 173 int zip64);
174 174
175/* 175/*
176 Open a file in the ZIP for writing. 176 Open a file in the ZIP for writing.
@@ -189,70 +189,69 @@ extern int ZEXPORT zipOpenNewFileInZip64 OF((zipFile file,
189*/ 189*/
190 190
191 191
192extern int ZEXPORT zipOpenNewFileInZip2 OF((zipFile file, 192extern int ZEXPORT zipOpenNewFileInZip2(zipFile file,
193 const char* filename, 193 const char* filename,
194 const zip_fileinfo* zipfi, 194 const zip_fileinfo* zipfi,
195 const void* extrafield_local, 195 const void* extrafield_local,
196 uInt size_extrafield_local, 196 uInt size_extrafield_local,
197 const void* extrafield_global, 197 const void* extrafield_global,
198 uInt size_extrafield_global, 198 uInt size_extrafield_global,
199 const char* comment, 199 const char* comment,
200 int method, 200 int method,
201 int level, 201 int level,
202 int raw)); 202 int raw);
203 203
204 204
205extern int ZEXPORT zipOpenNewFileInZip2_64 OF((zipFile file, 205extern int ZEXPORT zipOpenNewFileInZip2_64(zipFile file,
206 const char* filename, 206 const char* filename,
207 const zip_fileinfo* zipfi, 207 const zip_fileinfo* zipfi,
208 const void* extrafield_local, 208 const void* extrafield_local,
209 uInt size_extrafield_local, 209 uInt size_extrafield_local,
210 const void* extrafield_global, 210 const void* extrafield_global,
211 uInt size_extrafield_global, 211 uInt size_extrafield_global,
212 const char* comment, 212 const char* comment,
213 int method, 213 int method,
214 int level, 214 int level,
215 int raw, 215 int raw,
216 int zip64)); 216 int zip64);
217/* 217/*
218 Same than zipOpenNewFileInZip, except if raw=1, we write raw file 218 Same than zipOpenNewFileInZip, except if raw=1, we write raw file
219 */ 219 */
220 220
221extern int ZEXPORT zipOpenNewFileInZip3 OF((zipFile file, 221extern int ZEXPORT zipOpenNewFileInZip3(zipFile file,
222 const char* filename, 222 const char* filename,
223 const zip_fileinfo* zipfi, 223 const zip_fileinfo* zipfi,
224 const void* extrafield_local, 224 const void* extrafield_local,
225 uInt size_extrafield_local, 225 uInt size_extrafield_local,
226 const void* extrafield_global, 226 const void* extrafield_global,
227 uInt size_extrafield_global, 227 uInt size_extrafield_global,
228 const char* comment, 228 const char* comment,
229 int method, 229 int method,
230 int level, 230 int level,
231 int raw, 231 int raw,
232 int windowBits, 232 int windowBits,
233 int memLevel, 233 int memLevel,
234 int strategy, 234 int strategy,
235 const char* password, 235 const char* password,
236 uLong crcForCrypting)); 236 uLong crcForCrypting);
237 237
238extern int ZEXPORT zipOpenNewFileInZip3_64 OF((zipFile file, 238extern int ZEXPORT zipOpenNewFileInZip3_64(zipFile file,
239 const char* filename, 239 const char* filename,
240 const zip_fileinfo* zipfi, 240 const zip_fileinfo* zipfi,
241 const void* extrafield_local, 241 const void* extrafield_local,
242 uInt size_extrafield_local, 242 uInt size_extrafield_local,
243 const void* extrafield_global, 243 const void* extrafield_global,
244 uInt size_extrafield_global, 244 uInt size_extrafield_global,
245 const char* comment, 245 const char* comment,
246 int method, 246 int method,
247 int level, 247 int level,
248 int raw, 248 int raw,
249 int windowBits, 249 int windowBits,
250 int memLevel, 250 int memLevel,
251 int strategy, 251 int strategy,
252 const char* password, 252 const char* password,
253 uLong crcForCrypting, 253 uLong crcForCrypting,
254 int zip64 254 int zip64);
255 ));
256 255
257/* 256/*
258 Same than zipOpenNewFileInZip2, except 257 Same than zipOpenNewFileInZip2, except
@@ -261,47 +260,45 @@ extern int ZEXPORT zipOpenNewFileInZip3_64 OF((zipFile file,
261 crcForCrypting : crc of file to compress (needed for crypting) 260 crcForCrypting : crc of file to compress (needed for crypting)
262 */ 261 */
263 262
264extern int ZEXPORT zipOpenNewFileInZip4 OF((zipFile file, 263extern int ZEXPORT zipOpenNewFileInZip4(zipFile file,
265 const char* filename, 264 const char* filename,
266 const zip_fileinfo* zipfi, 265 const zip_fileinfo* zipfi,
267 const void* extrafield_local, 266 const void* extrafield_local,
268 uInt size_extrafield_local, 267 uInt size_extrafield_local,
269 const void* extrafield_global, 268 const void* extrafield_global,
270 uInt size_extrafield_global, 269 uInt size_extrafield_global,
271 const char* comment, 270 const char* comment,
272 int method, 271 int method,
273 int level, 272 int level,
274 int raw, 273 int raw,
275 int windowBits, 274 int windowBits,
276 int memLevel, 275 int memLevel,
277 int strategy, 276 int strategy,
278 const char* password, 277 const char* password,
279 uLong crcForCrypting, 278 uLong crcForCrypting,
280 uLong versionMadeBy, 279 uLong versionMadeBy,
281 uLong flagBase 280 uLong flagBase);
282 )); 281
283 282
284 283extern int ZEXPORT zipOpenNewFileInZip4_64(zipFile file,
285extern int ZEXPORT zipOpenNewFileInZip4_64 OF((zipFile file, 284 const char* filename,
286 const char* filename, 285 const zip_fileinfo* zipfi,
287 const zip_fileinfo* zipfi, 286 const void* extrafield_local,
288 const void* extrafield_local, 287 uInt size_extrafield_local,
289 uInt size_extrafield_local, 288 const void* extrafield_global,
290 const void* extrafield_global, 289 uInt size_extrafield_global,
291 uInt size_extrafield_global, 290 const char* comment,
292 const char* comment, 291 int method,
293 int method, 292 int level,
294 int level, 293 int raw,
295 int raw, 294 int windowBits,
296 int windowBits, 295 int memLevel,
297 int memLevel, 296 int strategy,
298 int strategy, 297 const char* password,
299 const char* password, 298 uLong crcForCrypting,
300 uLong crcForCrypting, 299 uLong versionMadeBy,
301 uLong versionMadeBy, 300 uLong flagBase,
302 uLong flagBase, 301 int zip64);
303 int zip64
304 ));
305/* 302/*
306 Same than zipOpenNewFileInZip4, except 303 Same than zipOpenNewFileInZip4, except
307 versionMadeBy : value for Version made by field 304 versionMadeBy : value for Version made by field
@@ -309,25 +306,25 @@ extern int ZEXPORT zipOpenNewFileInZip4_64 OF((zipFile file,
309 */ 306 */
310 307
311 308
312extern int ZEXPORT zipWriteInFileInZip OF((zipFile file, 309extern int ZEXPORT zipWriteInFileInZip(zipFile file,
313 const void* buf, 310 const void* buf,
314 unsigned len)); 311 unsigned len);
315/* 312/*
316 Write data in the zipfile 313 Write data in the zipfile
317*/ 314*/
318 315
319extern int ZEXPORT zipCloseFileInZip OF((zipFile file)); 316extern int ZEXPORT zipCloseFileInZip(zipFile file);
320/* 317/*
321 Close the current file in the zipfile 318 Close the current file in the zipfile
322*/ 319*/
323 320
324extern int ZEXPORT zipCloseFileInZipRaw OF((zipFile file, 321extern int ZEXPORT zipCloseFileInZipRaw(zipFile file,
325 uLong uncompressed_size, 322 uLong uncompressed_size,
326 uLong crc32)); 323 uLong crc32);
327 324
328extern int ZEXPORT zipCloseFileInZipRaw64 OF((zipFile file, 325extern int ZEXPORT zipCloseFileInZipRaw64(zipFile file,
329 ZPOS64_T uncompressed_size, 326 ZPOS64_T uncompressed_size,
330 uLong crc32)); 327 uLong crc32);
331 328
332/* 329/*
333 Close the current file in the zipfile, for file opened with 330 Close the current file in the zipfile, for file opened with
@@ -335,14 +332,14 @@ extern int ZEXPORT zipCloseFileInZipRaw64 OF((zipFile file,
335 uncompressed_size and crc32 are value for the uncompressed size 332 uncompressed_size and crc32 are value for the uncompressed size
336*/ 333*/
337 334
338extern int ZEXPORT zipClose OF((zipFile file, 335extern int ZEXPORT zipClose(zipFile file,
339 const char* global_comment)); 336 const char* global_comment);
340/* 337/*
341 Close the zipfile 338 Close the zipfile
342*/ 339*/
343 340
344 341
345extern int ZEXPORT zipRemoveExtraInfoBlock OF((char* pData, int* dataLen, short sHeader)); 342extern int ZEXPORT zipRemoveExtraInfoBlock(char* pData, int* dataLen, short sHeader);
346/* 343/*
347 zipRemoveExtraInfoBlock - Added by Mathias Svensson 344 zipRemoveExtraInfoBlock - Added by Mathias Svensson
348 345