OLD | NEW |
1 /* | 1 /* |
2 Additional tools for Minizip | 2 Additional tools for Minizip |
3 Code: Xavier Roche '2004 | 3 Code: Xavier Roche '2004 |
4 License: Same as ZLIB (www.gzip.org) | 4 License: Same as ZLIB (www.gzip.org) |
5 */ | 5 */ |
6 | 6 |
7 #ifndef _zip_tools_H | 7 #ifndef _zip_tools_H |
8 #define _zip_tools_H | 8 #define _zip_tools_H |
9 | 9 |
10 #ifdef __cplusplus | 10 #ifdef __cplusplus |
11 extern "C" { | 11 extern "C" { |
12 #endif | 12 #endif |
13 | 13 |
14 #ifndef _ZLIB_H | 14 #ifndef _ZLIB_H |
15 #if defined(USE_SYSTEM_ZLIB) | |
16 #include <zlib.h> | |
17 #else | |
18 #include "third_party/zlib/zlib.h" | 15 #include "third_party/zlib/zlib.h" |
19 #endif | 16 #endif |
20 #endif | |
21 | 17 |
22 #include "unzip.h" | 18 #include "unzip.h" |
23 | 19 |
24 /* Repair a ZIP file (missing central directory) | 20 /* Repair a ZIP file (missing central directory) |
25 file: file to recover | 21 file: file to recover |
26 fileOut: output file after recovery | 22 fileOut: output file after recovery |
27 fileOutTmp: temporary file name used for recovery | 23 fileOutTmp: temporary file name used for recovery |
28 */ | 24 */ |
29 extern int ZEXPORT unzRepair(const char* file, | 25 extern int ZEXPORT unzRepair(const char* file, |
30 const char* fileOut, | 26 const char* fileOut, |
31 const char* fileOutTmp, | 27 const char* fileOutTmp, |
32 uLong* nRecovered, | 28 uLong* nRecovered, |
33 uLong* bytesRecovered); | 29 uLong* bytesRecovered); |
34 | 30 |
35 #endif | 31 #endif |
OLD | NEW |