summaryrefslogtreecommitdiffstats
path: root/lib/zlib_dfltcc/dfltcc_deflate.h
blob: be44b43833b1c712b8483561f400b9faa591c332 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// SPDX-License-Identifier: Zlib
#ifndef DFLTCC_DEFLATE_H
#define DFLTCC_DEFLATE_H

#include "dfltcc.h"

/* External functions */
int dfltcc_can_deflate(z_streamp strm);
int dfltcc_deflate(z_streamp strm,
                   int flush,
                   block_state *result);
void dfltcc_reset_deflate_state(z_streamp strm);

#define DEFLATE_RESET_HOOK(strm) \
    dfltcc_reset_deflate_state((strm))

#define DEFLATE_HOOK dfltcc_deflate

#define DEFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_deflate((strm)))

#endif /* DFLTCC_DEFLATE_H */