6ac1a6e379264843b3cf66a755b8c163703d984b
2 * Copyright (c) 1997 Metro Link Incorporated
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
19 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 * Except as contained in this notice, the name of the Metro Link shall not be
23 * used in advertising or otherwise to promote the sale, use or other dealings
24 * in this Software without prior written authorization from Metro Link.
33 /******************************************************************************
35 * structs, typedefs, #defines, enums
36 *****************************************************************************/
38 typedef struct _XISBuffer
{
42 ssize_t current
; /* bytes read */
48 /******************************************************************************
50 * variables: use xisb_LOC in front
52 * put locals in the .c file.
53 *****************************************************************************/
54 extern _X_EXPORT XISBuffer
*XisbNew(int fd
, ssize_t size
);
55 extern _X_EXPORT
void XisbFree(XISBuffer
* b
);
56 extern _X_EXPORT
int XisbRead(XISBuffer
* b
);
57 extern _X_EXPORT ssize_t
XisbWrite(XISBuffer
* b
, unsigned char *msg
,
59 extern _X_EXPORT
void XisbTrace(XISBuffer
* b
, int trace
);
60 extern _X_EXPORT
void XisbBlockDuration(XISBuffer
* b
, int block_duration
);
63 * DO NOT PUT ANYTHING AFTER THIS ENDIF