kusano fc6ab3
/*
kusano fc6ab3
  Additional tools for Minizip
kusano fc6ab3
  Code: Xavier Roche '2004
kusano fc6ab3
  License: Same as ZLIB (www.gzip.org)
kusano fc6ab3
*/
kusano fc6ab3
kusano fc6ab3
#ifndef _zip_tools_H
kusano fc6ab3
#define _zip_tools_H
kusano fc6ab3
kusano fc6ab3
#ifdef __cplusplus
kusano fc6ab3
extern "C" {
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#ifndef _ZLIB_H
kusano fc6ab3
#include "zlib.h"
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
#include "unzip.h"
kusano fc6ab3
kusano fc6ab3
/* Repair a ZIP file (missing central directory)
kusano fc6ab3
   file: file to recover
kusano fc6ab3
   fileOut: output file after recovery
kusano fc6ab3
   fileOutTmp: temporary file name used for recovery
kusano fc6ab3
*/
kusano fc6ab3
extern int ZEXPORT unzRepair(const char* file,
kusano fc6ab3
                             const char* fileOut,
kusano fc6ab3
                             const char* fileOutTmp,
kusano fc6ab3
                             uLong* nRecovered,
kusano fc6ab3
                             uLong* bytesRecovered);
kusano fc6ab3
kusano fc6ab3
kusano fc6ab3
#ifdef __cplusplus
kusano fc6ab3
}
kusano fc6ab3
#endif
kusano fc6ab3
kusano fc6ab3
kusano fc6ab3
#endif