Commit | Line | Data |
---|---|---|
9fec9f8e MZ |
1 | // SPDX-License-Identifier: Zlib |
2 | #ifndef DFLTCC_DEFLATE_H | |
3 | #define DFLTCC_DEFLATE_H | |
4 | ||
5 | #include "dfltcc.h" | |
6 | ||
7 | /* External functions */ | |
8 | int dfltcc_can_deflate(z_streamp strm); | |
9 | int dfltcc_deflate(z_streamp strm, | |
10 | int flush, | |
11 | block_state *result); | |
12 | void dfltcc_reset_deflate_state(z_streamp strm); | |
13 | ||
14 | #define DEFLATE_RESET_HOOK(strm) \ | |
15 | dfltcc_reset_deflate_state((strm)) | |
16 | ||
17 | #define DEFLATE_HOOK dfltcc_deflate | |
18 | ||
19 | #define DEFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_deflate((strm))) | |
20 | ||
21 | #endif /* DFLTCC_DEFLATE_H */ |