packvfs

diff test/zipcat/src/minizip/mztools.h @ 3:ef6c1472607f

jesus fucking christ that was easy... written a test prog "zipcat" to try out zlib's contrib library "minizip", to list and read files out of zip archives directly...
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 04 Nov 2013 06:46:17 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/zipcat/src/minizip/mztools.h	Mon Nov 04 06:46:17 2013 +0200
     1.3 @@ -0,0 +1,37 @@
     1.4 +/*
     1.5 +  Additional tools for Minizip
     1.6 +  Code: Xavier Roche '2004
     1.7 +  License: Same as ZLIB (www.gzip.org)
     1.8 +*/
     1.9 +
    1.10 +#ifndef _zip_tools_H
    1.11 +#define _zip_tools_H
    1.12 +
    1.13 +#ifdef __cplusplus
    1.14 +extern "C" {
    1.15 +#endif
    1.16 +
    1.17 +#ifndef _ZLIB_H
    1.18 +#include "zlib.h"
    1.19 +#endif
    1.20 +
    1.21 +#include "unzip.h"
    1.22 +
    1.23 +/* Repair a ZIP file (missing central directory)
    1.24 +   file: file to recover
    1.25 +   fileOut: output file after recovery
    1.26 +   fileOutTmp: temporary file name used for recovery
    1.27 +*/
    1.28 +extern int ZEXPORT unzRepair(const char* file,
    1.29 +                             const char* fileOut,
    1.30 +                             const char* fileOutTmp,
    1.31 +                             uLong* nRecovered,
    1.32 +                             uLong* bytesRecovered);
    1.33 +
    1.34 +
    1.35 +#ifdef __cplusplus
    1.36 +}
    1.37 +#endif
    1.38 +
    1.39 +
    1.40 +#endif