fw4spl
mztools.h
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 /*
8  Additional tools for Minizip
9  Code: Xavier Roche '2004
10  License: Same as ZLIB (www.gzip.org)
11  */
12 
13 #ifndef __MINIZIP_MZTOOLS_H__
14 #define __MINIZIP_MZTOOLS_H__
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 #ifndef _ZLIB_H
21 #include <zlib.h>
22 #endif
23 
24 #include "minizip/unzip.h"
25 
26 /* Repair a ZIP file (missing central directory)
27  file: file to recover
28  fileOut: output file after recovery
29  fileOutTmp: temporary file name used for recovery
30  */
31 extern MINIZIP_API int unzRepair(const char* file,
32  const char* fileOut,
33  const char* fileOutTmp,
34  uLong* nRecovered,
35  uLong* bytesRecovered);
36 
37 #endif //__MINIZIP_MZTOOLS_H__