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