Add first idea of zip struct
This commit is contained in:
parent
05b42d1b86
commit
691475d013
1 changed files with 29 additions and 0 deletions
29
libmineziper/include/libmineziper_zip.h
Normal file
29
libmineziper/include/libmineziper_zip.h
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
#ifndef LIBMINEZIPER_ZIP_H
|
||||||
|
#define LIBMINEZIPER_ZIP_H
|
||||||
|
|
||||||
|
typedef struct CDH
|
||||||
|
{
|
||||||
|
void* crc32; // TODO TYPE?
|
||||||
|
LFH* lfh;
|
||||||
|
void* filename; // TODO TYPE?
|
||||||
|
} CDH;
|
||||||
|
|
||||||
|
typedef struct LFH
|
||||||
|
{
|
||||||
|
void* crc32; // TODO TYPE?
|
||||||
|
LFH* lfh;
|
||||||
|
int size_compressed_data;
|
||||||
|
int size_uncompressed_data;
|
||||||
|
void* filename; // TODO TYPE?
|
||||||
|
void* data;
|
||||||
|
} LFH;
|
||||||
|
|
||||||
|
typedef struct zip
|
||||||
|
{
|
||||||
|
// compression type
|
||||||
|
CDH* central_directory;
|
||||||
|
} zip;
|
||||||
|
|
||||||
|
void parse_zip(char* filename, zip* out);
|
||||||
|
|
||||||
|
#endif
|
||||||
Loading…
Add table
Add a link
Reference in a new issue