mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-10-05 19:18:01 +08:00
20 lines
758 B
C
20 lines
758 B
C
/* ziptool.h */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
U_EXPORT int zip_archive(const char* zipfile, const char* files[]); /* create new archive */
|
|
U_EXPORT int zip_match(const char* zipfile, const char* files[]); /* match archive list with named files */
|
|
|
|
/* extract named (or all) files from archive */
|
|
U_EXPORT unsigned zip_extract(const char* zipfile, const char** files, char*** filenames, unsigned** filenames_len);
|
|
|
|
/* get content of all files from archive data */
|
|
U_EXPORT unsigned zip_get_content(const char* zipdata, unsigned datalen, char*** filenames, unsigned** filenames_len,
|
|
char*** filecontents, unsigned** filecontents_len);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|