1/*
2 * Author:      William Chia-Wei Cheng (bill.cheng@acm.org)
3 *
4 * Copyright (C) 2001-2009, William Chia-Wei Cheng.
5 *
6 * This file may be distributed under the terms of the Q Public License
7 * as defined by Trolltech AS of Norway and appearing in the file
8 * LICENSE.QPL included in the packaging of this file.
9 *
10 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING
11 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
12 * PURPOSE.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
13 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
14 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
15 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
16 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 *
18 * @(#)$Header: /mm2/home/cvs/bc-src/tgif/z_intrf.e,v 1.7 2011/05/16 16:22:00 william Exp $
19 */
20
21#ifndef _Z_INTRF_E_
22#define _Z_INTRF_E_
23
24#ifdef _INCLUDE_FROM_Z_INTRF_C_
25#undef extern
26#define extern
27#endif /*_INCLUDE_FROM_Z_INTRF_C_*/
28
29extern int	HasZlibSupport ARGS_DECL((void));
30extern int	DeflateFile ARGS_DECL((char *fname, char *deflated_fname));
31extern int	DoDeflate ARGS_DECL((FILE *in_fp, char *in_buf, int bytes_left,
32				FILE *out_fp, int use_def_compression,
33				int use_byte_stuffing, int *pn_rc));
34extern int	DoInflate ARGS_DECL((char *in_buf, int bytes_left,
35				FILE *out_fp, int use_byte_unstuffing,
36				int *pn_rc));
37extern void	ZlibError ARGS_DECL((int status, int deflate));
38
39#ifdef _INCLUDE_FROM_Z_INTRF_C_
40#undef extern
41#ifndef _NO_RECURSIVE_EXTERN
42#define extern extern
43#endif /* ~_NO_RECURSIVE_EXTERN */
44#endif /*_INCLUDE_FROM_Z_INTRF_C_*/
45
46#endif /*_Z_INTRF_E_*/
47