1 | /* $XdotOrg: $ */
|
---|
2 | /************************************************************
|
---|
3 |
|
---|
4 | Copyright 2003 Sun Microsystems, Inc.
|
---|
5 |
|
---|
6 | All rights reserved.
|
---|
7 |
|
---|
8 | Permission is hereby granted, free of charge, to any person obtaining a
|
---|
9 | copy of this software and associated documentation files (the
|
---|
10 | "Software"), to deal in the Software without restriction, including
|
---|
11 | without limitation the rights to use, copy, modify, merge, publish,
|
---|
12 | distribute, and/or sell copies of the Software, and to permit persons
|
---|
13 | to whom the Software is furnished to do so, provided that the above
|
---|
14 | copyright notice(s) and this permission notice appear in all copies of
|
---|
15 | the Software and that both the above copyright notice(s) and this
|
---|
16 | permission notice appear in supporting documentation.
|
---|
17 |
|
---|
18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
---|
19 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
---|
20 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
---|
21 | OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
---|
22 | HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
|
---|
23 | INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
|
---|
24 | FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
---|
25 | NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
---|
26 | WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
---|
27 |
|
---|
28 | Except as contained in this notice, the name of a copyright holder
|
---|
29 | shall not be used in advertising or otherwise to promote the sale, use
|
---|
30 | or other dealings in this Software without prior written authorization
|
---|
31 | of the copyright holder.
|
---|
32 |
|
---|
33 | ************************************************************/
|
---|
34 |
|
---|
35 | #ifndef _XEVIESTR_H_
|
---|
36 | #define _XEVIESTR_H_
|
---|
37 |
|
---|
38 | #define XEVIENAME "XEVIE"
|
---|
39 |
|
---|
40 | #define XEVIE_MAJOR_VERSION 1
|
---|
41 | #define XEVIE_MINOR_VERSION 0
|
---|
42 |
|
---|
43 | #define X_XevieQueryVersion 0
|
---|
44 | #define X_XevieStart 1
|
---|
45 | #define X_XevieEnd 2
|
---|
46 | #define X_XevieSend 3
|
---|
47 | #define X_XevieSelectInput 4
|
---|
48 |
|
---|
49 | #define XevieNumberErrors 0
|
---|
50 |
|
---|
51 | typedef struct _XevieQueryVersion {
|
---|
52 | CARD8 reqType;
|
---|
53 | CARD8 xevieReqType;
|
---|
54 | CARD16 length B16;
|
---|
55 | CARD16 client_major_version B16;
|
---|
56 | CARD16 client_minor_version B16;
|
---|
57 | } xXevieQueryVersionReq;
|
---|
58 | #define sz_xXevieQueryVersionReq 8
|
---|
59 |
|
---|
60 | typedef struct {
|
---|
61 | BYTE type;
|
---|
62 | BOOL pad1;
|
---|
63 | CARD16 sequence_number B16;
|
---|
64 | CARD32 length B32;
|
---|
65 | CARD16 server_major_version B16;
|
---|
66 | CARD16 server_minor_version B16;
|
---|
67 | CARD32 pad2 B32;
|
---|
68 | CARD32 pad3 B32;
|
---|
69 | CARD32 pad4 B32;
|
---|
70 | CARD32 pad5 B32;
|
---|
71 | CARD32 pad6 B32;
|
---|
72 | } xXevieQueryVersionReply;
|
---|
73 | #define sz_xXevieQueryVersionReply 32
|
---|
74 |
|
---|
75 | typedef struct _XevieStart {
|
---|
76 | CARD8 reqType;
|
---|
77 | CARD8 xevieReqType;
|
---|
78 | CARD16 length B16;
|
---|
79 | CARD32 screen B32;
|
---|
80 | } xXevieStartReq;
|
---|
81 | #define sz_xXevieStartReq 8
|
---|
82 |
|
---|
83 | typedef struct {
|
---|
84 | BYTE type;
|
---|
85 | BOOL pad1;
|
---|
86 | CARD16 sequence_number B16;
|
---|
87 | CARD32 length B32;
|
---|
88 | CARD32 pad2 B32;
|
---|
89 | CARD32 pad3 B32;
|
---|
90 | CARD32 pad4 B32;
|
---|
91 | CARD32 pad5 B32;
|
---|
92 | CARD32 pad6 B32;
|
---|
93 | CARD32 pad7 B32;
|
---|
94 | } xXevieStartReply;
|
---|
95 | #define sz_xXevieStartReply 32
|
---|
96 |
|
---|
97 | typedef struct _XevieEnd {
|
---|
98 | CARD8 reqType;
|
---|
99 | CARD8 xevieReqType;
|
---|
100 | CARD16 length B16;
|
---|
101 | CARD32 cmap B32;
|
---|
102 | } xXevieEndReq;
|
---|
103 | #define sz_xXevieEndReq 8
|
---|
104 |
|
---|
105 | typedef struct {
|
---|
106 | BYTE type; /* X_Reply */
|
---|
107 | BOOL pad1;
|
---|
108 | CARD16 sequence_number B16;
|
---|
109 | CARD32 length B32;
|
---|
110 | CARD32 pad2 B32;
|
---|
111 | CARD32 pad3 B32;
|
---|
112 | CARD32 pad4 B32;
|
---|
113 | CARD32 pad5 B32;
|
---|
114 | CARD32 pad6 B32;
|
---|
115 | CARD32 pad7 B32;
|
---|
116 | } xXevieEndReply;
|
---|
117 | #define sz_xXevieEndReply 32
|
---|
118 |
|
---|
119 | typedef struct _XevieSend {
|
---|
120 | CARD8 reqType;
|
---|
121 | CARD8 xevieReqType;
|
---|
122 | CARD16 length B16;
|
---|
123 | xEvent event;
|
---|
124 | CARD32 dataType B32;
|
---|
125 | } xXevieSendReq;
|
---|
126 | #define sz_xXevieSendReq 104
|
---|
127 |
|
---|
128 | typedef struct {
|
---|
129 | BYTE type;
|
---|
130 | BOOL pad1;
|
---|
131 | CARD16 sequence_number B16;
|
---|
132 | CARD32 length B32;
|
---|
133 | CARD32 pad2 B32;
|
---|
134 | CARD32 pad3 B32;
|
---|
135 | CARD32 pad4 B32;
|
---|
136 | CARD32 pad5 B32;
|
---|
137 | CARD32 pad6 B32;
|
---|
138 | CARD32 pad7 B32;
|
---|
139 | } xXevieSendReply;
|
---|
140 | #define sz_xXevieSendReply 32
|
---|
141 |
|
---|
142 | typedef struct _XevieSelectInput {
|
---|
143 | CARD8 reqType;
|
---|
144 | CARD8 xevieReqType;
|
---|
145 | CARD16 length B16;
|
---|
146 | CARD32 event_mask B32;
|
---|
147 | } xXevieSelectInputReq;
|
---|
148 | #define sz_xXevieSelectInputReq 8
|
---|
149 |
|
---|
150 | typedef struct {
|
---|
151 | BYTE type;
|
---|
152 | BOOL pad1;
|
---|
153 | CARD16 sequence_number B16;
|
---|
154 | CARD32 length B32;
|
---|
155 | CARD32 pad2 B32;
|
---|
156 | CARD32 pad3 B32;
|
---|
157 | CARD32 pad4 B32;
|
---|
158 | CARD32 pad5 B32;
|
---|
159 | CARD32 pad6 B32;
|
---|
160 | CARD32 pad7 B32;
|
---|
161 | } xXevieSelectInputReply;
|
---|
162 | #define sz_xXevieSelectInputReply 32
|
---|
163 |
|
---|
164 | #endif /* } _XEVIESTR_H_ */
|
---|
165 |
|
---|