-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathzip.h
More file actions
32 lines (24 loc) · 712 Bytes
/
zip.h
File metadata and controls
32 lines (24 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef _ZIP_H_
#define _ZIP_H_
#include "zipstream.h"
#define ZS_LENGTH_LFH 30
#define ZS_LENGTH_LFD 16
#define ZS_LENGTH_CDH 46
#define ZS_LENGTH_EOCD 22
void zs_build_lfh(ZS *zs);
void zs_build_lfd(ZS *zs);
void zs_build_cdh(ZS *zs);
void zs_build_eocd(ZS *zs);
int zs_write_stagedata(ZS *zs, char *buf, int sbuf, int size);
int zs_write_filename(ZS *zs, char *buf, int sbuf);
int zs_write_filedata_none(ZS *zs, char *buf, int sbuf);
#ifdef WITH_DEFLATE
int zs_write_filedata_deflate(ZS *zs, char *buf, int sbuf);
#endif
#ifdef WITH_BZIP2
int zs_write_filedata_bzip2(ZS *zs, char *buf, int sbuf);
#endif
size_t zs_get_cdoffset(ZS *zs);
size_t zs_get_cdsize(ZS *zs);
void zs_stager(ZS *zs);
#endif