1 | /* $Xorg: xcmiscstr.h,v 1.4 2001/02/09 02:03:24 xorgcvs Exp $ */
|
---|
2 | /*
|
---|
3 |
|
---|
4 | Copyright 1993, 1994, 1998 The Open Group
|
---|
5 |
|
---|
6 | Permission to use, copy, modify, distribute, and sell this software and its
|
---|
7 | documentation for any purpose is hereby granted without fee, provided that
|
---|
8 | the above copyright notice appear in all copies and that both that
|
---|
9 | copyright notice and this permission notice appear in supporting
|
---|
10 | documentation.
|
---|
11 |
|
---|
12 | The above copyright notice and this permission notice shall be included in
|
---|
13 | all copies or substantial portions of the Software.
|
---|
14 |
|
---|
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
---|
18 | OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
---|
19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
---|
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
---|
21 |
|
---|
22 | Except as contained in this notice, the name of The Open Group 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 The Open Group.
|
---|
25 |
|
---|
26 | */
|
---|
27 | /* $XFree86$ */
|
---|
28 |
|
---|
29 | #ifndef _XCMISCSTR_H_
|
---|
30 | #define _XCMISCSTR_H_
|
---|
31 |
|
---|
32 | #define X_XCMiscGetVersion 0
|
---|
33 | #define X_XCMiscGetXIDRange 1
|
---|
34 | #define X_XCMiscGetXIDList 2
|
---|
35 |
|
---|
36 | #define XCMiscNumberEvents 0
|
---|
37 |
|
---|
38 | #define XCMiscNumberErrors 0
|
---|
39 |
|
---|
40 | #define XCMiscMajorVersion 1
|
---|
41 | #define XCMiscMinorVersion 1
|
---|
42 |
|
---|
43 | #define XCMiscExtensionName "XC-MISC"
|
---|
44 |
|
---|
45 | typedef struct {
|
---|
46 | CARD8 reqType; /* always XCMiscCode */
|
---|
47 | CARD8 miscReqType; /* always X_XCMiscGetVersion */
|
---|
48 | CARD16 length B16;
|
---|
49 | CARD16 majorVersion B16;
|
---|
50 | CARD16 minorVersion B16;
|
---|
51 | } xXCMiscGetVersionReq;
|
---|
52 | #define sz_xXCMiscGetVersionReq 8
|
---|
53 |
|
---|
54 | typedef struct {
|
---|
55 | BYTE type; /* X_Reply */
|
---|
56 | CARD8 pad0;
|
---|
57 | CARD16 sequenceNumber B16;
|
---|
58 | CARD32 length B32;
|
---|
59 | CARD16 majorVersion B16;
|
---|
60 | CARD16 minorVersion B16;
|
---|
61 | CARD32 pad1 B32;
|
---|
62 | CARD32 pad2 B32;
|
---|
63 | CARD32 pad3 B32;
|
---|
64 | CARD32 pad4 B32;
|
---|
65 | CARD32 pad5 B32;
|
---|
66 | } xXCMiscGetVersionReply;
|
---|
67 | #define sz_xXCMiscGetVersionReply 32
|
---|
68 |
|
---|
69 | typedef struct {
|
---|
70 | CARD8 reqType; /* always XCMiscCode */
|
---|
71 | CARD8 miscReqType; /* always X_XCMiscGetXIDRange */
|
---|
72 | CARD16 length B16;
|
---|
73 | } xXCMiscGetXIDRangeReq;
|
---|
74 | #define sz_xXCMiscGetXIDRangeReq 4
|
---|
75 |
|
---|
76 | typedef struct {
|
---|
77 | BYTE type; /* X_Reply */
|
---|
78 | CARD8 pad0;
|
---|
79 | CARD16 sequenceNumber B16;
|
---|
80 | CARD32 length B32;
|
---|
81 | CARD32 start_id B32;
|
---|
82 | CARD32 count B32;
|
---|
83 | CARD32 pad1 B32;
|
---|
84 | CARD32 pad2 B32;
|
---|
85 | CARD32 pad3 B32;
|
---|
86 | CARD32 pad4 B32;
|
---|
87 | } xXCMiscGetXIDRangeReply;
|
---|
88 | #define sz_xXCMiscGetXIDRangeReply 32
|
---|
89 |
|
---|
90 | typedef struct {
|
---|
91 | CARD8 reqType; /* always XCMiscCode */
|
---|
92 | CARD8 miscReqType; /* always X_XCMiscGetXIDList */
|
---|
93 | CARD16 length B16;
|
---|
94 | CARD32 count B32; /* number of IDs requested */
|
---|
95 | } xXCMiscGetXIDListReq;
|
---|
96 | #define sz_xXCMiscGetXIDListReq 8
|
---|
97 |
|
---|
98 | typedef struct {
|
---|
99 | BYTE type; /* X_Reply */
|
---|
100 | CARD8 pad0;
|
---|
101 | CARD16 sequenceNumber B16;
|
---|
102 | CARD32 length B32;
|
---|
103 | CARD32 count B32; /* number of IDs requested */
|
---|
104 | CARD32 pad1 B32;
|
---|
105 | CARD32 pad2 B32;
|
---|
106 | CARD32 pad3 B32;
|
---|
107 | CARD32 pad4 B32;
|
---|
108 | CARD32 pad5 B32;
|
---|
109 | } xXCMiscGetXIDListReply;
|
---|
110 | #define sz_xXCMiscGetXIDListReply 32
|
---|
111 |
|
---|
112 | #endif /* _XCMISCSTR_H_ */
|
---|