60#ifndef CPL_MINIZIP_ZIP_H_INCLUDED
61#define CPL_MINIZIP_ZIP_H_INCLUDED
66#define uLong64 vsi_l_offset
75#include "cpl_zlib_header.h"
78#ifndef CPL_MINIZIP_IOAPI_H_INCLUDED
79#include "cpl_minizip_ioapi.h"
86#if defined(STRICTZIP) || defined(STRICTZIPUNZIP)
89 typedef struct TagzipFile__
93 typedef zipFile__ *zipFile;
100#define ZIP_ERRNO (Z_ERRNO)
101#define ZIP_PARAMERROR (-102)
102#define ZIP_BADZIPFILE (-103)
103#define ZIP_INTERNALERROR (-104)
106#if MAX_MEM_LEVEL >= 8
107#define DEF_MEM_LEVEL 8
109#define DEF_MEM_LEVEL MAX_MEM_LEVEL
115 typedef struct tm_zip_s
136 typedef const char *zipcharpc;
138#define APPEND_STATUS_CREATE (0)
139#define APPEND_STATUS_CREATEAFTER (1)
140#define APPEND_STATUS_ADDINZIP (2)
142 extern zipFile ZEXPORT cpl_zipOpen(
const char *pathname,
int append);
161 extern zipFile ZEXPORT cpl_zipOpen2(
const char *pathname,
int append,
162 zipcharpc *globalcomment,
163 zlib_filefunc_def *pzlib_filefunc_def);
165 extern int ZEXPORT cpl_zipOpenNewFileInZip(
166 zipFile file,
const char *filename,
const zip_fileinfo *zipfi,
167 const void *extrafield_local, uInt size_extrafield_local,
168 const void *extrafield_global, uInt size_extrafield_global,
169 const char *comment,
int method,
int level);
184 extern int ZEXPORT cpl_zipOpenNewFileInZip2(
185 zipFile file,
const char *filename,
const zip_fileinfo *zipfi,
186 const void *extrafield_local, uInt size_extrafield_local,
187 const void *extrafield_global, uInt size_extrafield_global,
188 const char *comment,
int method,
int level,
int raw);
194 extern int ZEXPORT cpl_zipOpenNewFileInZip3(
195 zipFile file,
const char *filename,
const zip_fileinfo *zipfi,
196 const void *extrafield_local, uInt size_extrafield_local,
197 const void *extrafield_global, uInt size_extrafield_global,
198 const char *comment,
int method,
int level,
int raw,
int windowBits,
199 int memLevel,
int strategy,
const char *password, uLong crcForCtypting);
208 extern int ZEXPORT cpl_zipWriteInFileInZip(zipFile file,
const void *buf,
214 extern int ZEXPORT cpl_zipCloseFileInZip(zipFile file);
219 extern int ZEXPORT cpl_zipCloseFileInZipRaw(zipFile file,
220 ZPOS64_T uncompressed_size,
228 extern int ZEXPORT cpl_zipClose(zipFile file,
const char *global_comment);
GUIntBig vsi_l_offset
Type for a file offset.
Definition cpl_vsi.h:146