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"
88#if defined(STRICTZIP) || defined(STRICTZIPUNZIP)
91 typedef struct TagzipFile__
96 typedef zipFile__ *zipFile;
103#define ZIP_ERRNO (Z_ERRNO)
104#define ZIP_PARAMERROR (-102)
105#define ZIP_BADZIPFILE (-103)
106#define ZIP_INTERNALERROR (-104)
109#if MAX_MEM_LEVEL >= 8
110#define DEF_MEM_LEVEL 8
112#define DEF_MEM_LEVEL MAX_MEM_LEVEL
118 typedef struct tm_zip_s
139 typedef const char *zipcharpc;
141#define APPEND_STATUS_CREATE (0)
142#define APPEND_STATUS_CREATEAFTER (1)
143#define APPEND_STATUS_ADDINZIP (2)
145 extern zipFile ZEXPORT cpl_zipOpen(
const char *pathname,
int append);
164 extern zipFile ZEXPORT cpl_zipOpen2(
const char *pathname,
int append,
165 zipcharpc *globalcomment,
166 zlib_filefunc_def *pzlib_filefunc_def);
168 extern int ZEXPORT cpl_zipOpenNewFileInZip(
169 zipFile file,
const char *filename,
const zip_fileinfo *zipfi,
170 const void *extrafield_local, uInt size_extrafield_local,
171 const void *extrafield_global, uInt size_extrafield_global,
172 const char *comment,
int method,
int level);
187 extern int ZEXPORT cpl_zipOpenNewFileInZip2(
188 zipFile file,
const char *filename,
const zip_fileinfo *zipfi,
189 const void *extrafield_local, uInt size_extrafield_local,
190 const void *extrafield_global, uInt size_extrafield_global,
191 const char *comment,
int method,
int level,
int raw);
197 extern int ZEXPORT cpl_zipOpenNewFileInZip3(
198 zipFile file,
const char *filename,
const zip_fileinfo *zipfi,
199 const void *extrafield_local, uInt size_extrafield_local,
200 const void *extrafield_global, uInt size_extrafield_global,
201 const char *comment,
int method,
int level,
int raw,
int windowBits,
202 int memLevel,
int strategy,
const char *password, uLong crcForCtypting,
203 bool bZip64,
bool bIncludeInCentralDirectory);
212 extern int ZEXPORT cpl_zipWriteInFileInZip(zipFile file,
const void *buf,
218 extern int ZEXPORT cpl_zipCloseFileInZip(zipFile file);
223 extern int ZEXPORT cpl_zipCloseFileInZipRaw(zipFile file,
224 ZPOS64_T uncompressed_size,
232 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