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