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