2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@login.dkuug.dk> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
9 * $FreeBSD: src/sys/sys/inflate.h,v 1.11 1999/12/29 04:24:42 peter Exp $
10 * $DragonFly: src/sys/sys/inflate.h,v 1.3 2003/08/20 07:31:21 rob Exp $
13 #ifndef _SYS_INFLATE_H_
14 #define _SYS_INFLATE_H_
16 #if defined(_KERNEL) || defined(KZIP)
20 #define GZ_WSIZE 0x8000
23 * Global variables used by inflate and friends.
24 * This structure is used in order to make inflate() reentrant.
29 /* This pointer is passed along to the two functions below */
32 /* Fetch next character to be uncompressed */
33 int (*gz_input) (void *);
35 /* Dispose of uncompressed characters */
36 int (*gz_output) (void *, u_char *, u_long);
39 u_long gz_bb; /* bit buffer */
40 unsigned gz_bk; /* bits in bit buffer */
41 unsigned gz_hufts; /* track memory usage */
42 struct huft *gz_fixed_tl; /* must init to NULL !! */
43 struct huft *gz_fixed_td;
50 int inflate (struct inflate *);
52 #endif /* _KERNEL || KZIP */
54 #endif /* ! _SYS_INFLATE_H_ */