VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.3.0.0/xisb.h@ 25078

最後變更 在這個檔案從25078是 25078,由 vboxsync 提交於 15 年 前

Additions/x11/x11include: exported and set eol-style on new headers

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.4 KB
 
1/*
2 * Copyright (c) 1997 Metro Link Incorporated
3 *
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:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
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
20 * SOFTWARE.
21 *
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.
25 *
26 */
27/* $XFree86$ */
28
29#ifndef _xisb_H_
30#define _xisb_H_
31
32#include <unistd.h>
33
34/******************************************************************************
35 * Definitions
36 * structs, typedefs, #defines, enums
37 *****************************************************************************/
38
39typedef struct _XISBuffer
40{
41 int fd;
42 int trace;
43 int block_duration;
44 ssize_t current; /* bytes read */
45 ssize_t end;
46 ssize_t buffer_size;
47 unsigned char *buf;
48} XISBuffer;
49
50/******************************************************************************
51 * Declarations
52 * variables: use xisb_LOC in front
53 * of globals.
54 * put locals in the .c file.
55 *****************************************************************************/
56XISBuffer * XisbNew (int fd, ssize_t size);
57void XisbFree (XISBuffer *b);
58int XisbRead (XISBuffer *b);
59ssize_t XisbWrite (XISBuffer *b, unsigned char *msg, ssize_t len);
60void XisbTrace (XISBuffer *b, int trace);
61void XisbBlockDuration (XISBuffer *b, int block_duration);
62
63/*
64 * DO NOT PUT ANYTHING AFTER THIS ENDIF
65 */
66#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette