Merge tag 'mm-nonmm-stable-2024-05-19-11-56' of git://git.kernel.org/pub/scm/linux...
[linux-block.git] / lib / zlib_dfltcc / dfltcc_deflate.h
CommitLineData
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 */
8int dfltcc_can_deflate(z_streamp strm);
9int dfltcc_deflate(z_streamp strm,
10 int flush,
11 block_state *result);
12void 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 */