mirror of
https://github.com/nitraiolo/CfgUSBLoader.git
synced 2025-01-25 01:11:14 +01:00
24 lines
1.0 KiB
C
24 lines
1.0 KiB
C
|
#include <stdio.h>
|
||
|
|
||
|
#define Z_FOPEN_ERROR (Z_VERSION_ERROR - 1)
|
||
|
#define Z_ALLOC_ERROR (Z_VERSION_ERROR - 2)
|
||
|
#define Z_FILE_ERROR (Z_VERSION_ERROR - 3)
|
||
|
|
||
|
/* Decompress from file source to file dest until stream ends or EOF.
|
||
|
inf() returns Z_OK on success, Z_MEM_ERROR if memory could not be
|
||
|
allocated for processing, Z_DATA_ERROR if the deflate data is
|
||
|
invalid or incomplete, Z_VERSION_ERROR if the version of zlib.h and
|
||
|
the version of the library linked do not match, or Z_ERRNO if there
|
||
|
is an error reading or writing the files. */
|
||
|
|
||
|
int zlib_inf(char *source, char *target);
|
||
|
|
||
|
/* Compress from file source to file dest until EOF on source.
|
||
|
def() returns Z_OK on success, Z_MEM_ERROR if memory could not be
|
||
|
allocated for processing, Z_STREAM_ERROR if an invalid compression
|
||
|
level is supplied, Z_VERSION_ERROR if the version of zlib.h and the
|
||
|
version of the library linked do not match, or Z_ERRNO if there is
|
||
|
an error reading or writing the files. */
|
||
|
|
||
|
int zlib_def(char *source, char *target, int level);
|