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