]> git.sesse.net Git - rdpsrv/blob - Xserver/include/extensions/lbxbufstr.h
97f07a6aa5a2fd2b1d17398ac44d0a325c167881
[rdpsrv] / Xserver / include / extensions / lbxbufstr.h
1 /* $XConsortium: lbxbufstr.h /main/8 1996/11/15 21:33:20 rws $ */
2 /*
3  * Copyright 1988, 1989, 1990, 1994 Network Computing Devices, Inc.
4  *
5  * Permission to use, copy, modify, distribute, and sell this software and
6  * its documentation for any purpose is hereby granted without fee, provided
7  * that the above copyright notice appear in all copies and that both that
8  * copyright notice and this permission notice appear in supporting
9  * documentation, and that the name Network Computing Devices, Inc. not be
10  * used in advertising or publicity pertaining to distribution of this 
11  * software without specific, written prior permission.
12  * 
13  * THIS SOFTWARE IS PROVIDED `AS-IS'.  NETWORK COMPUTING DEVICES, INC.,
14  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT
15  * LIMITATION ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16  * PARTICULAR PURPOSE, OR NONINFRINGEMENT.  IN NO EVENT SHALL NETWORK
17  * COMPUTING DEVICES, INC., BE LIABLE FOR ANY DAMAGES WHATSOEVER, INCLUDING
18  * SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, INCLUDING LOSS OF USE,
19  * DATA, OR PROFITS, EVEN IF ADVISED OF THE POSSIBILITY THEREOF, AND
20  * REGARDLESS OF WHETHER IN AN ACTION IN CONTRACT, TORT OR NEGLIGENCE,
21  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
22  * SOFTWARE.
23  * 
24  */
25 #ifndef _BUFFERSTR_H_
26 #define _BUFFERSTR_H_
27
28 #include        "lbxbuf.h"
29
30 /*
31  * ZLIB Input/Output buffer
32  */
33 typedef struct _zlibbuffer {
34         char    *bufbase;
35         char    *bufend;
36         char    *bufptr;
37         int     bufcnt;
38 } ZlibBuffer;
39
40 #define BYTES_AVAIL(inbuf, len) \
41         (((inbuf)->bufcnt >= (len)) ? (inbuf)->bufptr : NULL)
42
43 #endif  /* _BUFFERSTR_H_ */