Blame view

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