aboutsummaryrefslogtreecommitdiff
path: root/contrib/minizip/zip.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/minizip/zip.h')
-rw-r--r--contrib/minizip/zip.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/contrib/minizip/zip.h b/contrib/minizip/zip.h
index 3e230d3..1f7f0b2 100644
--- a/contrib/minizip/zip.h
+++ b/contrib/minizip/zip.h
@@ -35,7 +35,7 @@
35 35
36 See header of zip.h 36 See header of zip.h
37 37
38*/ 38 */
39 39
40#ifndef _zip12_H 40#ifndef _zip12_H
41#define _zip12_H 41#define _zip12_H
@@ -127,12 +127,12 @@ extern zipFile ZEXPORT zipOpen64(const void *pathname, int append);
127 If the zipfile cannot be opened, the return value is NULL. 127 If the zipfile cannot be opened, the return value is NULL.
128 Else, the return value is a zipFile Handle, usable with other function 128 Else, the return value is a zipFile Handle, usable with other function
129 of this zip package. 129 of this zip package.
130*/ 130 */
131 131
132/* Note : there is no delete function into a zipfile. 132/* Note : there is no delete function into a zipfile.
133 If you want delete file into a zipfile, you must open a zipfile, and create another 133 If you want delete file into a zipfile, you must open a zipfile, and create another
134 Of course, you can use RAW reading and writing to copy the file you did not want delete 134 Of course, you can use RAW reading and writing to copy the file you did not want delete
135*/ 135 */
136 136
137extern zipFile ZEXPORT zipOpen2(const char *pathname, 137extern zipFile ZEXPORT zipOpen2(const char *pathname,
138 int append, 138 int append,
@@ -186,7 +186,7 @@ extern int ZEXPORT zipOpenNewFileInZip64(zipFile file,
186 zip64 is set to 1 if a zip64 extended information block should be added to the local file header. 186 zip64 is set to 1 if a zip64 extended information block should be added to the local file header.
187 this MUST be '1' if the uncompressed size is >= 0xffffffff. 187 this MUST be '1' if the uncompressed size is >= 0xffffffff.
188 188
189*/ 189 */
190 190
191 191
192extern int ZEXPORT zipOpenNewFileInZip2(zipFile file, 192extern int ZEXPORT zipOpenNewFileInZip2(zipFile file,
@@ -311,12 +311,12 @@ extern int ZEXPORT zipWriteInFileInZip(zipFile file,
311 unsigned len); 311 unsigned len);
312/* 312/*
313 Write data in the zipfile 313 Write data in the zipfile
314*/ 314 */
315 315
316extern int ZEXPORT zipCloseFileInZip(zipFile file); 316extern int ZEXPORT zipCloseFileInZip(zipFile file);
317/* 317/*
318 Close the current file in the zipfile 318 Close the current file in the zipfile
319*/ 319 */
320 320
321extern int ZEXPORT zipCloseFileInZipRaw(zipFile file, 321extern int ZEXPORT zipCloseFileInZipRaw(zipFile file,
322 uLong uncompressed_size, 322 uLong uncompressed_size,
@@ -326,17 +326,23 @@ extern int ZEXPORT zipCloseFileInZipRaw64(zipFile file,
326 ZPOS64_T uncompressed_size, 326 ZPOS64_T uncompressed_size,
327 uLong crc32); 327 uLong crc32);
328 328
329extern int ZEXPORT zipAlreadyThere(zipFile file,
330 char const* name);
331/*
332 See if name is already in file's central directory.
333 */
334
329/* 335/*
330 Close the current file in the zipfile, for file opened with 336 Close the current file in the zipfile, for file opened with
331 parameter raw=1 in zipOpenNewFileInZip2 337 parameter raw=1 in zipOpenNewFileInZip2
332 uncompressed_size and crc32 are value for the uncompressed size 338 uncompressed_size and crc32 are value for the uncompressed size
333*/ 339 */
334 340
335extern int ZEXPORT zipClose(zipFile file, 341extern int ZEXPORT zipClose(zipFile file,
336 const char* global_comment); 342 const char* global_comment);
337/* 343/*
338 Close the zipfile 344 Close the zipfile
339*/ 345 */
340 346
341 347
342extern int ZEXPORT zipRemoveExtraInfoBlock(char* pData, int* dataLen, short sHeader); 348extern int ZEXPORT zipRemoveExtraInfoBlock(char* pData, int* dataLen, short sHeader);
@@ -355,7 +361,7 @@ extern int ZEXPORT zipRemoveExtraInfoBlock(char* pData, int* dataLen, short sHea
355 361
356 Remove ZIP64 Extra information from a Local File Header extra field data 362 Remove ZIP64 Extra information from a Local File Header extra field data
357 zipRemoveExtraInfoBlock(pLocalHeaderExtraFieldData, &nLocalHeaderExtraFieldDataLen, 0x0001); 363 zipRemoveExtraInfoBlock(pLocalHeaderExtraFieldData, &nLocalHeaderExtraFieldDataLen, 0x0001);
358*/ 364 */
359 365
360#ifdef __cplusplus 366#ifdef __cplusplus
361} 367}