defl_static.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (c) uzlib authors
  3. *
  4. * This software is provided 'as-is', without any express
  5. * or implied warranty. In no event will the authors be
  6. * held liable for any damages arising from the use of
  7. * this software.
  8. *
  9. * Permission is granted to anyone to use this software
  10. * for any purpose, including commercial applications,
  11. * and to alter it and redistribute it freely, subject to
  12. * the following restrictions:
  13. *
  14. * 1. The origin of this software must not be
  15. * misrepresented; you must not claim that you
  16. * wrote the original software. If you use this
  17. * software in a product, an acknowledgment in
  18. * the product documentation would be appreciated
  19. * but is not required.
  20. *
  21. * 2. Altered source versions must be plainly marked
  22. * as such, and must not be misrepresented as
  23. * being the original software.
  24. *
  25. * 3. This notice may not be removed or altered from
  26. * any source distribution.
  27. */
  28. /* This files contains type declaration and prototypes for defl_static.c.
  29. They may be altered/distinct from the originals used in PuTTY source
  30. code. */
  31. struct Outbuf {
  32. unsigned char *outbuf;
  33. int outlen, outsize;
  34. unsigned long outbits;
  35. int noutbits;
  36. int comp_disabled;
  37. };
  38. void outbits(struct Outbuf *out, unsigned long bits, int nbits);
  39. void zlib_start_block(struct Outbuf *ctx);
  40. void zlib_finish_block(struct Outbuf *ctx);
  41. void zlib_literal(struct Outbuf *ectx, unsigned char c);
  42. void zlib_match(struct Outbuf *ectx, int distance, int len);