diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2012-03-19 12:55:42 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2012-03-19 12:55:42 +0000 |
commit | 844ecc37072d515513177c65a8c9dc35c9cdfc1a (patch) | |
tree | 733b1fe039c0c37095a594b66d5076f3f5a0153d /src/htszlib.h | |
parent | 25adbdabb47499fe641c7bd9595024ff82667058 (diff) |
httrack 3.33.16
Diffstat (limited to 'src/htszlib.h')
-rw-r--r-- | src/htszlib.h | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/src/htszlib.h b/src/htszlib.h index 173d966..8f8b565 100644 --- a/src/htszlib.h +++ b/src/htszlib.h @@ -39,32 +39,20 @@ Please visit our Website: http://www.httrack.com #ifndef HTS_DEFZLIB #define HTS_DEFZLIB -#if HTS_USEZLIB +/* ZLib */ +#include "zlib.h" +//#include "zutil.h" -int hts_zunpack(char* filename,char* newfile); - -#define gzopen hts_ptrfunc_gzopen -#define gzread hts_ptrfunc_gzread -#define gzclose hts_ptrfunc_gzclose - -#ifdef _WIN32 -#define ZEXPORT WINAPI -#else -#define ZEXPORT -#endif - -typedef void* voidp; -typedef voidp gzFile; -typedef gzFile (ZEXPORT *t_gzopen)(const char *path, const char *mode); -typedef int (ZEXPORT *t_gzread)(gzFile file, voidp buf, unsigned len); -typedef int (ZEXPORT *t_gzclose)(gzFile file); +/* MiniZip */ +#include "minizip/zip.h" +#include "minizip/unzip.h" +#include "minizip/mztools.h" +/* Library internal definictions */ +#ifdef HTS_INTERNAL_BYTECODE extern int gz_is_available; -extern t_gzopen gzopen; -extern t_gzread gzread; -extern t_gzclose gzclose; - -#endif - +extern int hts_zunpack(char* filename,char* newfile); +extern int hts_extract_meta(char* path); #endif +#endif |