| 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 | |
| 29 | /* This files contains type declaration and prototypes for defl_static.c. |
| 30 | They may be altered/distinct from the originals used in PuTTY source |
| 31 | code. */ |
| 32 | |
| 33 | struct Outbuf { |
| 34 | unsigned char *outbuf; |
| 35 | int outlen, outsize; |
| 36 | unsigned long outbits; |
| 37 | int noutbits; |
| 38 | int comp_disabled; |
| 39 | }; |
| 40 | |
| 41 | void outbits(struct Outbuf *out, unsigned long bits, int nbits); |
| 42 | void zlib_start_block(struct Outbuf *ctx); |
| 43 | void zlib_finish_block(struct Outbuf *ctx); |
| 44 | void zlib_literal(struct Outbuf *ectx, unsigned char c); |
| 45 | void zlib_match(struct Outbuf *ectx, int distance, int len); |
| 46 | |