1/* $NetBSD: mztools.h,v 1.1.1.1 2006/01/14 20:10:58 christos Exp $ */ 2 3/* 4 Additional tools for Minizip 5 Code: Xavier Roche '2004 6 License: Same as ZLIB (www.gzip.org) 7*/ 8 9#ifndef _zip_tools_H 10#define _zip_tools_H 11 12#ifdef __cplusplus 13extern "C" { 14#endif 15 16#ifndef _ZLIB_H 17#include "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*/ 27extern int ZEXPORT unzRepair(const char* file, 28 const char* fileOut, 29 const char* fileOutTmp, 30 uLong* nRecovered, 31 uLong* bytesRecovered); 32 33#endif 34