diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-07-29 20:01:23 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-08-07 19:15:59 +0200 |
commit | 05235802f7ae8fb1df952d28629dea26af5f1436 (patch) | |
tree | 68000e8b17e2d5e590616d26d71dc6f26108ccfc /source4/lib/zlib/contrib/infback9/infback9.h | |
parent | 8275d511bc3ea79a14a4704b7d914222adc2d321 (diff) | |
download | samba-05235802f7ae8fb1df952d28629dea26af5f1436.tar.gz samba-05235802f7ae8fb1df952d28629dea26af5f1436.tar.bz2 samba-05235802f7ae8fb1df952d28629dea26af5f1436.zip |
import of zlib-1.2.3
We want to use zlib for the mszip ndr (de)compression
later, we'll need to add some new functions to zlib.
metze
(This used to be commit 65c9e91a1bb24851a030a304d011558562cc50d6)
Diffstat (limited to 'source4/lib/zlib/contrib/infback9/infback9.h')
-rw-r--r-- | source4/lib/zlib/contrib/infback9/infback9.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/source4/lib/zlib/contrib/infback9/infback9.h b/source4/lib/zlib/contrib/infback9/infback9.h new file mode 100644 index 0000000000..1073c0a38e --- /dev/null +++ b/source4/lib/zlib/contrib/infback9/infback9.h @@ -0,0 +1,37 @@ +/* infback9.h -- header for using inflateBack9 functions + * Copyright (C) 2003 Mark Adler + * For conditions of distribution and use, see copyright notice in zlib.h + */ + +/* + * This header file and associated patches provide a decoder for PKWare's + * undocumented deflate64 compression method (method 9). Use with infback9.c, + * inftree9.h, inftree9.c, and inffix9.h. These patches are not supported. + * This should be compiled with zlib, since it uses zutil.h and zutil.o. + * This code has not yet been tested on 16-bit architectures. See the + * comments in zlib.h for inflateBack() usage. These functions are used + * identically, except that there is no windowBits parameter, and a 64K + * window must be provided. Also if int's are 16 bits, then a zero for + * the third parameter of the "out" function actually means 65536UL. + * zlib.h must be included before this header file. + */ + +#ifdef __cplusplus +extern "C" { +#endif + +ZEXTERN int ZEXPORT inflateBack9 OF((z_stream FAR *strm, + in_func in, void FAR *in_desc, + out_func out, void FAR *out_desc)); +ZEXTERN int ZEXPORT inflateBack9End OF((z_stream FAR *strm)); +ZEXTERN int ZEXPORT inflateBack9Init_ OF((z_stream FAR *strm, + unsigned char FAR *window, + const char *version, + int stream_size)); +#define inflateBack9Init(strm, window) \ + inflateBack9Init_((strm), (window), \ + ZLIB_VERSION, sizeof(z_stream)) + +#ifdef __cplusplus +} +#endif |