xref: /netbsd-src/external/gpl3/gdb.old/dist/zlib/contrib/infback9/infback9.h (revision 4e00368f12e7278a94903a082dfe31dfebb70415)
1*4e00368fSchristos /* infback9.h -- header for using inflateBack9 functions
2*4e00368fSchristos  * Copyright (C) 2003 Mark Adler
3*4e00368fSchristos  * For conditions of distribution and use, see copyright notice in zlib.h
4*4e00368fSchristos  */
5*4e00368fSchristos 
6*4e00368fSchristos /*
7*4e00368fSchristos  * This header file and associated patches provide a decoder for PKWare's
8*4e00368fSchristos  * undocumented deflate64 compression method (method 9).  Use with infback9.c,
9*4e00368fSchristos  * inftree9.h, inftree9.c, and inffix9.h.  These patches are not supported.
10*4e00368fSchristos  * This should be compiled with zlib, since it uses zutil.h and zutil.o.
11*4e00368fSchristos  * This code has not yet been tested on 16-bit architectures.  See the
12*4e00368fSchristos  * comments in zlib.h for inflateBack() usage.  These functions are used
13*4e00368fSchristos  * identically, except that there is no windowBits parameter, and a 64K
14*4e00368fSchristos  * window must be provided.  Also if int's are 16 bits, then a zero for
15*4e00368fSchristos  * the third parameter of the "out" function actually means 65536UL.
16*4e00368fSchristos  * zlib.h must be included before this header file.
17*4e00368fSchristos  */
18*4e00368fSchristos 
19*4e00368fSchristos #ifdef __cplusplus
20*4e00368fSchristos extern "C" {
21*4e00368fSchristos #endif
22*4e00368fSchristos 
23*4e00368fSchristos ZEXTERN int ZEXPORT inflateBack9 OF((z_stream FAR *strm,
24*4e00368fSchristos                                     in_func in, void FAR *in_desc,
25*4e00368fSchristos                                     out_func out, void FAR *out_desc));
26*4e00368fSchristos ZEXTERN int ZEXPORT inflateBack9End OF((z_stream FAR *strm));
27*4e00368fSchristos ZEXTERN int ZEXPORT inflateBack9Init_ OF((z_stream FAR *strm,
28*4e00368fSchristos                                          unsigned char FAR *window,
29*4e00368fSchristos                                          const char *version,
30*4e00368fSchristos                                          int stream_size));
31*4e00368fSchristos #define inflateBack9Init(strm, window) \
32*4e00368fSchristos         inflateBack9Init_((strm), (window), \
33*4e00368fSchristos         ZLIB_VERSION, sizeof(z_stream))
34*4e00368fSchristos 
35*4e00368fSchristos #ifdef __cplusplus
36*4e00368fSchristos }
37*4e00368fSchristos #endif
38