dfltcc_deflate.h 535 B

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