13b005d3pjd/*
23b005d3pjd * CDDL HEADER START
33b005d3pjd *
43b005d3pjd * The contents of this file are subject to the terms of the
53b005d3pjd * Common Development and Distribution License (the "License").
63b005d3pjd * You may not use this file except in compliance with the License.
73b005d3pjd *
83b005d3pjd * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93b005d3pjd * or http://www.opensolaris.org/os/licensing.
103b005d3pjd * See the License for the specific language governing permissions
113b005d3pjd * and limitations under the License.
123b005d3pjd *
133b005d3pjd * When distributing Covered Code, include this CDDL HEADER in each
143b005d3pjd * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153b005d3pjd * If applicable, add the following below this CDDL HEADER, with the
163b005d3pjd * fields enclosed by brackets "[]" replaced with your own identifying
173b005d3pjd * information: Portions Copyright [yyyy] [name of copyright owner]
183b005d3pjd *
193b005d3pjd * CDDL HEADER END
203b005d3pjd */
213b005d3pjd
223b005d3pjd/*
233b005d3pjd * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
243b005d3pjd * Use is subject to license terms.
253b005d3pjd */
263b005d3pjd
273b005d3pjd#ifndef	_ZMOD_H
283b005d3pjd#define	_ZMOD_H
293b005d3pjd
303b005d3pjd#pragma ident	"%Z%%M%	%I%	%E% SMI"
313b005d3pjd
323b005d3pjd#ifdef	__cplusplus
333b005d3pjdextern "C" {
343b005d3pjd#endif
353b005d3pjd
363b005d3pjd/*
373b005d3pjd * zmod - RFC-1950-compatible decompression routines
383b005d3pjd *
393b005d3pjd * This file provides the public interfaces to zmod, an in-kernel RFC 1950
403b005d3pjd * decompression library.  More information about the implementation of these
413b005d3pjd * interfaces can be found in the usr/src/uts/common/zmod/ directory.
423b005d3pjd */
433b005d3pjd
443b005d3pjd#define	Z_OK		0
453b005d3pjd#define	Z_STREAM_END	1
463b005d3pjd#define	Z_NEED_DICT	2
473b005d3pjd#define	Z_ERRNO		(-1)
483b005d3pjd#define	Z_STREAM_ERROR	(-2)
493b005d3pjd#define	Z_DATA_ERROR	(-3)
503b005d3pjd#define	Z_MEM_ERROR	(-4)
513b005d3pjd#define	Z_BUF_ERROR	(-5)
523b005d3pjd#define	Z_VERSION_ERROR	(-6)
533b005d3pjd
543b005d3pjd#define	Z_NO_COMPRESSION	0
553b005d3pjd#define	Z_BEST_SPEED		1
563b005d3pjd#define	Z_BEST_COMPRESSION	9
573b005d3pjd#define	Z_DEFAULT_COMPRESSION	(-1)
583b005d3pjd
593b005d3pjdextern int z_uncompress(void *, size_t *, const void *, size_t);
603b005d3pjdextern int z_compress(void *, size_t *, const void *, size_t);
613b005d3pjdextern int z_compress_level(void *, size_t *, const void *, size_t, int);
623b005d3pjdextern const char *z_strerror(int);
633b005d3pjd
643b005d3pjd#ifdef	__cplusplus
653b005d3pjd}
663b005d3pjd#endif
673b005d3pjd
683b005d3pjd#endif	/* _ZMOD_H */
69