60#ifndef CPL_MINIZIP_ZIP_H_INCLUDED
61#define CPL_MINIZIP_ZIP_H_INCLUDED
66#define uLong64 vsi_l_offset
77#ifndef CPL_MINIZIP_IOAPI_H_INCLUDED
78#include "cpl_minizip_ioapi.h"
85#if defined(STRICTZIP) || defined(STRICTZIPUNZIP)
88typedef struct TagzipFile__ {
int unused; } zipFile__;
89typedef zipFile__ *zipFile;
96#define ZIP_ERRNO (Z_ERRNO)
97#define ZIP_PARAMERROR (-102)
98#define ZIP_BADZIPFILE (-103)
99#define ZIP_INTERNALERROR (-104)
102# if MAX_MEM_LEVEL >= 8
103# define DEF_MEM_LEVEL 8
105# define DEF_MEM_LEVEL MAX_MEM_LEVEL
111typedef struct tm_zip_s
131typedef const char* zipcharpc;
133#define APPEND_STATUS_CREATE (0)
134#define APPEND_STATUS_CREATEAFTER (1)
135#define APPEND_STATUS_ADDINZIP (2)
137extern zipFile ZEXPORT cpl_zipOpen (
const char *pathname,
int append);
157extern zipFile ZEXPORT cpl_zipOpen2 (
const char *pathname,
159 zipcharpc* globalcomment,
160 zlib_filefunc_def* pzlib_filefunc_def);
162extern int ZEXPORT cpl_zipOpenNewFileInZip (zipFile file,
163 const char* filename,
164 const zip_fileinfo* zipfi,
165 const void* extrafield_local,
166 uInt size_extrafield_local,
167 const void* extrafield_global,
168 uInt size_extrafield_global,
185extern int ZEXPORT cpl_zipOpenNewFileInZip2 (zipFile file,
186 const char* filename,
187 const zip_fileinfo* zipfi,
188 const void* extrafield_local,
189 uInt size_extrafield_local,
190 const void* extrafield_global,
191 uInt size_extrafield_global,
201extern int ZEXPORT cpl_zipOpenNewFileInZip3 (zipFile file,
202 const char* filename,
203 const zip_fileinfo* zipfi,
204 const void* extrafield_local,
205 uInt size_extrafield_local,
206 const void* extrafield_global,
207 uInt size_extrafield_global,
215 const char* password,
216 uLong crcForCtypting);
225extern int ZEXPORT cpl_zipWriteInFileInZip (zipFile file,
232extern int ZEXPORT cpl_zipCloseFileInZip (zipFile file);
237extern int ZEXPORT cpl_zipCloseFileInZipRaw (zipFile file,
238 ZPOS64_T uncompressed_size,
246extern int ZEXPORT cpl_zipClose (zipFile file,
247 const char* global_comment);
GUIntBig vsi_l_offset
Type for a file offset.
Definition: cpl_vsi.h:140