11.1Schristos/* infback9.h -- header for using inflateBack9 functions
21.1Schristos * Copyright (C) 2003 Mark Adler
31.1Schristos * For conditions of distribution and use, see copyright notice in zlib.h
41.1Schristos */
51.1Schristos
61.1Schristos/*
71.1Schristos * This header file and associated patches provide a decoder for PKWare's
81.1Schristos * undocumented deflate64 compression method (method 9).  Use with infback9.c,
91.1Schristos * inftree9.h, inftree9.c, and inffix9.h.  These patches are not supported.
101.1Schristos * This should be compiled with zlib, since it uses zutil.h and zutil.o.
111.1Schristos * This code has not yet been tested on 16-bit architectures.  See the
121.1Schristos * comments in zlib.h for inflateBack() usage.  These functions are used
131.1Schristos * identically, except that there is no windowBits parameter, and a 64K
141.1Schristos * window must be provided.  Also if int's are 16 bits, then a zero for
151.1Schristos * the third parameter of the "out" function actually means 65536UL.
161.1Schristos * zlib.h must be included before this header file.
171.1Schristos */
181.1Schristos
191.1Schristos#ifdef __cplusplus
201.1Schristosextern "C" {
211.1Schristos#endif
221.1Schristos
231.1.1.3SchristosZEXTERN int ZEXPORT inflateBack9(z_stream FAR *strm,
241.1.1.3Schristos                                 in_func in, void FAR *in_desc,
251.1.1.3Schristos                                 out_func out, void FAR *out_desc);
261.1.1.3SchristosZEXTERN int ZEXPORT inflateBack9End(z_stream FAR *strm);
271.1.1.3SchristosZEXTERN int ZEXPORT inflateBack9Init_(z_stream FAR *strm,
281.1.1.3Schristos                                      unsigned char FAR *window,
291.1.1.3Schristos                                      const char *version,
301.1.1.3Schristos                                      int stream_size);
311.1Schristos#define inflateBack9Init(strm, window) \
321.1Schristos        inflateBack9Init_((strm), (window), \
331.1Schristos        ZLIB_VERSION, sizeof(z_stream))
341.1Schristos
351.1Schristos#ifdef __cplusplus
361.1Schristos}
371.1Schristos#endif
38