22#if !defined(_POSIX_C_SOURCE) && defined(_MSC_VER)
26typedef long long ssize_t;
50#define ZIP_DEFAULT_COMPRESSION_LEVEL 6
56#define ZIP_EINVENTNAME -2
58#define ZIP_EINVMODE -4
60#define ZIP_ENOSUP64 -6
63#define ZIP_ETDEFLINIT -9
64#define ZIP_EINVIDX -10
66#define ZIP_ETDEFLBUF -12
67#define ZIP_ECRTHDR -13
68#define ZIP_EWRTHDR -14
69#define ZIP_EWRTDIR -15
70#define ZIP_EOPNFILE -16
71#define ZIP_EINVENTTYPE -17
72#define ZIP_EMEMNOALLOC -18
73#define ZIP_ENOFILE -19
74#define ZIP_ENOPERM -20
76#define ZIP_EINVZIPNAME -22
78#define ZIP_ESYMLINK -24
79#define ZIP_ECLSZIP -25
80#define ZIP_ECAPSIZE -26
83#define ZIP_EFWRITE -29
113extern struct zip_t *
zip_open(
const char *zipname,
int level,
char mode);
299 size_t (*on_extract)(
void *arg,
unsigned long long offset,
300 const void *data,
size_t size),
342 int (*on_extract)(
const char *filename,
386extern int zip_create(
const char *zipname,
const char *filenames[],
size_t len);
404extern int zip_extract(
const char *zipname,
const char *dir,
405 int (*on_extract_entry)(
const char *filename,
void *arg),
int zip_is64(struct zip_t *zip)
unsigned long long zip_entry_size(struct zip_t *zip)
ssize_t zip_stream_copy(struct zip_t *zip, void **buf, ssize_t *bufsize)
int zip_entry_isdir(struct zip_t *zip)
const char * zip_entry_name(struct zip_t *zip)
struct zip_t * zip_open(const char *zipname, int level, char mode)
void zip_stream_close(struct zip_t *zip)
int zip_entry_fread(struct zip_t *zip, const char *filename)
int zip_entry_index(struct zip_t *zip)
struct zip_t * zip_stream_open(const char *stream, size_t size, int level, char mode)
int zip_entry_extract(struct zip_t *zip, size_t(*on_extract)(void *arg, unsigned long long offset, const void *data, size_t size), void *arg)
const char * zip_strerror(int errnum)
int zip_entry_fwrite(struct zip_t *zip, const char *filename)
ssize_t zip_entry_noallocread(struct zip_t *zip, void *buf, size_t bufsize)
unsigned int zip_entry_crc32(struct zip_t *zip)
int zip_create(const char *zipname, const char *filenames[], size_t len)
void zip_close(struct zip_t *zip)
int zip_entry_open(struct zip_t *zip, const char *entryname)
int zip_entry_openbyindex(struct zip_t *zip, int index)
int zip_extract(const char *zipname, const char *dir, int(*on_extract_entry)(const char *filename, void *arg), void *arg)
int zip_entries_total(struct zip_t *zip)
int zip_entry_close(struct zip_t *zip)
int zip_entry_write(struct zip_t *zip, const void *buf, size_t bufsize)
ssize_t zip_entry_read(struct zip_t *zip, void **buf, size_t *bufsize)
int zip_entries_delete(struct zip_t *zip, char *const entries[], size_t len)
int zip_stream_extract(const char *stream, size_t size, const char *dir, int(*on_extract)(const char *filename, void *arg), void *arg)