infblock.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* infblock.h -- header to use infblock.c
  2. * Copyright (C) 1995-2002 Mark Adler
  3. * For conditions of distribution and use, see copyright notice in zlib.h
  4. */
  5. /* WARNING: this file should *not* be used by applications. It is
  6. part of the implementation of the compression library and is
  7. subject to change. Applications should only use zlib.h.
  8. */
  9. struct inflate_blocks_state;
  10. typedef struct inflate_blocks_state FAR inflate_blocks_statef;
  11. typedef uLong (*check_func) OF((uLong check, const Bytef *buf, uInt len)); // add by prife
  12. extern inflate_blocks_statef * inflate_blocks_new OF((
  13. z_streamp z,
  14. check_func c, /* check function */
  15. uInt w)); /* window size */
  16. extern int inflate_blocks OF((
  17. inflate_blocks_statef *,
  18. z_streamp ,
  19. int)); /* initial return code */
  20. extern void inflate_blocks_reset OF((
  21. inflate_blocks_statef *,
  22. z_streamp ,
  23. uLongf *)); /* check value on output */
  24. extern int inflate_blocks_free OF((
  25. inflate_blocks_statef *,
  26. z_streamp));
  27. extern void inflate_set_dictionary OF((
  28. inflate_blocks_statef *s,
  29. const Bytef *d, /* dictionary */
  30. uInt n)); /* dictionary length */
  31. extern int inflate_blocks_sync_point OF((
  32. inflate_blocks_statef *s));