1 | /* $XFree86: xc/include/extensions/xf86mscstr.h,v 3.12 2002/11/20 04:04:56 dawes Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * Copyright (c) 1995, 1996 The XFree86 Project, Inc
|
---|
5 | */
|
---|
6 |
|
---|
7 | /* THIS IS NOT AN X CONSORTIUM STANDARD */
|
---|
8 |
|
---|
9 | #ifndef _XF86MISCSTR_H_
|
---|
10 | #define _XF86MISCSTR_H_
|
---|
11 |
|
---|
12 | #include <X11/extensions/xf86misc.h>
|
---|
13 |
|
---|
14 | #define XF86MISCNAME "XFree86-Misc"
|
---|
15 |
|
---|
16 | #define XF86MISC_MAJOR_VERSION 0 /* current version numbers */
|
---|
17 | #define XF86MISC_MINOR_VERSION 7
|
---|
18 |
|
---|
19 | typedef struct _XF86MiscQueryVersion {
|
---|
20 | CARD8 reqType; /* always XF86MiscReqCode */
|
---|
21 | CARD8 xf86miscReqType; /* always X_XF86MiscQueryVersion */
|
---|
22 | CARD16 length B16;
|
---|
23 | } xXF86MiscQueryVersionReq;
|
---|
24 | #define sz_xXF86MiscQueryVersionReq 4
|
---|
25 |
|
---|
26 | typedef struct {
|
---|
27 | BYTE type; /* X_Reply */
|
---|
28 | BOOL pad1;
|
---|
29 | CARD16 sequenceNumber B16;
|
---|
30 | CARD32 length B32;
|
---|
31 | CARD16 majorVersion B16; /* major version of XFree86-Misc */
|
---|
32 | CARD16 minorVersion B16; /* minor version of XFree86-Misc */
|
---|
33 | CARD32 pad2 B32;
|
---|
34 | CARD32 pad3 B32;
|
---|
35 | CARD32 pad4 B32;
|
---|
36 | CARD32 pad5 B32;
|
---|
37 | CARD32 pad6 B32;
|
---|
38 | } xXF86MiscQueryVersionReply;
|
---|
39 | #define sz_xXF86MiscQueryVersionReply 32
|
---|
40 |
|
---|
41 | #ifdef _XF86MISC_SAVER_COMPAT_
|
---|
42 | typedef struct _XF86MiscGetSaver {
|
---|
43 | CARD8 reqType; /* always XF86MiscReqCode */
|
---|
44 | CARD8 xf86miscReqType; /* always X_XF86MiscGetSaver */
|
---|
45 | CARD16 length B16;
|
---|
46 | CARD16 screen B16;
|
---|
47 | CARD16 pad B16;
|
---|
48 | } xXF86MiscGetSaverReq;
|
---|
49 | #define sz_xXF86MiscGetSaverReq 8
|
---|
50 |
|
---|
51 | typedef struct _XF86MiscSetSaver {
|
---|
52 | CARD8 reqType; /* always XF86MiscReqCode */
|
---|
53 | CARD8 xf86miscReqType; /* always X_XF86MiscSetSaver */
|
---|
54 | CARD16 length B16;
|
---|
55 | CARD16 screen B16;
|
---|
56 | CARD16 pad B16;
|
---|
57 | CARD32 suspendTime B32;
|
---|
58 | CARD32 offTime B32;
|
---|
59 | } xXF86MiscSetSaverReq;
|
---|
60 | #define sz_xXF86MiscSetSaverReq 16
|
---|
61 |
|
---|
62 | typedef struct {
|
---|
63 | BYTE type;
|
---|
64 | BOOL pad1;
|
---|
65 | CARD16 sequenceNumber B16;
|
---|
66 | CARD32 length B32;
|
---|
67 | CARD32 suspendTime B32;
|
---|
68 | CARD32 offTime B32;
|
---|
69 | CARD32 pad2 B32;
|
---|
70 | CARD32 pad3 B32;
|
---|
71 | CARD32 pad4 B32;
|
---|
72 | CARD32 pad5 B32;
|
---|
73 | } xXF86MiscGetSaverReply;
|
---|
74 | #define sz_xXF86MiscGetSaverReply 32
|
---|
75 | #endif
|
---|
76 |
|
---|
77 | typedef struct _XF86MiscGetMouseSettings {
|
---|
78 | CARD8 reqType; /* always XF86MiscReqCode */
|
---|
79 | CARD8 xf86miscReqType; /* always X_XF86MiscGetMouseSettings */
|
---|
80 | CARD16 length B16;
|
---|
81 | } xXF86MiscGetMouseSettingsReq;
|
---|
82 | #define sz_xXF86MiscGetMouseSettingsReq 4
|
---|
83 |
|
---|
84 | typedef struct {
|
---|
85 | BYTE type; /* X_Reply */
|
---|
86 | BOOL pad1;
|
---|
87 | CARD16 sequenceNumber B16;
|
---|
88 | CARD32 length B32;
|
---|
89 | CARD32 mousetype B32;
|
---|
90 | CARD32 baudrate B32;
|
---|
91 | CARD32 samplerate B32;
|
---|
92 | CARD32 resolution B32;
|
---|
93 | CARD32 buttons B32;
|
---|
94 | BOOL emulate3buttons;
|
---|
95 | BOOL chordmiddle;
|
---|
96 | CARD16 pad2 B16;
|
---|
97 | CARD32 emulate3timeout B32;
|
---|
98 | CARD32 flags B32;
|
---|
99 | CARD32 devnamelen B32; /* strlen(device)+1 */
|
---|
100 | } xXF86MiscGetMouseSettingsReply;
|
---|
101 | #define sz_xXF86MiscGetMouseSettingsReply 44
|
---|
102 |
|
---|
103 | typedef struct _XF86MiscGetKbdSettings {
|
---|
104 | CARD8 reqType; /* always XF86MiscReqCode */
|
---|
105 | CARD8 xf86miscReqType; /* always X_XF86MiscGetKbdSettings */
|
---|
106 | CARD16 length B16;
|
---|
107 | } xXF86MiscGetKbdSettingsReq;
|
---|
108 | #define sz_xXF86MiscGetKbdSettingsReq 4
|
---|
109 |
|
---|
110 | typedef struct {
|
---|
111 | BYTE type; /* X_Reply */
|
---|
112 | BOOL pad1;
|
---|
113 | CARD16 sequenceNumber B16;
|
---|
114 | CARD32 length B32;
|
---|
115 | CARD32 kbdtype B32;
|
---|
116 | CARD32 rate B32;
|
---|
117 | CARD32 delay B32;
|
---|
118 | BOOL servnumlock;
|
---|
119 | BOOL pad2;
|
---|
120 | CARD16 pad3 B16;
|
---|
121 | CARD32 pad4 B32;
|
---|
122 | CARD32 pad5 B32;
|
---|
123 | } xXF86MiscGetKbdSettingsReply;
|
---|
124 | #define sz_xXF86MiscGetKbdSettingsReply 32
|
---|
125 |
|
---|
126 | typedef struct _XF86MiscSetMouseSettings {
|
---|
127 | CARD8 reqType; /* always XF86MiscReqCode */
|
---|
128 | CARD8 xf86miscReqType; /* always X_XF86MiscSetMouseSettings */
|
---|
129 | CARD16 length B16;
|
---|
130 | CARD32 mousetype B32;
|
---|
131 | CARD32 baudrate B32;
|
---|
132 | CARD32 samplerate B32;
|
---|
133 | CARD32 resolution B32;
|
---|
134 | CARD32 buttons B32;
|
---|
135 | BOOL emulate3buttons;
|
---|
136 | BOOL chordmiddle;
|
---|
137 | CARD16 devnamelen B16;
|
---|
138 | CARD32 emulate3timeout B32;
|
---|
139 | CARD32 flags B32;
|
---|
140 | } xXF86MiscSetMouseSettingsReq;
|
---|
141 | #define sz_xXF86MiscSetMouseSettingsReq 36
|
---|
142 |
|
---|
143 | typedef struct _XF86MiscSetKbdSettings {
|
---|
144 | CARD8 reqType; /* always XF86MiscReqCode */
|
---|
145 | CARD8 xf86miscReqType; /* always X_XF86MiscSetKbdSettings */
|
---|
146 | CARD16 length B16;
|
---|
147 | CARD32 kbdtype B32;
|
---|
148 | CARD32 rate B32;
|
---|
149 | CARD32 delay B32;
|
---|
150 | BOOL servnumlock;
|
---|
151 | BOOL pad1;
|
---|
152 | CARD16 pad2 B16;
|
---|
153 | } xXF86MiscSetKbdSettingsReq;
|
---|
154 | #define sz_xXF86MiscSetKbdSettingsReq 20
|
---|
155 |
|
---|
156 | typedef struct _XF86MiscSetGrabKeysState {
|
---|
157 | CARD8 reqType; /* always XF86MiscReqCode */
|
---|
158 | CARD8 xf86miscReqType; /* always X_XF86MiscSetKbdSettings */
|
---|
159 | CARD16 length B16;
|
---|
160 | BOOL enable;
|
---|
161 | BOOL pad1;
|
---|
162 | CARD16 pad2 B16;
|
---|
163 | } xXF86MiscSetGrabKeysStateReq;
|
---|
164 | #define sz_xXF86MiscSetGrabKeysStateReq 8
|
---|
165 |
|
---|
166 | typedef struct {
|
---|
167 | BYTE type;
|
---|
168 | BOOL pad1;
|
---|
169 | CARD16 sequenceNumber B16;
|
---|
170 | CARD32 length B32;
|
---|
171 | CARD32 status B32;
|
---|
172 | CARD32 pad2 B32;
|
---|
173 | CARD32 pad3 B32;
|
---|
174 | CARD32 pad4 B32;
|
---|
175 | CARD32 pad5 B32;
|
---|
176 | CARD32 pad6 B32;
|
---|
177 | } xXF86MiscSetGrabKeysStateReply;
|
---|
178 | #define sz_xXF86MiscSetGrabKeysStateReply 32
|
---|
179 |
|
---|
180 | typedef struct _XF86MiscSetClientVersion {
|
---|
181 | CARD8 reqType; /* always XF86MiscReqCode */
|
---|
182 | CARD8 xf86miscReqType;
|
---|
183 | CARD16 length B16;
|
---|
184 | CARD16 major B16;
|
---|
185 | CARD16 minor B16;
|
---|
186 | } xXF86MiscSetClientVersionReq;
|
---|
187 | #define sz_xXF86MiscSetClientVersionReq 8
|
---|
188 |
|
---|
189 | typedef struct _XF86MiscGetFilePaths {
|
---|
190 | CARD8 reqType; /* always XF86MiscReqCode */
|
---|
191 | CARD8 xf86miscReqType; /* always X_XF86MiscGetFilePaths */
|
---|
192 | CARD16 length B16;
|
---|
193 | } xXF86MiscGetFilePathsReq;
|
---|
194 | #define sz_xXF86MiscGetFilePathsReq 4
|
---|
195 |
|
---|
196 | typedef struct {
|
---|
197 | BYTE type; /* X_Reply */
|
---|
198 | BOOL pad1;
|
---|
199 | CARD16 sequenceNumber B16;
|
---|
200 | CARD32 length B32;
|
---|
201 | CARD16 configlen B16;
|
---|
202 | CARD16 modulelen B16;
|
---|
203 | CARD16 loglen B16;
|
---|
204 | CARD16 pad2 B16;
|
---|
205 | CARD32 pad3 B32;
|
---|
206 | CARD32 pad4 B32;
|
---|
207 | CARD32 pad5 B32;
|
---|
208 | CARD32 pad6 B32;
|
---|
209 | } xXF86MiscGetFilePathsReply;
|
---|
210 | #define sz_xXF86MiscGetFilePathsReply 32
|
---|
211 |
|
---|
212 | #endif /* _XF86MISCSTR_H_ */
|
---|