mztools.h 708 B

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