summaryrefslogtreecommitdiff
path: root/plugins/Zlib/src/mztools.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-08-07 18:13:17 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-08-07 18:13:17 +0000
commit130d315489b4800a48a68a01a5894492817162f0 (patch)
treef28db9bdc0c404d34d89c1117d3467de23753ef6 /plugins/Zlib/src/mztools.h
parenta1f4c0621436e68af9c12a63df0b6449b0f96e22 (diff)
minizip added to zlib
git-svn-id: http://svn.miranda-ng.org/main/trunk@5613 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Zlib/src/mztools.h')
-rw-r--r--plugins/Zlib/src/mztools.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/plugins/Zlib/src/mztools.h b/plugins/Zlib/src/mztools.h
new file mode 100644
index 0000000000..a49a426ec2
--- /dev/null
+++ b/plugins/Zlib/src/mztools.h
@@ -0,0 +1,37 @@
+/*
+ Additional tools for Minizip
+ Code: Xavier Roche '2004
+ License: Same as ZLIB (www.gzip.org)
+*/
+
+#ifndef _zip_tools_H
+#define _zip_tools_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _ZLIB_H
+#include "zlib.h"
+#endif
+
+#include "unzip.h"
+
+/* Repair a ZIP file (missing central directory)
+ file: file to recover
+ fileOut: output file after recovery
+ fileOutTmp: temporary file name used for recovery
+*/
+extern int ZEXPORT unzRepair(const char* file,
+ const char* fileOut,
+ const char* fileOutTmp,
+ uLong* nRecovered,
+ uLong* bytesRecovered);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif