| // SPDX-License-Identifier: Zlib |
| void dfltcc_reset_inflate_state(z_streamp strm); |
| int dfltcc_can_inflate(z_streamp strm); |
| dfltcc_inflate_action dfltcc_inflate(z_streamp strm, |
| #define INFLATE_RESET_HOOK(strm) \ |
| dfltcc_reset_inflate_state((strm)) |
| #define INFLATE_TYPEDO_HOOK(strm, flush) \ |
| if (dfltcc_can_inflate((strm))) { \ |
| dfltcc_inflate_action action; \ |
| action = dfltcc_inflate((strm), (flush), &ret); \ |
| if (action == DFLTCC_INFLATE_CONTINUE) \ |
| else if (action == DFLTCC_INFLATE_BREAK) \ |
| #define INFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_inflate((strm))) |
| #define INFLATE_NEED_UPDATEWINDOW(strm) (!dfltcc_can_inflate((strm))) |
| #endif /* DFLTCC_DEFLATE_H */ |