| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* infutil.h -- types and macros common to blocks and codes | 
 | 2 |  * Copyright (C) 1995-1998 Mark Adler | 
 | 3 |  * For conditions of distribution and use, see copyright notice in zlib.h  | 
 | 4 |  */ | 
 | 5 |  | 
 | 6 | /* WARNING: this file should *not* be used by applications. It is | 
 | 7 |    part of the implementation of the compression library and is | 
 | 8 |    subject to change. Applications should only use zlib.h. | 
 | 9 |  */ | 
 | 10 |  | 
 | 11 | #ifndef _INFUTIL_H | 
 | 12 | #define _INFUTIL_H | 
 | 13 |  | 
| Richard Purdie | 4f3865f | 2006-06-22 14:47:34 -0700 | [diff] [blame] | 14 | #include <linux/zlib.h> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 |  | 
 | 16 | /* memory allocation for inflation */ | 
 | 17 |  | 
 | 18 | struct inflate_workspace { | 
| Richard Purdie | 4f3865f | 2006-06-22 14:47:34 -0700 | [diff] [blame] | 19 | 	struct inflate_state inflate_state; | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | 	unsigned char working_window[1 << MAX_WBITS]; | 
 | 21 | }; | 
 | 22 |  | 
 | 23 | #define WS(z) ((struct inflate_workspace *)(z->workspace)) | 
 | 24 |  | 
 | 25 | #endif |