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