1 /***********************************************************************
2 *                                                                      *
3 *              This software is part of the zlib package               *
4 *       Copyright (c) 1996-1999 Jean-loup Gailly and Mark Adler        *
5 *                                                                      *
6 * This software is provided 'as-is', without any express or implied    *
7 * warranty. In no event will the authors be held liable for any        *
8 * damages arising from the use of this software.                       *
9 *                                                                      *
10 * Permission is granted to anyone to use this software for any         *
11 * purpose, including commercial applications, and to alter it and      *
12 * redistribute it freely, subject to the following restrictions:       *
13 *                                                                      *
14 *  1. The origin of this software must not be misrepresented;          *
15 *     you must not claim that you wrote the original software. If      *
16 *     you use this software in a product, an acknowledgment in the     *
17 *     product documentation would be appreciated but is not            *
18 *     required.                                                        *
19 *                                                                      *
20 *  2. Altered source versions must be plainly marked as such,          *
21 *     and must not be misrepresented as being the original             *
22 *     software.                                                        *
23 *                                                                      *
24 *  3. This notice may not be removed or altered from any source        *
25 *     distribution.                                                    *
26 *                                                                      *
27 * This software is provided "as-is", without any express or implied    *
28 * warranty. In no event will the authors be held liable for any damages*
29 * arising from the use of this software.                               *
30 *                                                                      *
31 * Permission is granted to anyone to use this software for any purpose,*
32 * including commercial applications, and to alter it and redistribute i*
33 * freely, subject to the following restrictions:                       *
34 *                                                                      *
35 * 1. The origin of this software must not be misrepresented; you must n*
36 *    claim that you wrote the original software. If you use this softwa*
37 *    in a product, an acknowledgment in the product documentation would*
38 *    be appreciated but is not required.                               *
39 *                                                                      *
40 * 2. Altered source versions must be plainly marked as such, and must n*
41 *    be misrepresented as being the original software.                 *
42 *                                                                      *
43 * 3. This notice may not be removed or altered from any source         *
44 *    distribution.                                                     *
45 *                                                                      *
46 *                           Julian R Seward                            *
47 *                                                                      *
48 ***********************************************************************/
49 #pragma prototyped
50 
51 /*
52  * sfio bzip discipline interface
53  */
54 
55 #ifndef _SFDCBZIP_H
56 #define _SFDCBZIP_H
57 
58 #include <sfdisc.h>
59 
60 #define SFBZ_VERIFY		0x0010
61 
62 #define SFBZ_HANDLE		SFDCEVENT('B','Z',1)
63 #define SFBZ_GETPOS		SFDCEVENT('B','Z',2)
64 #define SFBZ_SETPOS		SFDCEVENT('B','Z',3)
65 
66 #if _BLD_bz && defined(__EXPORT__)
67 #define extern		__EXPORT__
68 #endif
69 
70 extern int	sfdcbzip(Sfio_t*, int);
71 
72 #undef	extern
73 
74 #endif
75