22 lines · c
1// SPDX-License-Identifier: Zlib2#ifndef DFLTCC_DEFLATE_H3#define DFLTCC_DEFLATE_H4 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_deflate18 19#define DEFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_deflate((strm)))20 21#endif /* DFLTCC_DEFLATE_H */22