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