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