xref: /onnv-gate/usr/src/uts/common/sys/zmod.h (revision 0:68f95e015346)
1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate  * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
3*0Sstevel@tonic-gate  * Use is subject to license terms.
4*0Sstevel@tonic-gate  */
5*0Sstevel@tonic-gate 
6*0Sstevel@tonic-gate #ifndef	_ZMOD_H
7*0Sstevel@tonic-gate #define	_ZMOD_H
8*0Sstevel@tonic-gate 
9*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
10*0Sstevel@tonic-gate 
11*0Sstevel@tonic-gate #ifdef	__cplusplus
12*0Sstevel@tonic-gate extern "C" {
13*0Sstevel@tonic-gate #endif
14*0Sstevel@tonic-gate 
15*0Sstevel@tonic-gate /*
16*0Sstevel@tonic-gate  * zmod - RFC-1950-compatible decompression routines
17*0Sstevel@tonic-gate  *
18*0Sstevel@tonic-gate  * This file provides the public interfaces to zmod, an in-kernel RFC 1950
19*0Sstevel@tonic-gate  * decompression library.  More information about the implementation of these
20*0Sstevel@tonic-gate  * interfaces can be found in the usr/src/uts/common/zmod/ directory.
21*0Sstevel@tonic-gate  */
22*0Sstevel@tonic-gate 
23*0Sstevel@tonic-gate #define	Z_OK		0
24*0Sstevel@tonic-gate #define	Z_STREAM_END	1
25*0Sstevel@tonic-gate #define	Z_NEED_DICT	2
26*0Sstevel@tonic-gate #define	Z_ERRNO		(-1)
27*0Sstevel@tonic-gate #define	Z_STREAM_ERROR	(-2)
28*0Sstevel@tonic-gate #define	Z_DATA_ERROR	(-3)
29*0Sstevel@tonic-gate #define	Z_MEM_ERROR	(-4)
30*0Sstevel@tonic-gate #define	Z_BUF_ERROR	(-5)
31*0Sstevel@tonic-gate #define	Z_VERSION_ERROR	(-6)
32*0Sstevel@tonic-gate 
33*0Sstevel@tonic-gate extern int z_uncompress(void *, size_t *, const void *, size_t);
34*0Sstevel@tonic-gate extern const char *z_strerror(int);
35*0Sstevel@tonic-gate 
36*0Sstevel@tonic-gate #ifdef	__cplusplus
37*0Sstevel@tonic-gate }
38*0Sstevel@tonic-gate #endif
39*0Sstevel@tonic-gate 
40*0Sstevel@tonic-gate #endif	/* _ZMOD_H */
41