xref: /minix3/common/dist/zlib/contrib/minizip/mztools.h (revision 44bedb31d842b4b0444105519bcf929a69fe2dc1)
1*44bedb31SLionel Sambuc /*	$NetBSD: mztools.h,v 1.1.1.1 2006/01/14 20:10:58 christos Exp $	*/
2*44bedb31SLionel Sambuc 
3*44bedb31SLionel Sambuc /*
4*44bedb31SLionel Sambuc   Additional tools for Minizip
5*44bedb31SLionel Sambuc   Code: Xavier Roche '2004
6*44bedb31SLionel Sambuc   License: Same as ZLIB (www.gzip.org)
7*44bedb31SLionel Sambuc */
8*44bedb31SLionel Sambuc 
9*44bedb31SLionel Sambuc #ifndef _zip_tools_H
10*44bedb31SLionel Sambuc #define _zip_tools_H
11*44bedb31SLionel Sambuc 
12*44bedb31SLionel Sambuc #ifdef __cplusplus
13*44bedb31SLionel Sambuc extern "C" {
14*44bedb31SLionel Sambuc #endif
15*44bedb31SLionel Sambuc 
16*44bedb31SLionel Sambuc #ifndef _ZLIB_H
17*44bedb31SLionel Sambuc #include "zlib.h"
18*44bedb31SLionel Sambuc #endif
19*44bedb31SLionel Sambuc 
20*44bedb31SLionel Sambuc #include "unzip.h"
21*44bedb31SLionel Sambuc 
22*44bedb31SLionel Sambuc /* Repair a ZIP file (missing central directory)
23*44bedb31SLionel Sambuc    file: file to recover
24*44bedb31SLionel Sambuc    fileOut: output file after recovery
25*44bedb31SLionel Sambuc    fileOutTmp: temporary file name used for recovery
26*44bedb31SLionel Sambuc */
27*44bedb31SLionel Sambuc extern int ZEXPORT unzRepair(const char* file,
28*44bedb31SLionel Sambuc                              const char* fileOut,
29*44bedb31SLionel Sambuc                              const char* fileOutTmp,
30*44bedb31SLionel Sambuc                              uLong* nRecovered,
31*44bedb31SLionel Sambuc                              uLong* bytesRecovered);
32*44bedb31SLionel Sambuc 
33*44bedb31SLionel Sambuc #endif
34