mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
28 lines
696 B
C
28 lines
696 B
C
/* compress.h - header for compression */
|
|
|
|
#ifndef compress_H
|
|
#define compress_H 1
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Initializes the compression data structure(s) */
|
|
U_EXPORT int init_compression(void);
|
|
|
|
/* Compresses the file specified by in_fd and appends it to out_fd */
|
|
U_EXPORT int compress_file(int in_fd, int out_fd, struct zipentry* ze);
|
|
|
|
/* Frees memory used by compression function */
|
|
U_EXPORT int end_compression(void);
|
|
|
|
U_EXPORT int init_inflation(void);
|
|
U_EXPORT int inflate_file(pb_file*, int out_fd, struct zipentry* ze);
|
|
U_EXPORT int inflate_buffer(pb_file*, unsigned* inlen, char** out_buff, unsigned* outlen, struct zipentry* ze);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|