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