assassinlike commited on
Commit
35d7c62
·
verified ·
1 Parent(s): 145c8c4

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. data/miniconda3/include/X11/ICE/ICE.h +101 -0
  2. data/miniconda3/include/X11/ICE/ICEconn.h +250 -0
  3. data/miniconda3/include/X11/ICE/ICElib.h +431 -0
  4. data/miniconda3/include/X11/ICE/ICEmsg.h +306 -0
  5. data/miniconda3/include/X11/ICE/ICEproto.h +175 -0
  6. data/miniconda3/include/X11/ICE/ICEutil.h +124 -0
  7. data/miniconda3/include/X11/SM/SM.h +128 -0
  8. data/miniconda3/include/X11/SM/SMlib.h +543 -0
  9. data/miniconda3/include/X11/SM/SMproto.h +206 -0
  10. data/miniconda3/include/X11/extensions/EVI.h +36 -0
  11. data/miniconda3/include/X11/extensions/EVIproto.h +96 -0
  12. data/miniconda3/include/X11/extensions/MITMisc.h +54 -0
  13. data/miniconda3/include/X11/extensions/XEVI.h +61 -0
  14. data/miniconda3/include/X11/extensions/XI.h +308 -0
  15. data/miniconda3/include/X11/extensions/XI2.h +259 -0
  16. data/miniconda3/include/X11/extensions/XI2proto.h +1169 -0
  17. data/miniconda3/include/X11/extensions/XInput.h +1277 -0
  18. data/miniconda3/include/X11/extensions/XInput2.h +761 -0
  19. data/miniconda3/include/X11/extensions/XKB.h +786 -0
  20. data/miniconda3/include/X11/extensions/XKBsrv.h +1184 -0
  21. data/miniconda3/include/X11/extensions/XLbx.h +50 -0
  22. data/miniconda3/include/X11/extensions/XResproto.h +227 -0
  23. data/miniconda3/include/X11/extensions/XShm.h +135 -0
  24. data/miniconda3/include/X11/extensions/XTest.h +144 -0
  25. data/miniconda3/include/X11/extensions/Xag.h +90 -0
  26. data/miniconda3/include/X11/extensions/Xcup.h +58 -0
  27. data/miniconda3/include/X11/extensions/Xdbe.h +138 -0
  28. data/miniconda3/include/X11/extensions/Xge.h +57 -0
  29. data/miniconda3/include/X11/extensions/Xinerama.h +74 -0
  30. data/miniconda3/include/X11/extensions/Xrender.h +1058 -0
  31. data/miniconda3/include/X11/extensions/Xv.h +128 -0
  32. data/miniconda3/include/X11/extensions/XvMC.h +138 -0
  33. data/miniconda3/include/X11/extensions/XvMCproto.h +226 -0
  34. data/miniconda3/include/X11/extensions/applewmconst.h +84 -0
  35. data/miniconda3/include/X11/extensions/applewmproto.h +293 -0
  36. data/miniconda3/include/X11/extensions/bigreqsproto.h +67 -0
  37. data/miniconda3/include/X11/extensions/composite.h +71 -0
  38. data/miniconda3/include/X11/extensions/cupproto.h +105 -0
  39. data/miniconda3/include/X11/extensions/dmx.h +68 -0
  40. data/miniconda3/include/X11/extensions/dpmsconst.h +46 -0
  41. data/miniconda3/include/X11/extensions/dpmsproto.h +201 -0
  42. data/miniconda3/include/X11/extensions/dri2proto.h +357 -0
  43. data/miniconda3/include/X11/extensions/geproto.h +85 -0
  44. data/miniconda3/include/X11/extensions/lbx.h +73 -0
  45. data/miniconda3/include/X11/extensions/lbxproto.h +975 -0
  46. data/miniconda3/include/X11/extensions/mitmiscconst.h +38 -0
  47. data/miniconda3/include/X11/extensions/mitmiscproto.h +68 -0
  48. data/miniconda3/include/X11/extensions/multibufconst.h +83 -0
  49. data/miniconda3/include/X11/extensions/multibufproto.h +295 -0
  50. data/miniconda3/include/X11/extensions/panoramiXext.h +85 -0
data/miniconda3/include/X11/ICE/ICE.h ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /******************************************************************************
2
+
3
+
4
+ Copyright 1993, 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
+ Author: Ralph Mor, X Consortium
27
+
28
+ ******************************************************************************/
29
+
30
+ #ifndef _ICE_H_
31
+ #define _ICE_H_
32
+
33
+ /*
34
+ * Protocol Version
35
+ */
36
+
37
+ #define IceProtoMajor 1
38
+ #define IceProtoMinor 0
39
+
40
+
41
+ /*
42
+ * Byte Order
43
+ */
44
+
45
+ #define IceLSBfirst 0
46
+ #define IceMSBfirst 1
47
+
48
+
49
+ /*
50
+ * ICE minor opcodes
51
+ */
52
+
53
+ #define ICE_Error 0
54
+ #define ICE_ByteOrder 1
55
+ #define ICE_ConnectionSetup 2
56
+ #define ICE_AuthRequired 3
57
+ #define ICE_AuthReply 4
58
+ #define ICE_AuthNextPhase 5
59
+ #define ICE_ConnectionReply 6
60
+ #define ICE_ProtocolSetup 7
61
+ #define ICE_ProtocolReply 8
62
+ #define ICE_Ping 9
63
+ #define ICE_PingReply 10
64
+ #define ICE_WantToClose 11
65
+ #define ICE_NoClose 12
66
+
67
+
68
+ /*
69
+ * Error severity
70
+ */
71
+
72
+ #define IceCanContinue 0
73
+ #define IceFatalToProtocol 1
74
+ #define IceFatalToConnection 2
75
+
76
+
77
+ /*
78
+ * ICE error classes that are common to all protocols
79
+ */
80
+
81
+ #define IceBadMinor 0x8000
82
+ #define IceBadState 0x8001
83
+ #define IceBadLength 0x8002
84
+ #define IceBadValue 0x8003
85
+
86
+
87
+ /*
88
+ * ICE error classes that are specific to the ICE protocol
89
+ */
90
+
91
+ #define IceBadMajor 0
92
+ #define IceNoAuth 1
93
+ #define IceNoVersion 2
94
+ #define IceSetupFailed 3
95
+ #define IceAuthRejected 4
96
+ #define IceAuthFailed 5
97
+ #define IceProtocolDuplicate 6
98
+ #define IceMajorOpcodeDuplicate 7
99
+ #define IceUnknownProtocol 8
100
+
101
+ #endif /* _ICE_H_ */
data/miniconda3/include/X11/ICE/ICEconn.h ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /******************************************************************************
2
+
3
+
4
+ Copyright 1993, 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
+ Author: Ralph Mor, X Consortium
27
+ ******************************************************************************/
28
+
29
+ #ifndef _ICECONN_H_
30
+ #define _ICECONN_H_
31
+
32
+ #include <X11/ICE/ICElib.h>
33
+
34
+ /*
35
+ * Data structures for ICE connection object
36
+ */
37
+
38
+ typedef struct _IceSavedReplyWait {
39
+ IceReplyWaitInfo *reply_wait;
40
+ Bool reply_ready;
41
+ struct _IceSavedReplyWait *next;
42
+ } _IceSavedReplyWait;
43
+
44
+ typedef struct _IcePingWait {
45
+ IcePingReplyProc ping_reply_proc;
46
+ IcePointer client_data;
47
+ struct _IcePingWait *next;
48
+ } _IcePingWait;
49
+
50
+ typedef struct {
51
+ char *vendor;
52
+ char *release;
53
+ int version_count;
54
+ IcePoVersionRec *version_recs;
55
+ int auth_count;
56
+ char **auth_names;
57
+ IcePoAuthProc *auth_procs;
58
+ IceIOErrorProc io_error_proc;
59
+ } _IcePoProtocol;
60
+
61
+ typedef struct {
62
+ char *vendor;
63
+ char *release;
64
+ int version_count;
65
+ IcePaVersionRec *version_recs;
66
+ IceProtocolSetupProc protocol_setup_proc;
67
+ IceProtocolActivateProc protocol_activate_proc;
68
+ int auth_count;
69
+ char **auth_names;
70
+ IcePaAuthProc *auth_procs;
71
+ IceHostBasedAuthProc host_based_auth_proc;
72
+ IceIOErrorProc io_error_proc;
73
+ } _IcePaProtocol;
74
+
75
+ typedef struct {
76
+ char *protocol_name;
77
+ _IcePoProtocol *orig_client;
78
+ _IcePaProtocol *accept_client;
79
+ } _IceProtocol;
80
+
81
+ typedef struct {
82
+ Bool in_use;
83
+ int my_opcode;
84
+ _IceProtocol *protocol;
85
+ IcePointer client_data;
86
+ Bool accept_flag;
87
+ union {
88
+ IcePaProcessMsgProc accept_client;
89
+ IcePoProcessMsgProc orig_client;
90
+ } process_msg_proc;
91
+ } _IceProcessMsgInfo;
92
+
93
+ typedef struct {
94
+ int his_version_index;
95
+ int my_version_index;
96
+ char *his_vendor;
97
+ char *his_release;
98
+ char my_auth_index;
99
+ IcePointer my_auth_state;
100
+ Bool must_authenticate;
101
+ } _IceConnectToMeInfo;
102
+
103
+ typedef struct {
104
+ int his_opcode;
105
+ int my_opcode;
106
+ int his_version_index;
107
+ int my_version_index;
108
+ char *his_vendor;
109
+ char *his_release;
110
+ char my_auth_index;
111
+ IcePointer my_auth_state;
112
+ Bool must_authenticate;
113
+ } _IceProtoSetupToMeInfo;
114
+
115
+ typedef struct {
116
+ Bool auth_active;
117
+ char my_auth_index;
118
+ IcePointer my_auth_state;
119
+ } _IceConnectToYouInfo;
120
+
121
+ typedef struct {
122
+ int my_opcode;
123
+ int my_auth_count;
124
+ int *my_auth_indices;
125
+ Bool auth_active;
126
+ char my_auth_index;
127
+ IcePointer my_auth_state;
128
+ } _IceProtoSetupToYouInfo;
129
+
130
+
131
+ struct _IceConn {
132
+
133
+ unsigned int io_ok : 1; /* did an IO error occur? */
134
+ unsigned int swap : 1; /* do we need to swap on reads? */
135
+ unsigned int waiting_for_byteorder : 1; /* waiting for a ByteOrder msg? */
136
+ unsigned int skip_want_to_close : 1; /* avoid shutdown negotiation? */
137
+ unsigned int want_to_close : 1; /* did we send a WantToClose? */
138
+ unsigned int free_asap : 1; /* free as soon as possible */
139
+ unsigned int unused1 : 2; /* future use */
140
+ unsigned int unused2 : 8; /* future use */
141
+
142
+ IceConnectStatus connection_status; /* pending, accepted, rejected */
143
+
144
+ unsigned char my_ice_version_index; /* which version are we using? */
145
+
146
+ struct _XtransConnInfo *trans_conn; /* transport connection object */
147
+ unsigned long send_sequence; /* Sequence # of last msg sent */
148
+ unsigned long receive_sequence; /* Sequence # of last msg received */
149
+
150
+ char *connection_string; /* network connection string */
151
+ char *vendor; /* other client's vendor */
152
+ char *release; /* other client's release */
153
+
154
+ char *inbuf; /* Input buffer starting address */
155
+ char *inbufptr; /* Input buffer index pointer */
156
+ char *inbufmax; /* Input buffer maximum+1 address */
157
+
158
+ char *outbuf; /* Output buffer starting address */
159
+ char *outbufptr; /* Output buffer index pointer */
160
+ char *outbufmax; /* Output buffer maximum+1 address */
161
+
162
+ char *scratch; /* scratch buffer */
163
+ unsigned long scratch_size; /* scratch size */
164
+
165
+ int dispatch_level; /* IceProcessMessages dispatch level */
166
+
167
+ IcePointer context; /* context associated with caller
168
+ of IceOpenConnection */
169
+
170
+ /*
171
+ * Before we read a message, the major opcode of the message must be
172
+ * mapped to our corresponding major opcode (the two clients can use
173
+ * different opcodes for the same protocol). In order to save space,
174
+ * we keep track of the minimum and maximum major opcodes used by the
175
+ * other client. To get the information on how to process this message,
176
+ * we do the following...
177
+ *
178
+ * processMsgInfo = iceConn->process_msg_info[
179
+ * message->majorOpcode - iceConn->his_min_opcode]
180
+ *
181
+ * Note that the number of elements in the iceConn->process_msg_info
182
+ * array is always (iceConn->his_max_opcode - iceConn->his_min_opcode + 1).
183
+ * We check process_msg_info->in_use to see if the opcode is being used.
184
+ */
185
+
186
+ _IceProcessMsgInfo *process_msg_info;
187
+ char his_min_opcode; /* [1..255] */
188
+ char his_max_opcode; /* [1..255] */
189
+
190
+
191
+ /*
192
+ * Number of times this iceConn was returned in IceOpenConnection
193
+ * or IceAcceptConnection.
194
+ */
195
+
196
+ unsigned char open_ref_count;
197
+
198
+
199
+ /*
200
+ * Number of active protocols.
201
+ */
202
+
203
+ unsigned char proto_ref_count;
204
+
205
+
206
+ /*
207
+ * If this ICE connection was created with IceAcceptConnection,
208
+ * the listen_obj field is set to the listen object. Otherwise,
209
+ * the listen_obj field is NULL.
210
+ */
211
+
212
+ IceListenObj listen_obj;
213
+
214
+
215
+
216
+
217
+ /*
218
+ * We need to keep track of all the replies we're waiting for.
219
+ * Check the comments in process.c for how this works.
220
+ */
221
+
222
+ _IceSavedReplyWait *saved_reply_waits;
223
+
224
+
225
+ /*
226
+ * We keep track of all Pings sent from the client. When the Ping reply
227
+ * arrives, we remove it from the list.
228
+ */
229
+
230
+ _IcePingWait *ping_waits;
231
+
232
+
233
+ /*
234
+ * Some state for a client doing a Connection/Protocol Setup
235
+ */
236
+
237
+ _IceConnectToYouInfo *connect_to_you;
238
+ _IceProtoSetupToYouInfo *protosetup_to_you;
239
+
240
+
241
+ /*
242
+ * Some state for a client receiving a Connection/Protocol Setup
243
+ */
244
+
245
+ _IceConnectToMeInfo *connect_to_me;
246
+ _IceProtoSetupToMeInfo *protosetup_to_me;
247
+
248
+ };
249
+
250
+ #endif /* _ICECONN_H_ */
data/miniconda3/include/X11/ICE/ICElib.h ADDED
@@ -0,0 +1,431 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /******************************************************************************
2
+
3
+
4
+ Copyright 1993, 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
+ Author: Ralph Mor, X Consortium
27
+ ******************************************************************************/
28
+
29
+ #ifndef _ICELIB_H_
30
+ #define _ICELIB_H_
31
+
32
+ #include <X11/ICE/ICE.h>
33
+ #include <X11/Xfuncproto.h>
34
+
35
+ #define Bool int
36
+ #define Status int
37
+ #define True 1
38
+ #define False 0
39
+
40
+ typedef void *IcePointer;
41
+
42
+ typedef enum {
43
+ IcePoAuthHaveReply,
44
+ IcePoAuthRejected,
45
+ IcePoAuthFailed,
46
+ IcePoAuthDoneCleanup
47
+ } IcePoAuthStatus;
48
+
49
+ typedef enum {
50
+ IcePaAuthContinue,
51
+ IcePaAuthAccepted,
52
+ IcePaAuthRejected,
53
+ IcePaAuthFailed
54
+ } IcePaAuthStatus;
55
+
56
+ typedef enum {
57
+ IceConnectPending,
58
+ IceConnectAccepted,
59
+ IceConnectRejected,
60
+ IceConnectIOError
61
+ } IceConnectStatus;
62
+
63
+ typedef enum {
64
+ IceProtocolSetupSuccess,
65
+ IceProtocolSetupFailure,
66
+ IceProtocolSetupIOError,
67
+ IceProtocolAlreadyActive
68
+ } IceProtocolSetupStatus;
69
+
70
+ typedef enum {
71
+ IceAcceptSuccess,
72
+ IceAcceptFailure,
73
+ IceAcceptBadMalloc
74
+ } IceAcceptStatus;
75
+
76
+ typedef enum {
77
+ IceClosedNow,
78
+ IceClosedASAP,
79
+ IceConnectionInUse,
80
+ IceStartedShutdownNegotiation
81
+ } IceCloseStatus;
82
+
83
+ typedef enum {
84
+ IceProcessMessagesSuccess,
85
+ IceProcessMessagesIOError,
86
+ IceProcessMessagesConnectionClosed
87
+ } IceProcessMessagesStatus;
88
+
89
+ typedef struct {
90
+ unsigned long sequence_of_request;
91
+ int major_opcode_of_request;
92
+ int minor_opcode_of_request;
93
+ IcePointer reply;
94
+ } IceReplyWaitInfo;
95
+
96
+ typedef struct _IceConn *IceConn;
97
+ typedef struct _IceListenObj *IceListenObj;
98
+
99
+ typedef void (*IceWatchProc) (
100
+ IceConn /* iceConn */,
101
+ IcePointer /* clientData */,
102
+ Bool /* opening */,
103
+ IcePointer * /* watchData */
104
+ );
105
+
106
+ typedef void (*IcePoProcessMsgProc) (
107
+ IceConn /* iceConn */,
108
+ IcePointer /* clientData */,
109
+ int /* opcode */,
110
+ unsigned long /* length */,
111
+ Bool /* swap */,
112
+ IceReplyWaitInfo * /* replyWait */,
113
+ Bool * /* replyReadyRet */
114
+ );
115
+
116
+ typedef void (*IcePaProcessMsgProc) (
117
+ IceConn /* iceConn */,
118
+ IcePointer /* clientData */,
119
+ int /* opcode */,
120
+ unsigned long /* length */,
121
+ Bool /* swap */
122
+ );
123
+
124
+ typedef struct {
125
+ int major_version;
126
+ int minor_version;
127
+ IcePoProcessMsgProc process_msg_proc;
128
+ } IcePoVersionRec;
129
+
130
+ typedef struct {
131
+ int major_version;
132
+ int minor_version;
133
+ IcePaProcessMsgProc process_msg_proc;
134
+ } IcePaVersionRec;
135
+
136
+ typedef IcePoAuthStatus (*IcePoAuthProc) (
137
+ IceConn /* iceConn */,
138
+ IcePointer * /* authStatePtr */,
139
+ Bool /* cleanUp */,
140
+ Bool /* swap */,
141
+ int /* authDataLen */,
142
+ IcePointer /* authData */,
143
+ int * /* replyDataLenRet */,
144
+ IcePointer * /* replyDataRet */,
145
+ char ** /* errorStringRet */
146
+ );
147
+
148
+ typedef IcePaAuthStatus (*IcePaAuthProc) (
149
+ IceConn /* iceConn */,
150
+ IcePointer * /* authStatePtr */,
151
+ Bool /* swap */,
152
+ int /* authDataLen */,
153
+ IcePointer /* authData */,
154
+ int * /* replyDataLenRet */,
155
+ IcePointer * /* replyDataRet */,
156
+ char ** /* errorStringRet */
157
+ );
158
+
159
+ typedef Bool (*IceHostBasedAuthProc) (
160
+ char * /* hostName */
161
+ );
162
+
163
+ typedef Status (*IceProtocolSetupProc) (
164
+ IceConn /* iceConn */,
165
+ int /* majorVersion */,
166
+ int /* minorVersion */,
167
+ char * /* vendor */,
168
+ char * /* release */,
169
+ IcePointer * /* clientDataRet */,
170
+ char ** /* failureReasonRet */
171
+ );
172
+
173
+ typedef void (*IceProtocolActivateProc) (
174
+ IceConn /* iceConn */,
175
+ IcePointer /* clientData */
176
+ );
177
+
178
+ typedef void (*IceIOErrorProc) (
179
+ IceConn /* iceConn */
180
+ );
181
+
182
+ typedef void (*IcePingReplyProc) (
183
+ IceConn /* iceConn */,
184
+ IcePointer /* clientData */
185
+ );
186
+
187
+ typedef void (*IceErrorHandler) (
188
+ IceConn /* iceConn */,
189
+ Bool /* swap */,
190
+ int /* offendingMinorOpcode */,
191
+ unsigned long /* offendingSequence */,
192
+ int /* errorClass */,
193
+ int /* severity */,
194
+ IcePointer /* values */
195
+ );
196
+
197
+ typedef void (*IceIOErrorHandler) (
198
+ IceConn /* iceConn */
199
+ );
200
+
201
+
202
+ /*
203
+ * Function prototypes
204
+ */
205
+
206
+ _XFUNCPROTOBEGIN
207
+
208
+ extern int IceRegisterForProtocolSetup (
209
+ const char * /* protocolName */,
210
+ const char * /* vendor */,
211
+ const char * /* release */,
212
+ int /* versionCount */,
213
+ IcePoVersionRec * /* versionRecs */,
214
+ int /* authCount */,
215
+ const char ** /* authNames */,
216
+ IcePoAuthProc * /* authProcs */,
217
+ IceIOErrorProc /* IOErrorProc */
218
+ );
219
+
220
+ extern int IceRegisterForProtocolReply (
221
+ const char * /* protocolName */,
222
+ const char * /* vendor */,
223
+ const char * /* release */,
224
+ int /* versionCount */,
225
+ IcePaVersionRec * /* versionRecs */,
226
+ int /* authCount */,
227
+ const char ** /* authNames */,
228
+ IcePaAuthProc * /* authProcs */,
229
+ IceHostBasedAuthProc /* hostBasedAuthProc */,
230
+ IceProtocolSetupProc /* protocolSetupProc */,
231
+ IceProtocolActivateProc /* protocolActivateProc */,
232
+ IceIOErrorProc /* IOErrorProc */
233
+ );
234
+
235
+ extern IceConn IceOpenConnection (
236
+ char * /* networkIdsList */,
237
+ IcePointer /* context */,
238
+ Bool /* mustAuthenticate */,
239
+ int /* majorOpcodeCheck */,
240
+ int /* errorLength */,
241
+ char * /* errorStringRet */
242
+ );
243
+
244
+ extern IcePointer IceGetConnectionContext (
245
+ IceConn /* iceConn */
246
+ );
247
+
248
+ extern Status IceListenForConnections (
249
+ int * /* countRet */,
250
+ IceListenObj ** /* listenObjsRet */,
251
+ int /* errorLength */,
252
+ char * /* errorStringRet */
253
+ );
254
+
255
+ extern Status IceListenForWellKnownConnections (
256
+ char * /* port */,
257
+ int * /* countRet */,
258
+ IceListenObj ** /* listenObjsRet */,
259
+ int /* errorLength */,
260
+ char * /* errorStringRet */
261
+ );
262
+
263
+ extern int IceGetListenConnectionNumber (
264
+ IceListenObj /* listenObj */
265
+ );
266
+
267
+ extern char *IceGetListenConnectionString (
268
+ IceListenObj /* listenObj */
269
+ );
270
+
271
+ extern char *IceComposeNetworkIdList (
272
+ int /* count */,
273
+ IceListenObj * /* listenObjs */
274
+ );
275
+
276
+ extern void IceFreeListenObjs (
277
+ int /* count */,
278
+ IceListenObj * /* listenObjs */
279
+ );
280
+
281
+ extern void IceSetHostBasedAuthProc (
282
+ IceListenObj /* listenObj */,
283
+ IceHostBasedAuthProc /* hostBasedAuthProc */
284
+ );
285
+
286
+ extern IceConn IceAcceptConnection (
287
+ IceListenObj /* listenObj */,
288
+ IceAcceptStatus * /* statusRet */
289
+ );
290
+
291
+ extern void IceSetShutdownNegotiation (
292
+ IceConn /* iceConn */,
293
+ Bool /* negotiate */
294
+ );
295
+
296
+ extern Bool IceCheckShutdownNegotiation (
297
+ IceConn /* iceConn */
298
+ );
299
+
300
+ extern IceCloseStatus IceCloseConnection (
301
+ IceConn /* iceConn */
302
+ );
303
+
304
+ extern Status IceAddConnectionWatch (
305
+ IceWatchProc /* watchProc */,
306
+ IcePointer /* clientData */
307
+ );
308
+
309
+ extern void IceRemoveConnectionWatch (
310
+ IceWatchProc /* watchProc */,
311
+ IcePointer /* clientData */
312
+ );
313
+
314
+ extern IceProtocolSetupStatus IceProtocolSetup (
315
+ IceConn /* iceConn */,
316
+ int /* myOpcode */,
317
+ IcePointer /* clientData */,
318
+ Bool /* mustAuthenticate */,
319
+ int * /* majorVersionRet */,
320
+ int * /* minorVersionRet */,
321
+ char ** /* vendorRet */,
322
+ char ** /* releaseRet */,
323
+ int /* errorLength */,
324
+ char * /* errorStringRet */
325
+ );
326
+
327
+ extern Status IceProtocolShutdown (
328
+ IceConn /* iceConn */,
329
+ int /* majorOpcode */
330
+ );
331
+
332
+ extern IceProcessMessagesStatus IceProcessMessages (
333
+ IceConn /* iceConn */,
334
+ IceReplyWaitInfo * /* replyWait */,
335
+ Bool * /* replyReadyRet */
336
+ );
337
+
338
+ extern Status IcePing (
339
+ IceConn /* iceConn */,
340
+ IcePingReplyProc /* pingReplyProc */,
341
+ IcePointer /* clientData */
342
+ );
343
+
344
+ extern char *IceAllocScratch (
345
+ IceConn /* iceConn */,
346
+ unsigned long /* size */
347
+ );
348
+
349
+ extern int IceFlush (
350
+ IceConn /* iceConn */
351
+ );
352
+
353
+ extern int IceGetOutBufSize (
354
+ IceConn /* iceConn */
355
+ );
356
+
357
+ extern int IceGetInBufSize (
358
+ IceConn /* iceConn */
359
+ );
360
+
361
+ extern IceConnectStatus IceConnectionStatus (
362
+ IceConn /* iceConn */
363
+ );
364
+
365
+ extern char *IceVendor (
366
+ IceConn /* iceConn */
367
+ );
368
+
369
+ extern char *IceRelease (
370
+ IceConn /* iceConn */
371
+ );
372
+
373
+ extern int IceProtocolVersion (
374
+ IceConn /* iceConn */
375
+ );
376
+
377
+ extern int IceProtocolRevision (
378
+ IceConn /* iceConn */
379
+ );
380
+
381
+ extern int IceConnectionNumber (
382
+ IceConn /* iceConn */
383
+ );
384
+
385
+ extern char *IceConnectionString (
386
+ IceConn /* iceConn */
387
+ );
388
+
389
+ extern unsigned long IceLastSentSequenceNumber (
390
+ IceConn /* iceConn */
391
+ );
392
+
393
+ extern unsigned long IceLastReceivedSequenceNumber (
394
+ IceConn /* iceConn */
395
+ );
396
+
397
+ extern Bool IceSwapping (
398
+ IceConn /* iceConn */
399
+ );
400
+
401
+ extern IceErrorHandler IceSetErrorHandler (
402
+ IceErrorHandler /* handler */
403
+ );
404
+
405
+ extern IceIOErrorHandler IceSetIOErrorHandler (
406
+ IceIOErrorHandler /* handler */
407
+ );
408
+
409
+ extern char *IceGetPeerName (
410
+ IceConn /* iceConn */
411
+ );
412
+
413
+ /*
414
+ * Multithread Routines
415
+ */
416
+
417
+ extern Status IceInitThreads (
418
+ void
419
+ );
420
+
421
+ extern void IceAppLockConn (
422
+ IceConn /* iceConn */
423
+ );
424
+
425
+ extern void IceAppUnlockConn (
426
+ IceConn /* iceConn */
427
+ );
428
+
429
+ _XFUNCPROTOEND
430
+
431
+ #endif /* _ICELIB_H_ */
data/miniconda3/include/X11/ICE/ICEmsg.h ADDED
@@ -0,0 +1,306 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /******************************************************************************
2
+
3
+
4
+ Copyright 1993, 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
+ Author: Ralph Mor, X Consortium
27
+ ******************************************************************************/
28
+
29
+ #ifndef _ICEMSG_H_
30
+ #define _ICEMSG_H_
31
+
32
+ #include <X11/Xfuncproto.h>
33
+
34
+ #include <X11/ICE/ICEconn.h>
35
+
36
+ #include <assert.h>
37
+ #if !defined(__cplusplus) && !defined(static_assert)
38
+ #define static_assert(cond, msg) /* skip for non-C11 compilers */
39
+ #endif
40
+
41
+ _XFUNCPROTOBEGIN
42
+
43
+ /*
44
+ * Function prototypes for internal ICElib functions
45
+ */
46
+
47
+ extern Status _IceRead (
48
+ IceConn /* iceConn */,
49
+ unsigned long /* nbytes */,
50
+ char * /* ptr */
51
+ );
52
+
53
+ extern void _IceReadSkip (
54
+ IceConn /* iceConn */,
55
+ unsigned long /* nbytes */
56
+ );
57
+
58
+ extern void _IceWrite (
59
+ IceConn /* iceConn */,
60
+ unsigned long /* nbytes */,
61
+ char * /* ptr */
62
+ );
63
+
64
+
65
+ extern void _IceErrorBadMinor (
66
+ IceConn /* iceConn */,
67
+ int /* majorOpcode */,
68
+ int /* offendingMinor */,
69
+ int /* severity */
70
+ );
71
+
72
+ extern void _IceErrorBadState (
73
+ IceConn /* iceConn */,
74
+ int /* majorOpcode */,
75
+ int /* offendingMinor */,
76
+ int /* severity */
77
+ );
78
+
79
+ extern void _IceErrorBadLength (
80
+ IceConn /* iceConn */,
81
+ int /* majorOpcode */,
82
+ int /* offendingMinor */,
83
+ int /* severity */
84
+ );
85
+
86
+ extern void _IceErrorBadValue (
87
+ IceConn /* iceConn */,
88
+ int /* majorOpcode */,
89
+ int /* offendingMinor */,
90
+ int /* offset */,
91
+ int /* length */,
92
+ IcePointer /* value */
93
+ );
94
+
95
+ extern IcePoAuthStatus _IcePoMagicCookie1Proc (
96
+ IceConn /* iceConn */,
97
+ IcePointer * /* authStatePtr */,
98
+ Bool /* cleanUp */,
99
+ Bool /* swap */,
100
+ int /* authDataLen */,
101
+ IcePointer /* authData */,
102
+ int * /* replyDataLenRet */,
103
+ IcePointer * /* replyDataRet */,
104
+ char ** /* errorStringRet */
105
+ );
106
+
107
+ extern IcePaAuthStatus _IcePaMagicCookie1Proc (
108
+ IceConn /* iceConn */,
109
+ IcePointer * /* authStatePtr */,
110
+ Bool /* swap */,
111
+ int /* authDataLen */,
112
+ IcePointer /* authData */,
113
+ int * /* replyDataLenRet */,
114
+ IcePointer * /* replyDataRet */,
115
+ char ** /* errorStringRet */
116
+ );
117
+
118
+
119
+ /*
120
+ * Macro to check if IO operations are valid on an ICE connection.
121
+ */
122
+
123
+ #define IceValidIO(_iceConn) _iceConn->io_ok
124
+
125
+
126
+ /*
127
+ * Macros for writing messages.
128
+ */
129
+
130
+ #define IceGetHeader(_iceConn, _major, _minor, _headerSize, _msgType, _pMsg) \
131
+ do { \
132
+ static_assert(_headerSize <= 1024, \
133
+ "Header size larger than ICE_OUTBUFSIZE"); \
134
+ if ((_iceConn->outbufptr + _headerSize) > _iceConn->outbufmax) \
135
+ IceFlush (_iceConn); \
136
+ _pMsg = (_msgType *) _iceConn->outbufptr; \
137
+ _pMsg->majorOpcode = _major; \
138
+ _pMsg->minorOpcode = _minor; \
139
+ _pMsg->length = (_headerSize - SIZEOF (iceMsg)) >> 3; \
140
+ _iceConn->outbufptr += _headerSize; \
141
+ _iceConn->send_sequence++; \
142
+ } while (0)
143
+
144
+ #define IceGetHeaderExtra(_iceConn, _major, _minor, _headerSize, _extra, _msgType, _pMsg, _pData) \
145
+ do { \
146
+ static_assert(_headerSize <= 1024, \
147
+ "Header size larger than ICE_OUTBUFSIZE"); \
148
+ if ((_iceConn->outbufptr + \
149
+ _headerSize + ((_extra) << 3)) > _iceConn->outbufmax) \
150
+ IceFlush (_iceConn); \
151
+ _pMsg = (_msgType *) _iceConn->outbufptr; \
152
+ _iceConn->outbufptr += _headerSize; \
153
+ if ((_iceConn->outbufptr + ((_extra) << 3)) <= _iceConn->outbufmax) { \
154
+ _pData = _iceConn->outbufptr; \
155
+ _iceConn->outbufptr += ((_extra) << 3); \
156
+ } \
157
+ else \
158
+ _pData = NULL; \
159
+ _pMsg->majorOpcode = _major; \
160
+ _pMsg->minorOpcode = _minor; \
161
+ _pMsg->length = ((_headerSize - SIZEOF (iceMsg)) >> 3) + (_extra); \
162
+ _iceConn->send_sequence++; \
163
+ } while (0)
164
+
165
+ #define IceSimpleMessage(_iceConn, _major, _minor) \
166
+ { \
167
+ iceMsg *_pMsg; \
168
+ IceGetHeader (_iceConn, _major, _minor, SIZEOF (iceMsg), iceMsg, _pMsg); \
169
+ }
170
+
171
+ #define IceErrorHeader(_iceConn, _offendingMajorOpcode, _offendingMinorOpcode, _offendingSequenceNum, _severity, _errorClass, _dataLength) \
172
+ { \
173
+ iceErrorMsg *_pMsg; \
174
+ \
175
+ IceGetHeader (_iceConn, _offendingMajorOpcode, ICE_Error, \
176
+ SIZEOF (iceErrorMsg), iceErrorMsg, _pMsg); \
177
+ _pMsg->length += (_dataLength); \
178
+ _pMsg->offendingMinorOpcode = (CARD8) _offendingMinorOpcode; \
179
+ _pMsg->severity = (CARD8) _severity; \
180
+ _pMsg->offendingSequenceNum = (CARD32) _offendingSequenceNum; \
181
+ _pMsg->errorClass = (CARD16) _errorClass; \
182
+ }
183
+
184
+
185
+ /*
186
+ * Write data into the ICE output buffer.
187
+ */
188
+
189
+ #define IceWriteData(_iceConn, _bytes, _data) \
190
+ { \
191
+ if ((_iceConn->outbufptr + (_bytes)) > _iceConn->outbufmax) \
192
+ { \
193
+ IceFlush (_iceConn); \
194
+ _IceWrite (_iceConn, (unsigned long) (_bytes), _data); \
195
+ } \
196
+ else \
197
+ { \
198
+ memcpy (_iceConn->outbufptr, _data, _bytes); \
199
+ _iceConn->outbufptr += (_bytes); \
200
+ } \
201
+ }
202
+
203
+ #define IceWriteData16(_iceConn, _bytes, _data) \
204
+ IceWriteData (_iceConn, _bytes, (char *) _data)
205
+
206
+ #define IceWriteData32(_iceConn, _bytes, _data) \
207
+ IceWriteData (_iceConn, _bytes, (char *) _data)
208
+
209
+
210
+ /*
211
+ * The IceSendData macro bypasses copying the data to the
212
+ * ICE connection buffer and sends the data directly. If necessary,
213
+ * the ICE connection buffer is first flushed.
214
+ */
215
+
216
+ #define IceSendData(_iceConn, _bytes, _data) \
217
+ { \
218
+ if (_iceConn->outbufptr > _iceConn->outbuf) \
219
+ IceFlush (_iceConn); \
220
+ _IceWrite (_iceConn, (unsigned long) (_bytes), _data); \
221
+ }
222
+
223
+
224
+ /*
225
+ * Write pad bytes. Used to force 32 or 64 bit alignment.
226
+ * A maximum of 7 pad bytes can be specified.
227
+ */
228
+
229
+ #define IceWritePad(_iceConn, _bytes) \
230
+ { \
231
+ char _dummy[7] = { 0 }; \
232
+ IceWriteData (_iceConn, (_bytes), _dummy); \
233
+ }
234
+
235
+
236
+ /*
237
+ * Macros for reading messages.
238
+ */
239
+
240
+ #define IceReadCompleteMessage(_iceConn, _headerSize, _msgType, _pMsg, _pData)\
241
+ { \
242
+ unsigned long _bytes; \
243
+ IceReadMessageHeader (_iceConn, _headerSize, _msgType, _pMsg); \
244
+ _bytes = (_pMsg->length << 3) - (_headerSize - SIZEOF (iceMsg)); \
245
+ if ((_iceConn->inbufmax - _iceConn->inbufptr) >= _bytes) \
246
+ { \
247
+ _IceRead (_iceConn, _bytes, _iceConn->inbufptr); \
248
+ _pData = _iceConn->inbufptr; \
249
+ _iceConn->inbufptr += _bytes; \
250
+ } \
251
+ else \
252
+ { \
253
+ _pData = malloc (_bytes); \
254
+ if (_pData) \
255
+ _IceRead (_iceConn, _bytes, _pData); \
256
+ else \
257
+ _IceReadSkip (_iceConn, _bytes); \
258
+ } \
259
+ }
260
+
261
+ #define IceDisposeCompleteMessage(_iceConn, _pData) \
262
+ if ((char *) _pData < _iceConn->inbuf || \
263
+ (char *) _pData >= _iceConn->inbufmax) \
264
+ free (_pData);
265
+
266
+
267
+ #define IceReadSimpleMessage(_iceConn, _msgType, _pMsg) \
268
+ _pMsg = (_msgType *) (_iceConn->inbuf);
269
+
270
+ #define IceReadMessageHeader(_iceConn, _headerSize, _msgType, _pMsg) \
271
+ { \
272
+ _IceRead (_iceConn, \
273
+ (unsigned long) (_headerSize - SIZEOF (iceMsg)), \
274
+ _iceConn->inbufptr); \
275
+ _pMsg = (_msgType *) (_iceConn->inbuf); \
276
+ _iceConn->inbufptr += (_headerSize - SIZEOF (iceMsg)); \
277
+ }
278
+
279
+ #define IceReadData(_iceConn, _bytes, _pData) \
280
+ _IceRead (_iceConn, (unsigned long) (_bytes), (char *) _pData); \
281
+
282
+ #define IceReadData16(_iceConn, _swap, _bytes, _pData) \
283
+ { \
284
+ _IceRead (_iceConn, (unsigned long) (_bytes), (char *) _pData); \
285
+ }
286
+
287
+ #define IceReadData32(_iceConn, _swap, _bytes, _pData) \
288
+ { \
289
+ _IceRead (_iceConn, (unsigned long) (_bytes), (char *) _pData); \
290
+ }
291
+
292
+
293
+ /*
294
+ * Read pad bytes (for 32 or 64 bit alignment).
295
+ * A maximum of 7 pad bytes can be specified.
296
+ */
297
+
298
+ #define IceReadPad(_iceConn, _bytes) \
299
+ { \
300
+ char _dummy[7]; \
301
+ _IceRead (_iceConn, (unsigned long) (_bytes), _dummy); \
302
+ }
303
+
304
+ _XFUNCPROTOEND
305
+
306
+ #endif /* _ICEMSG_H_ */
data/miniconda3/include/X11/ICE/ICEproto.h ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /******************************************************************************
2
+
3
+
4
+ Copyright 1993, 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
+ Author: Ralph Mor, X Consortium
27
+ ******************************************************************************/
28
+
29
+ #ifndef _ICEPROTO_H_
30
+ #define _ICEPROTO_H_
31
+
32
+ #include <X11/Xmd.h>
33
+
34
+ typedef struct {
35
+ CARD8 majorOpcode;
36
+ CARD8 minorOpcode;
37
+ CARD8 data[2];
38
+ CARD32 length;
39
+ } iceMsg;
40
+
41
+ typedef struct {
42
+ CARD8 majorOpcode;
43
+ CARD8 minorOpcode;
44
+ CARD16 errorClass;
45
+ CARD32 length;
46
+ CARD8 offendingMinorOpcode;
47
+ CARD8 severity;
48
+ CARD16 unused;
49
+ CARD32 offendingSequenceNum;
50
+ /* n varying values */
51
+ /* p p = pad (n, 8) */
52
+ } iceErrorMsg;
53
+
54
+ typedef struct {
55
+ CARD8 majorOpcode;
56
+ CARD8 minorOpcode;
57
+ CARD8 byteOrder;
58
+ CARD8 unused;
59
+ CARD32 length;
60
+ } iceByteOrderMsg;
61
+
62
+ typedef struct {
63
+ CARD8 majorOpcode;
64
+ CARD8 minorOpcode;
65
+ CARD8 versionCount;
66
+ CARD8 authCount;
67
+ CARD32 length;
68
+ CARD8 mustAuthenticate;
69
+ CARD8 unused[7];
70
+ /* i STRING vendor */
71
+ /* j STRING release */
72
+ /* k LIST of STRING authentication-protocol-names */
73
+ /* m LIST of VERSION version-list */
74
+ /* p p = pad (i+j+k+m, 8) */
75
+ } iceConnectionSetupMsg;
76
+
77
+ typedef struct {
78
+ CARD8 majorOpcode;
79
+ CARD8 minorOpcode;
80
+ CARD8 authIndex;
81
+ CARD8 unused1;
82
+ CARD32 length;
83
+ CARD16 authDataLength;
84
+ CARD8 unused2[6];
85
+ /* n varying data */
86
+ /* p p = pad (n, 8) */
87
+ } iceAuthRequiredMsg;
88
+
89
+ typedef struct {
90
+ CARD8 majorOpcode;
91
+ CARD8 minorOpcode;
92
+ CARD8 unused1[2];
93
+ CARD32 length;
94
+ CARD16 authDataLength;
95
+ CARD8 unused2[6];
96
+ /* n varying data */
97
+ /* p p = pad (n, 8) */
98
+ } iceAuthReplyMsg;
99
+
100
+ typedef struct {
101
+ CARD8 majorOpcode;
102
+ CARD8 minorOpcode;
103
+ CARD8 unused1[2];
104
+ CARD32 length;
105
+ CARD16 authDataLength;
106
+ CARD8 unused2[6];
107
+ /* n varying data */
108
+ /* p p = pad (n, 8) */
109
+ } iceAuthNextPhaseMsg;
110
+
111
+ typedef struct {
112
+ CARD8 majorOpcode;
113
+ CARD8 minorOpcode;
114
+ CARD8 versionIndex;
115
+ CARD8 unused;
116
+ CARD32 length;
117
+ /* i STRING vendor */
118
+ /* j STRING release */
119
+ /* p p = pad (i+j, 8) */
120
+ } iceConnectionReplyMsg;
121
+
122
+ typedef struct {
123
+ CARD8 majorOpcode;
124
+ CARD8 minorOpcode;
125
+ CARD8 protocolOpcode;
126
+ CARD8 mustAuthenticate;
127
+ CARD32 length;
128
+ CARD8 versionCount;
129
+ CARD8 authCount;
130
+ CARD8 unused[6];
131
+ /* i STRING protocol-name */
132
+ /* j STRING vendor */
133
+ /* k STRING release */
134
+ /* m LIST of STRING authentication-protocol-names */
135
+ /* n LIST of VERSION version-list */
136
+ /* p p = pad (i+j+k+m+n, 8) */
137
+ } iceProtocolSetupMsg;
138
+
139
+ typedef struct {
140
+ CARD8 majorOpcode;
141
+ CARD8 minorOpcode;
142
+ CARD8 versionIndex;
143
+ CARD8 protocolOpcode;
144
+ CARD32 length;
145
+ /* i STRING vendor */
146
+ /* j STRING release */
147
+ /* p p = pad (i+j, 8) */
148
+ } iceProtocolReplyMsg;
149
+
150
+ typedef iceMsg icePingMsg;
151
+ typedef iceMsg icePingReplyMsg;
152
+ typedef iceMsg iceWantToCloseMsg;
153
+ typedef iceMsg iceNoCloseMsg;
154
+
155
+
156
+ /*
157
+ * SIZEOF values. These better be multiples of 8.
158
+ */
159
+
160
+ #define sz_iceMsg 8
161
+ #define sz_iceErrorMsg 16
162
+ #define sz_iceByteOrderMsg 8
163
+ #define sz_iceConnectionSetupMsg 16
164
+ #define sz_iceAuthRequiredMsg 16
165
+ #define sz_iceAuthReplyMsg 16
166
+ #define sz_iceAuthNextPhaseMsg 16
167
+ #define sz_iceConnectionReplyMsg 8
168
+ #define sz_iceProtocolSetupMsg 16
169
+ #define sz_iceProtocolReplyMsg 8
170
+ #define sz_icePingMsg 8
171
+ #define sz_icePingReplyMsg 8
172
+ #define sz_iceWantToCloseMsg 8
173
+ #define sz_iceNoCloseMsg 8
174
+
175
+ #endif /* _ICEPROTO_H_ */
data/miniconda3/include/X11/ICE/ICEutil.h ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /******************************************************************************
2
+
3
+
4
+ Copyright 1993, 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
+ Author: Ralph Mor, X Consortium
27
+ ******************************************************************************/
28
+
29
+ #ifndef _ICEUTIL_H_
30
+ #define _ICEUTIL_H_
31
+
32
+ #include <X11/Xfuncproto.h>
33
+
34
+ #include <stdio.h>
35
+
36
+ _XFUNCPROTOBEGIN
37
+
38
+ /*
39
+ * Data structure for entry in ICE authority file
40
+ */
41
+
42
+ typedef struct {
43
+ char *protocol_name;
44
+ unsigned short protocol_data_length;
45
+ char *protocol_data;
46
+ char *network_id;
47
+ char *auth_name;
48
+ unsigned short auth_data_length;
49
+ char *auth_data;
50
+ } IceAuthFileEntry;
51
+
52
+
53
+ /*
54
+ * Authentication data maintained in memory.
55
+ */
56
+
57
+ typedef struct {
58
+ char *protocol_name;
59
+ char *network_id;
60
+ char *auth_name;
61
+ unsigned short auth_data_length;
62
+ char *auth_data;
63
+ } IceAuthDataEntry;
64
+
65
+
66
+ /*
67
+ * Return values from IceLockAuthFile
68
+ */
69
+
70
+ #define IceAuthLockSuccess 0 /* lock succeeded */
71
+ #define IceAuthLockError 1 /* lock unexpectedly failed, check errno */
72
+ #define IceAuthLockTimeout 2 /* lock failed, timeouts expired */
73
+
74
+
75
+ /*
76
+ * Function Prototypes
77
+ */
78
+
79
+ extern char *IceAuthFileName (
80
+ void
81
+ );
82
+
83
+ extern int IceLockAuthFile (
84
+ const char * /* file_name */,
85
+ int /* retries */,
86
+ int /* timeout */,
87
+ long /* dead */
88
+ );
89
+
90
+ extern void IceUnlockAuthFile (
91
+ const char * /* file_name */
92
+ );
93
+
94
+ extern IceAuthFileEntry *IceReadAuthFileEntry (
95
+ FILE * /* auth_file */
96
+ );
97
+
98
+ extern void IceFreeAuthFileEntry (
99
+ IceAuthFileEntry * /* auth */
100
+ );
101
+
102
+ extern Status IceWriteAuthFileEntry (
103
+ FILE * /* auth_file */,
104
+ IceAuthFileEntry * /* auth */
105
+ );
106
+
107
+ extern IceAuthFileEntry *IceGetAuthFileEntry (
108
+ const char * /* protocol_name */,
109
+ const char * /* network_id */,
110
+ const char * /* auth_name */
111
+ );
112
+
113
+ extern char *IceGenerateMagicCookie (
114
+ int /* len */
115
+ );
116
+
117
+ extern void IceSetPaAuthData (
118
+ int /* numEntries */,
119
+ IceAuthDataEntry * /* entries */
120
+ );
121
+
122
+ _XFUNCPROTOEND
123
+
124
+ #endif /* _ICEUTIL_H_ */
data/miniconda3/include/X11/SM/SM.h ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+
3
+ Copyright 1993, 1998 The Open Group
4
+
5
+ Permission to use, copy, modify, distribute, and sell this software and its
6
+ documentation for any purpose is hereby granted without fee, provided that
7
+ the above copyright notice appear in all copies and that both that
8
+ copyright notice and this permission notice appear in supporting
9
+ documentation.
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 THE
17
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ Except as contained in this notice, the name of The Open Group shall not be
22
+ used in advertising or otherwise to promote the sale, use or other dealings
23
+ in this Software without prior written authorization from The Open Group.
24
+
25
+ */
26
+
27
+ /*
28
+ * Author: Ralph Mor, X Consortium
29
+ */
30
+
31
+ #ifndef _SM_H_
32
+ #define _SM_H_
33
+
34
+ /*
35
+ * Protocol Version
36
+ */
37
+
38
+ #define SmProtoMajor 1
39
+ #define SmProtoMinor 0
40
+
41
+
42
+ /*
43
+ * Interact Style
44
+ */
45
+
46
+ #define SmInteractStyleNone 0
47
+ #define SmInteractStyleErrors 1
48
+ #define SmInteractStyleAny 2
49
+
50
+
51
+ /*
52
+ * Dialog Type
53
+ */
54
+
55
+ #define SmDialogError 0
56
+ #define SmDialogNormal 1
57
+
58
+
59
+ /*
60
+ * Save Type
61
+ */
62
+
63
+ #define SmSaveGlobal 0
64
+ #define SmSaveLocal 1
65
+ #define SmSaveBoth 2
66
+
67
+
68
+ /*
69
+ * Restart Style Hints
70
+ */
71
+
72
+ #define SmRestartIfRunning 0
73
+ #define SmRestartAnyway 1
74
+ #define SmRestartImmediately 2
75
+ #define SmRestartNever 3
76
+
77
+
78
+ /*
79
+ * Property names
80
+ */
81
+
82
+ #define SmCloneCommand "CloneCommand"
83
+ #define SmCurrentDirectory "CurrentDirectory"
84
+ #define SmDiscardCommand "DiscardCommand"
85
+ #define SmEnvironment "Environment"
86
+ #define SmProcessID "ProcessID"
87
+ #define SmProgram "Program"
88
+ #define SmRestartCommand "RestartCommand"
89
+ #define SmResignCommand "ResignCommand"
90
+ #define SmRestartStyleHint "RestartStyleHint"
91
+ #define SmShutdownCommand "ShutdownCommand"
92
+ #define SmUserID "UserID"
93
+
94
+
95
+ /*
96
+ * Property types
97
+ */
98
+
99
+ #define SmCARD8 "CARD8"
100
+ #define SmARRAY8 "ARRAY8"
101
+ #define SmLISTofARRAY8 "LISTofARRAY8"
102
+
103
+
104
+ /*
105
+ * SM minor opcodes
106
+ */
107
+
108
+ #define SM_Error 0
109
+ #define SM_RegisterClient 1
110
+ #define SM_RegisterClientReply 2
111
+ #define SM_SaveYourself 3
112
+ #define SM_SaveYourselfRequest 4
113
+ #define SM_InteractRequest 5
114
+ #define SM_Interact 6
115
+ #define SM_InteractDone 7
116
+ #define SM_SaveYourselfDone 8
117
+ #define SM_Die 9
118
+ #define SM_ShutdownCancelled 10
119
+ #define SM_CloseConnection 11
120
+ #define SM_SetProperties 12
121
+ #define SM_DeleteProperties 13
122
+ #define SM_GetProperties 14
123
+ #define SM_PropertiesReply 15
124
+ #define SM_SaveYourselfPhase2Request 16
125
+ #define SM_SaveYourselfPhase2 17
126
+ #define SM_SaveComplete 18
127
+
128
+ #endif /* _SM_H_ */
data/miniconda3/include/X11/SM/SMlib.h ADDED
@@ -0,0 +1,543 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+
3
+ Copyright 1993, 1998 The Open Group
4
+
5
+ Permission to use, copy, modify, distribute, and sell this software and its
6
+ documentation for any purpose is hereby granted without fee, provided that
7
+ the above copyright notice appear in all copies and that both that
8
+ copyright notice and this permission notice appear in supporting
9
+ documentation.
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 THE
17
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ Except as contained in this notice, the name of The Open Group shall not be
22
+ used in advertising or otherwise to promote the sale, use or other dealings
23
+ in this Software without prior written authorization from The Open Group.
24
+
25
+ */
26
+
27
+ /*
28
+ * Author: Ralph Mor, X Consortium
29
+ */
30
+
31
+ #ifndef _SMLIB_H_
32
+ #define _SMLIB_H_
33
+
34
+ #include <X11/SM/SM.h>
35
+ #include <X11/ICE/ICElib.h>
36
+
37
+
38
+ /*
39
+ * Generic SM pointer
40
+ */
41
+
42
+ typedef IcePointer SmPointer;
43
+
44
+
45
+ /*
46
+ * Connection objects. Defined in SMlibint.h
47
+ */
48
+
49
+ typedef struct _SmcConn *SmcConn;
50
+ typedef struct _SmsConn *SmsConn;
51
+
52
+
53
+ /*
54
+ * Session Management property
55
+ */
56
+
57
+ typedef struct {
58
+ int length; /* length (in bytes) of the value */
59
+ SmPointer value; /* the value */
60
+ } SmPropValue;
61
+
62
+ typedef struct {
63
+ char *name; /* name of property */
64
+ char *type; /* type of property */
65
+ int num_vals; /* number of values in property */
66
+ SmPropValue *vals; /* the values */
67
+ } SmProp;
68
+
69
+
70
+
71
+ /*
72
+ * SmcCloseConnection status return
73
+ */
74
+
75
+ typedef enum {
76
+ SmcClosedNow,
77
+ SmcClosedASAP,
78
+ SmcConnectionInUse
79
+ } SmcCloseStatus;
80
+
81
+
82
+
83
+ /*
84
+ * Client callbacks
85
+ */
86
+
87
+ typedef void (*SmcSaveYourselfProc) (
88
+ SmcConn /* smcConn */,
89
+ SmPointer /* clientData */,
90
+ int /* saveType */,
91
+ Bool /* shutdown */,
92
+ int /* interactStyle */,
93
+ Bool /* fast */
94
+ );
95
+
96
+ typedef void (*SmcSaveYourselfPhase2Proc) (
97
+ SmcConn /* smcConn */,
98
+ SmPointer /* clientData */
99
+ );
100
+
101
+ typedef void (*SmcInteractProc) (
102
+ SmcConn /* smcConn */,
103
+ SmPointer /* clientData */
104
+ );
105
+
106
+ typedef void (*SmcDieProc) (
107
+ SmcConn /* smcConn */,
108
+ SmPointer /* clientData */
109
+ );
110
+
111
+ typedef void (*SmcShutdownCancelledProc) (
112
+ SmcConn /* smcConn */,
113
+ SmPointer /* clientData */
114
+ );
115
+
116
+ typedef void (*SmcSaveCompleteProc) (
117
+ SmcConn /* smcConn */,
118
+ SmPointer /* clientData */
119
+ );
120
+
121
+ typedef void (*SmcPropReplyProc) (
122
+ SmcConn /* smcConn */,
123
+ SmPointer /* clientData */,
124
+ int /* numProps */,
125
+ SmProp ** /* props */
126
+ );
127
+
128
+
129
+ /*
130
+ * Callbacks set up at SmcOpenConnection time
131
+ */
132
+
133
+ typedef struct {
134
+
135
+ struct {
136
+ SmcSaveYourselfProc callback;
137
+ SmPointer client_data;
138
+ } save_yourself;
139
+
140
+ struct {
141
+ SmcDieProc callback;
142
+ SmPointer client_data;
143
+ } die;
144
+
145
+ struct {
146
+ SmcSaveCompleteProc callback;
147
+ SmPointer client_data;
148
+ } save_complete;
149
+
150
+ struct {
151
+ SmcShutdownCancelledProc callback;
152
+ SmPointer client_data;
153
+ } shutdown_cancelled;
154
+
155
+ } SmcCallbacks;
156
+
157
+ #define SmcSaveYourselfProcMask (1L << 0)
158
+ #define SmcDieProcMask (1L << 1)
159
+ #define SmcSaveCompleteProcMask (1L << 2)
160
+ #define SmcShutdownCancelledProcMask (1L << 3)
161
+
162
+
163
+
164
+ /*
165
+ * Session manager callbacks
166
+ */
167
+
168
+ typedef Status (*SmsRegisterClientProc) (
169
+ SmsConn /* smsConn */,
170
+ SmPointer /* managerData */,
171
+ char * /* previousId */
172
+ );
173
+
174
+ typedef void (*SmsInteractRequestProc) (
175
+ SmsConn /* smsConn */,
176
+ SmPointer /* managerData */,
177
+ int /* dialogType */
178
+ );
179
+
180
+ typedef void (*SmsInteractDoneProc) (
181
+ SmsConn /* smsConn */,
182
+ SmPointer /* managerData */,
183
+ Bool /* cancelShutdown */
184
+ );
185
+
186
+ typedef void (*SmsSaveYourselfRequestProc) (
187
+ SmsConn /* smsConn */,
188
+ SmPointer /* managerData */,
189
+ int /* saveType */,
190
+ Bool /* shutdown */,
191
+ int /* interactStyle */,
192
+ Bool /* fast */,
193
+ Bool /* global */
194
+ );
195
+
196
+ typedef void (*SmsSaveYourselfPhase2RequestProc) (
197
+ SmsConn /* smsConn */,
198
+ SmPointer /* managerData */
199
+ );
200
+
201
+ typedef void (*SmsSaveYourselfDoneProc) (
202
+ SmsConn /* smsConn */,
203
+ SmPointer /* managerData */,
204
+ Bool /* success */
205
+ );
206
+
207
+ typedef void (*SmsCloseConnectionProc) (
208
+ SmsConn /* smsConn */,
209
+ SmPointer /* managerData */,
210
+ int /* count */,
211
+ char ** /* reasonMsgs */
212
+ );
213
+
214
+ typedef void (*SmsSetPropertiesProc) (
215
+ SmsConn /* smsConn */,
216
+ SmPointer /* managerData */,
217
+ int /* numProps */,
218
+ SmProp ** /* props */
219
+ );
220
+
221
+ typedef void (*SmsDeletePropertiesProc) (
222
+ SmsConn /* smsConn */,
223
+ SmPointer /* managerData */,
224
+ int /* numProps */,
225
+ char ** /* propNames */
226
+ );
227
+
228
+ typedef void (*SmsGetPropertiesProc) (
229
+ SmsConn /* smsConn */,
230
+ SmPointer /* managerData */
231
+ );
232
+
233
+
234
+ /*
235
+ * Callbacks set up by a session manager when a new client connects.
236
+ */
237
+
238
+ typedef struct {
239
+
240
+ struct {
241
+ SmsRegisterClientProc callback;
242
+ SmPointer manager_data;
243
+ } register_client;
244
+
245
+ struct {
246
+ SmsInteractRequestProc callback;
247
+ SmPointer manager_data;
248
+ } interact_request;
249
+
250
+ struct {
251
+ SmsInteractDoneProc callback;
252
+ SmPointer manager_data;
253
+ } interact_done;
254
+
255
+ struct {
256
+ SmsSaveYourselfRequestProc callback;
257
+ SmPointer manager_data;
258
+ } save_yourself_request;
259
+
260
+ struct {
261
+ SmsSaveYourselfPhase2RequestProc callback;
262
+ SmPointer manager_data;
263
+ } save_yourself_phase2_request;
264
+
265
+ struct {
266
+ SmsSaveYourselfDoneProc callback;
267
+ SmPointer manager_data;
268
+ } save_yourself_done;
269
+
270
+ struct {
271
+ SmsCloseConnectionProc callback;
272
+ SmPointer manager_data;
273
+ } close_connection;
274
+
275
+ struct {
276
+ SmsSetPropertiesProc callback;
277
+ SmPointer manager_data;
278
+ } set_properties;
279
+
280
+ struct {
281
+ SmsDeletePropertiesProc callback;
282
+ SmPointer manager_data;
283
+ } delete_properties;
284
+
285
+ struct {
286
+ SmsGetPropertiesProc callback;
287
+ SmPointer manager_data;
288
+ } get_properties;
289
+
290
+ } SmsCallbacks;
291
+
292
+
293
+ #define SmsRegisterClientProcMask (1L << 0)
294
+ #define SmsInteractRequestProcMask (1L << 1)
295
+ #define SmsInteractDoneProcMask (1L << 2)
296
+ #define SmsSaveYourselfRequestProcMask (1L << 3)
297
+ #define SmsSaveYourselfP2RequestProcMask (1L << 4)
298
+ #define SmsSaveYourselfDoneProcMask (1L << 5)
299
+ #define SmsCloseConnectionProcMask (1L << 6)
300
+ #define SmsSetPropertiesProcMask (1L << 7)
301
+ #define SmsDeletePropertiesProcMask (1L << 8)
302
+ #define SmsGetPropertiesProcMask (1L << 9)
303
+
304
+
305
+
306
+ typedef Status (*SmsNewClientProc) (
307
+ SmsConn /* smsConn */,
308
+ SmPointer /* managerData */,
309
+ unsigned long * /* maskRet */,
310
+ SmsCallbacks * /* callbacksRet */,
311
+ char ** /* failureReasonRet */
312
+ );
313
+
314
+
315
+
316
+ /*
317
+ * Error handlers
318
+ */
319
+
320
+ typedef void (*SmcErrorHandler) (
321
+ SmcConn /* smcConn */,
322
+ Bool /* swap */,
323
+ int /* offendingMinorOpcode */,
324
+ unsigned long /* offendingSequence */,
325
+ int /* errorClass */,
326
+ int /* severity */,
327
+ SmPointer /* values */
328
+ );
329
+
330
+ typedef void (*SmsErrorHandler) (
331
+ SmsConn /* smsConn */,
332
+ Bool /* swap */,
333
+ int /* offendingMinorOpcode */,
334
+ unsigned long /* offendingSequence */,
335
+ int /* errorClass */,
336
+ int /* severity */,
337
+ SmPointer /* values */
338
+ );
339
+
340
+
341
+
342
+ /*
343
+ * Function Prototypes
344
+ */
345
+
346
+ _XFUNCPROTOBEGIN
347
+
348
+ extern SmcConn SmcOpenConnection (
349
+ char * /* networkIdsList */,
350
+ SmPointer /* context */,
351
+ int /* xsmpMajorRev */,
352
+ int /* xsmpMinorRev */,
353
+ unsigned long /* mask */,
354
+ SmcCallbacks * /* callbacks */,
355
+ const char * /* previousId */,
356
+ char ** /* clientIdRet */,
357
+ int /* errorLength */,
358
+ char * /* errorStringRet */
359
+ );
360
+
361
+ extern SmcCloseStatus SmcCloseConnection (
362
+ SmcConn /* smcConn */,
363
+ int /* count */,
364
+ char ** /* reasonMsgs */
365
+ );
366
+
367
+ extern void SmcModifyCallbacks (
368
+ SmcConn /* smcConn */,
369
+ unsigned long /* mask */,
370
+ SmcCallbacks * /* callbacks */
371
+ );
372
+
373
+ extern void SmcSetProperties (
374
+ SmcConn /* smcConn */,
375
+ int /* numProps */,
376
+ SmProp ** /* props */
377
+ );
378
+
379
+ extern void SmcDeleteProperties (
380
+ SmcConn /* smcConn */,
381
+ int /* numProps */,
382
+ char ** /* propNames */
383
+ );
384
+
385
+ extern Status SmcGetProperties (
386
+ SmcConn /* smcConn */,
387
+ SmcPropReplyProc /* propReplyProc */,
388
+ SmPointer /* clientData */
389
+ );
390
+
391
+ extern Status SmcInteractRequest (
392
+ SmcConn /* smcConn */,
393
+ int /* dialogType */,
394
+ SmcInteractProc /* interactProc */,
395
+ SmPointer /* clientData */
396
+ );
397
+
398
+ extern void SmcInteractDone (
399
+ SmcConn /* smcConn */,
400
+ Bool /* cancelShutdown */
401
+ );
402
+
403
+ extern void SmcRequestSaveYourself (
404
+ SmcConn /* smcConn */,
405
+ int /* saveType */,
406
+ Bool /* shutdown */,
407
+ int /* interactStyle */,
408
+ Bool /* fast */,
409
+ Bool /* global */
410
+ );
411
+
412
+ extern Status SmcRequestSaveYourselfPhase2 (
413
+ SmcConn /* smcConn */,
414
+ SmcSaveYourselfPhase2Proc /* saveYourselfPhase2Proc */,
415
+ SmPointer /* clientData */
416
+ );
417
+
418
+ extern void SmcSaveYourselfDone (
419
+ SmcConn /* smcConn */,
420
+ Bool /* success */
421
+ );
422
+
423
+ extern int SmcProtocolVersion (
424
+ SmcConn /* smcConn */
425
+ );
426
+
427
+ extern int SmcProtocolRevision (
428
+ SmcConn /* smcConn */
429
+ );
430
+
431
+ extern char *SmcVendor (
432
+ SmcConn /* smcConn */
433
+ );
434
+
435
+ extern char *SmcRelease (
436
+ SmcConn /* smcConn */
437
+ );
438
+
439
+ extern char *SmcClientID (
440
+ SmcConn /* smcConn */
441
+ );
442
+
443
+ extern IceConn SmcGetIceConnection (
444
+ SmcConn /* smcConn */
445
+ );
446
+
447
+ extern Status SmsInitialize (
448
+ const char * /* vendor */,
449
+ const char * /* release */,
450
+ SmsNewClientProc /* newClientProc */,
451
+ SmPointer /* managerData */,
452
+ IceHostBasedAuthProc /* hostBasedAuthProc */,
453
+ int /* errorLength */,
454
+ char * /* errorStringRet */
455
+ );
456
+
457
+ extern char *SmsClientHostName (
458
+ SmsConn /* smsConn */
459
+ );
460
+
461
+ extern char *SmsGenerateClientID (
462
+ SmsConn /* smsConn */
463
+ );
464
+
465
+ extern Status SmsRegisterClientReply (
466
+ SmsConn /* smsConn */,
467
+ char * /* clientId */
468
+ );
469
+
470
+ extern void SmsSaveYourself (
471
+ SmsConn /* smsConn */,
472
+ int /* saveType */,
473
+ Bool /* shutdown */,
474
+ int /* interactStyle */,
475
+ Bool /* fast */
476
+ );
477
+
478
+ extern void SmsSaveYourselfPhase2 (
479
+ SmsConn /* smsConn */
480
+ );
481
+
482
+ extern void SmsInteract (
483
+ SmsConn /* smsConn */
484
+ );
485
+
486
+ extern void SmsDie (
487
+ SmsConn /* smsConn */
488
+ );
489
+
490
+ extern void SmsSaveComplete (
491
+ SmsConn /* smsConn */
492
+ );
493
+
494
+ extern void SmsShutdownCancelled (
495
+ SmsConn /* smsConn */
496
+ );
497
+
498
+ extern void SmsReturnProperties (
499
+ SmsConn /* smsConn */,
500
+ int /* numProps */,
501
+ SmProp ** /* props */
502
+ );
503
+
504
+ extern void SmsCleanUp (
505
+ SmsConn /* smsConn */
506
+ );
507
+
508
+ extern int SmsProtocolVersion (
509
+ SmsConn /* smsConn */
510
+ );
511
+
512
+ extern int SmsProtocolRevision (
513
+ SmsConn /* smsConn */
514
+ );
515
+
516
+ extern char *SmsClientID (
517
+ SmsConn /* smsConn */
518
+ );
519
+
520
+ extern IceConn SmsGetIceConnection (
521
+ SmsConn /* smsConn */
522
+ );
523
+
524
+ extern SmcErrorHandler SmcSetErrorHandler (
525
+ SmcErrorHandler /* handler */
526
+ );
527
+
528
+ extern SmsErrorHandler SmsSetErrorHandler (
529
+ SmsErrorHandler /* handler */
530
+ );
531
+
532
+ extern void SmFreeProperty (
533
+ SmProp * /* prop */
534
+ );
535
+
536
+ extern void SmFreeReasons (
537
+ int /* count */,
538
+ char ** /* reasonMsgs */
539
+ );
540
+
541
+ _XFUNCPROTOEND
542
+
543
+ #endif /* _SMLIB_H_ */
data/miniconda3/include/X11/SM/SMproto.h ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+
3
+ Copyright 1993, 1998 The Open Group
4
+
5
+ Permission to use, copy, modify, distribute, and sell this software and its
6
+ documentation for any purpose is hereby granted without fee, provided that
7
+ the above copyright notice appear in all copies and that both that
8
+ copyright notice and this permission notice appear in supporting
9
+ documentation.
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 THE
17
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ Except as contained in this notice, the name of The Open Group shall not be
22
+ used in advertising or otherwise to promote the sale, use or other dealings
23
+ in this Software without prior written authorization from The Open Group.
24
+
25
+ */
26
+
27
+ /*
28
+ * Author: Ralph Mor, X Consortium
29
+ */
30
+
31
+ #ifndef _SMPROTO_H_
32
+ #define _SMPROTO_H_
33
+
34
+ #include <X11/Xmd.h>
35
+
36
+ typedef struct {
37
+ CARD8 majorOpcode;
38
+ CARD8 minorOpcode;
39
+ CARD8 unused[2];
40
+ CARD32 length;
41
+ /* n ARRAY8 previousId */
42
+ } smRegisterClientMsg;
43
+
44
+ typedef struct {
45
+ CARD8 majorOpcode;
46
+ CARD8 minorOpcode;
47
+ CARD8 unused[2];
48
+ CARD32 length;
49
+ /* n ARRAY8 clientId */
50
+ } smRegisterClientReplyMsg;
51
+
52
+ typedef struct {
53
+ CARD8 majorOpcode;
54
+ CARD8 minorOpcode;
55
+ CARD8 unused1[2];
56
+ CARD32 length;
57
+ CARD8 saveType;
58
+ CARD8 shutdown;
59
+ CARD8 interactStyle;
60
+ CARD8 fast;
61
+ CARD8 unused2[4];
62
+ } smSaveYourselfMsg;
63
+
64
+ typedef struct {
65
+ CARD8 majorOpcode;
66
+ CARD8 minorOpcode;
67
+ CARD8 unused1[2];
68
+ CARD32 length;
69
+ CARD8 saveType;
70
+ CARD8 shutdown;
71
+ CARD8 interactStyle;
72
+ CARD8 fast;
73
+ CARD8 global;
74
+ CARD8 unused2[3];
75
+ } smSaveYourselfRequestMsg;
76
+
77
+ typedef struct {
78
+ CARD8 majorOpcode;
79
+ CARD8 minorOpcode;
80
+ CARD8 dialogType;
81
+ CARD8 unused;
82
+ CARD32 length;
83
+ } smInteractRequestMsg;
84
+
85
+ typedef struct {
86
+ CARD8 majorOpcode;
87
+ CARD8 minorOpcode;
88
+ CARD8 unused[2];
89
+ CARD32 length;
90
+ } smInteractMsg;
91
+
92
+ typedef struct {
93
+ CARD8 majorOpcode;
94
+ CARD8 minorOpcode;
95
+ CARD8 cancelShutdown;
96
+ CARD8 unused;
97
+ CARD32 length;
98
+ } smInteractDoneMsg;
99
+
100
+ typedef struct {
101
+ CARD8 majorOpcode;
102
+ CARD8 minorOpcode;
103
+ CARD8 success;
104
+ CARD8 unused;
105
+ CARD32 length;
106
+ } smSaveYourselfDoneMsg;
107
+
108
+ typedef struct {
109
+ CARD8 majorOpcode;
110
+ CARD8 minorOpcode;
111
+ CARD8 unused[2];
112
+ CARD32 length;
113
+ } smDieMsg;
114
+
115
+ typedef struct {
116
+ CARD8 majorOpcode;
117
+ CARD8 minorOpcode;
118
+ CARD8 unused[2];
119
+ CARD32 length;
120
+ } smShutdownCancelledMsg;
121
+
122
+ typedef struct {
123
+ CARD8 majorOpcode;
124
+ CARD8 minorOpcode;
125
+ CARD8 unused[2];
126
+ CARD32 length;
127
+ /* b LISTofARRAY8 reasons */
128
+ } smCloseConnectionMsg;
129
+
130
+ typedef struct {
131
+ CARD8 majorOpcode;
132
+ CARD8 minorOpcode;
133
+ CARD8 unused[2];
134
+ CARD32 length;
135
+ /* a LISTofPROPERTY properties */
136
+ } smSetPropertiesMsg;
137
+
138
+ typedef struct {
139
+ CARD8 majorOpcode;
140
+ CARD8 minorOpcode;
141
+ CARD8 unused[2];
142
+ CARD32 length;
143
+ /* a LISTofARRAY8 property names */
144
+ } smDeletePropertiesMsg;
145
+
146
+ typedef struct {
147
+ CARD8 majorOpcode;
148
+ CARD8 minorOpcode;
149
+ CARD8 unused[2];
150
+ CARD32 length;
151
+ } smGetPropertiesMsg;
152
+
153
+ typedef struct {
154
+ CARD8 majorOpcode;
155
+ CARD8 minorOpcode;
156
+ CARD8 unused[2];
157
+ CARD32 length;
158
+ /* a LISTofPROPERTY properties */
159
+ } smPropertiesReplyMsg;
160
+
161
+ typedef struct {
162
+ CARD8 majorOpcode;
163
+ CARD8 minorOpcode;
164
+ CARD8 unused[2];
165
+ CARD32 length;
166
+ } smSaveYourselfPhase2RequestMsg;
167
+
168
+ typedef struct {
169
+ CARD8 majorOpcode;
170
+ CARD8 minorOpcode;
171
+ CARD8 unused[2];
172
+ CARD32 length;
173
+ } smSaveYourselfPhase2Msg;
174
+
175
+ typedef struct {
176
+ CARD8 majorOpcode;
177
+ CARD8 minorOpcode;
178
+ CARD8 unused[2];
179
+ CARD32 length;
180
+ } smSaveCompleteMsg;
181
+
182
+
183
+ /*
184
+ * SIZEOF values. These better be multiples of 8.
185
+ */
186
+
187
+ #define sz_smRegisterClientMsg 8
188
+ #define sz_smRegisterClientReplyMsg 8
189
+ #define sz_smSaveYourselfMsg 16
190
+ #define sz_smSaveYourselfRequestMsg 16
191
+ #define sz_smInteractRequestMsg 8
192
+ #define sz_smInteractMsg 8
193
+ #define sz_smInteractDoneMsg 8
194
+ #define sz_smSaveYourselfDoneMsg 8
195
+ #define sz_smDieMsg 8
196
+ #define sz_smShutdownCancelledMsg 8
197
+ #define sz_smCloseConnectionMsg 8
198
+ #define sz_smSetPropertiesMsg 8
199
+ #define sz_smDeletePropertiesMsg 8
200
+ #define sz_smGetPropertiesMsg 8
201
+ #define sz_smPropertiesReplyMsg 8
202
+ #define sz_smSaveYourselfPhase2RequestMsg 8
203
+ #define sz_smSaveYourselfPhase2Msg 8
204
+ #define sz_smSaveCompleteMsg 8
205
+
206
+ #endif /* _SMPROTO_H_ */
data/miniconda3/include/X11/extensions/EVI.h ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /************************************************************
2
+ Copyright (c) 1997 by Silicon Graphics Computer Systems, Inc.
3
+ Permission to use, copy, modify, and distribute this
4
+ software and its documentation for any purpose and without
5
+ fee is hereby granted, provided that the above copyright
6
+ notice appear in all copies and that both that copyright
7
+ notice and this permission notice appear in supporting
8
+ documentation, and that the name of Silicon Graphics not be
9
+ used in advertising or publicity pertaining to distribution
10
+ of the software without specific prior written permission.
11
+ Silicon Graphics makes no representation about the suitability
12
+ of this software for any purpose. It is provided "as is"
13
+ without any express or implied warranty.
14
+ SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
15
+ SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
16
+ AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
17
+ GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
18
+ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
19
+ DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
20
+ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
21
+ THE USE OR PERFORMANCE OF THIS SOFTWARE.
22
+ ********************************************************/
23
+
24
+ #ifndef _EVI_H_
25
+ #define _EVI_H_
26
+
27
+ #define XEVI_TRANSPARENCY_NONE 0
28
+ #define XEVI_TRANSPARENCY_PIXEL 1
29
+ #define XEVI_TRANSPARENCY_MASK 2
30
+
31
+ #define EVINAME "Extended-Visual-Information"
32
+
33
+ #define XEVI_MAJOR_VERSION 1 /* current version numbers */
34
+ #define XEVI_MINOR_VERSION 0
35
+
36
+ #endif
data/miniconda3/include/X11/extensions/EVIproto.h ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /************************************************************
2
+ Copyright (c) 1997 by Silicon Graphics Computer Systems, Inc.
3
+ Permission to use, copy, modify, and distribute this
4
+ software and its documentation for any purpose and without
5
+ fee is hereby granted, provided that the above copyright
6
+ notice appear in all copies and that both that copyright
7
+ notice and this permission notice appear in supporting
8
+ documentation, and that the name of Silicon Graphics not be
9
+ used in advertising or publicity pertaining to distribution
10
+ of the software without specific prior written permission.
11
+ Silicon Graphics makes no representation about the suitability
12
+ of this software for any purpose. It is provided "as is"
13
+ without any express or implied warranty.
14
+ SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
15
+ SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
16
+ AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
17
+ GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
18
+ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
19
+ DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
20
+ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
21
+ THE USE OR PERFORMANCE OF THIS SOFTWARE.
22
+ ********************************************************/
23
+
24
+ #ifndef _EVIPROTO_H_
25
+ #define _EVIPROTO_H_
26
+
27
+ #include <X11/extensions/EVI.h>
28
+
29
+ #define X_EVIQueryVersion 0
30
+ #define X_EVIGetVisualInfo 1
31
+
32
+ #define VisualID CARD32
33
+
34
+ typedef CARD32 VisualID32;
35
+ #define sz_VisualID32 4
36
+
37
+ typedef struct _xExtendedVisualInfo {
38
+ VisualID core_visual_id;
39
+ INT8 screen;
40
+ INT8 level;
41
+ CARD8 transparency_type;
42
+ CARD8 pad0;
43
+ CARD32 transparency_value;
44
+ CARD8 min_hw_colormaps;
45
+ CARD8 max_hw_colormaps;
46
+ CARD16 num_colormap_conflicts;
47
+ } xExtendedVisualInfo;
48
+ #define sz_xExtendedVisualInfo 16
49
+
50
+ typedef struct _XEVIQueryVersion {
51
+ CARD8 reqType; /* always XEVIReqCode */
52
+ CARD8 xeviReqType; /* always X_EVIQueryVersion */
53
+ CARD16 length;
54
+ } xEVIQueryVersionReq;
55
+ #define sz_xEVIQueryVersionReq 4
56
+
57
+ typedef struct {
58
+ BYTE type; /* X_Reply */
59
+ CARD8 unused;
60
+ CARD16 sequenceNumber;
61
+ CARD32 length;
62
+ CARD16 majorVersion; /* major version of EVI protocol */
63
+ CARD16 minorVersion; /* minor version of EVI protocol */
64
+ CARD32 pad0;
65
+ CARD32 pad1;
66
+ CARD32 pad2;
67
+ CARD32 pad3;
68
+ CARD32 pad4;
69
+ } xEVIQueryVersionReply;
70
+ #define sz_xEVIQueryVersionReply 32
71
+
72
+ typedef struct _XEVIGetVisualInfoReq {
73
+ CARD8 reqType; /* always XEVIReqCode */
74
+ CARD8 xeviReqType; /* always X_EVIGetVisualInfo */
75
+ CARD16 length;
76
+ CARD32 n_visual;
77
+ } xEVIGetVisualInfoReq;
78
+ #define sz_xEVIGetVisualInfoReq 8
79
+
80
+ typedef struct _XEVIGetVisualInfoReply {
81
+ BYTE type; /* X_Reply */
82
+ CARD8 unused;
83
+ CARD16 sequenceNumber;
84
+ CARD32 length;
85
+ CARD32 n_info;
86
+ CARD32 n_conflicts;
87
+ CARD32 pad0;
88
+ CARD32 pad1;
89
+ CARD32 pad2;
90
+ CARD32 pad3;
91
+ } xEVIGetVisualInfoReply;
92
+ #define sz_xEVIGetVisualInfoReply 32
93
+
94
+ #undef VisualID
95
+
96
+ #endif /* _EVIPROTO_H_ */
data/miniconda3/include/X11/extensions/MITMisc.h ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /************************************************************
2
+
3
+ Copyright 1989, 1998 The Open Group
4
+
5
+ Permission to use, copy, modify, distribute, and sell this software and its
6
+ documentation for any purpose is hereby granted without fee, provided that
7
+ the above copyright notice appear in all copies and that both that
8
+ copyright notice and this permission notice appear in supporting
9
+ documentation.
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 THE
17
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ Except as contained in this notice, the name of The Open Group shall not be
22
+ used in advertising or otherwise to promote the sale, use or other dealings
23
+ in this Software without prior written authorization from The Open Group.
24
+
25
+ ********************************************************/
26
+
27
+ /* RANDOM CRUFT! THIS HAS NO OFFICIAL X CONSORTIUM OR X PROJECT TEAM BLESSING */
28
+
29
+ #ifndef _XMITMISC_H_
30
+ #define _XMITMISC_H_
31
+
32
+ #include <X11/Xfuncproto.h>
33
+ #include <X11/extensions/mitmiscconst.h>
34
+
35
+ _XFUNCPROTOBEGIN
36
+
37
+ Bool XMITMiscQueryExtension(
38
+ Display* /* dpy */,
39
+ int* /* event_basep */,
40
+ int* /* error_basep */
41
+ );
42
+
43
+ Status XMITMiscSetBugMode(
44
+ Display* /* dpy */,
45
+ Bool /* onOff */
46
+ );
47
+
48
+ Bool XMITMiscGetBugMode(
49
+ Display* /* dpy */
50
+ );
51
+
52
+ _XFUNCPROTOEND
53
+
54
+ #endif
data/miniconda3/include/X11/extensions/XEVI.h ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /************************************************************
2
+ Copyright (c) 1997 by Silicon Graphics Computer Systems, Inc.
3
+ Permission to use, copy, modify, and distribute this
4
+ software and its documentation for any purpose and without
5
+ fee is hereby granted, provided that the above copyright
6
+ notice appear in all copies and that both that copyright
7
+ notice and this permission notice appear in supporting
8
+ documentation, and that the name of Silicon Graphics not be
9
+ used in advertising or publicity pertaining to distribution
10
+ of the software without specific prior written permission.
11
+ Silicon Graphics makes no representation about the suitability
12
+ of this software for any purpose. It is provided "as is"
13
+ without any express or implied warranty.
14
+ SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
15
+ SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
16
+ AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
17
+ GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
18
+ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
19
+ DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
20
+ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
21
+ THE USE OR PERFORMANCE OF THIS SOFTWARE.
22
+ ********************************************************/
23
+
24
+ #ifndef _XEVI_H_
25
+ #define _XEVI_H_
26
+ #include <X11/Xfuncproto.h>
27
+ #include <X11/extensions/EVI.h>
28
+
29
+ typedef struct {
30
+ VisualID core_visual_id;
31
+ int screen;
32
+ int level;
33
+ unsigned int transparency_type;
34
+ unsigned int transparency_value;
35
+ unsigned int min_hw_colormaps;
36
+ unsigned int max_hw_colormaps;
37
+ unsigned int num_colormap_conflicts;
38
+ VisualID* colormap_conflicts;
39
+ } ExtendedVisualInfo;
40
+
41
+ _XFUNCPROTOBEGIN
42
+
43
+ Bool XeviQueryExtension(
44
+ Display* /* dpy */
45
+ );
46
+ Status XeviQueryVersion(
47
+ Display* /* dpy */,
48
+ int* /* majorVersion */,
49
+ int* /* minorVersion */
50
+ );
51
+ Status XeviGetVisualInfo(
52
+ Display* /* dpy */,
53
+ VisualID* /* visual_query */,
54
+ int /* nVisual_query */,
55
+ ExtendedVisualInfo** /* extendedVisualInfo_return */,
56
+ int* /* nInfo_return */
57
+ );
58
+
59
+ _XFUNCPROTOEND
60
+
61
+ #endif
data/miniconda3/include/X11/extensions/XI.h ADDED
@@ -0,0 +1,308 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /************************************************************
2
+
3
+ Copyright 1989, 1998 The Open Group
4
+
5
+ Permission to use, copy, modify, distribute, and sell this software and its
6
+ documentation for any purpose is hereby granted without fee, provided that
7
+ the above copyright notice appear in all copies and that both that
8
+ copyright notice and this permission notice appear in supporting
9
+ documentation.
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 THE
17
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ Except as contained in this notice, the name of The Open Group shall not be
22
+ used in advertising or otherwise to promote the sale, use or other dealings
23
+ in this Software without prior written authorization from The Open Group.
24
+
25
+ Copyright 1989 by Hewlett-Packard Company, Palo Alto, California.
26
+
27
+ All Rights Reserved
28
+
29
+ Permission to use, copy, modify, and distribute this software and its
30
+ documentation for any purpose and without fee is hereby granted,
31
+ provided that the above copyright notice appear in all copies and that
32
+ both that copyright notice and this permission notice appear in
33
+ supporting documentation, and that the name of Hewlett-Packard not be
34
+ used in advertising or publicity pertaining to distribution of the
35
+ software without specific, written prior permission.
36
+
37
+ HEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
38
+ ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
39
+ HEWLETT-PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
40
+ ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
41
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
42
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
43
+ SOFTWARE.
44
+
45
+ ********************************************************/
46
+
47
+ /* Definitions used by the server, library and client */
48
+
49
+ #ifndef _XI_H_
50
+ #define _XI_H_
51
+
52
+ #define sz_xGetExtensionVersionReq 8
53
+ #define sz_xGetExtensionVersionReply 32
54
+ #define sz_xListInputDevicesReq 4
55
+ #define sz_xListInputDevicesReply 32
56
+ #define sz_xOpenDeviceReq 8
57
+ #define sz_xOpenDeviceReply 32
58
+ #define sz_xCloseDeviceReq 8
59
+ #define sz_xSetDeviceModeReq 8
60
+ #define sz_xSetDeviceModeReply 32
61
+ #define sz_xSelectExtensionEventReq 12
62
+ #define sz_xGetSelectedExtensionEventsReq 8
63
+ #define sz_xGetSelectedExtensionEventsReply 32
64
+ #define sz_xChangeDeviceDontPropagateListReq 12
65
+ #define sz_xGetDeviceDontPropagateListReq 8
66
+ #define sz_xGetDeviceDontPropagateListReply 32
67
+ #define sz_xGetDeviceMotionEventsReq 16
68
+ #define sz_xGetDeviceMotionEventsReply 32
69
+ #define sz_xChangeKeyboardDeviceReq 8
70
+ #define sz_xChangeKeyboardDeviceReply 32
71
+ #define sz_xChangePointerDeviceReq 8
72
+ #define sz_xChangePointerDeviceReply 32
73
+ #define sz_xGrabDeviceReq 20
74
+ #define sz_xGrabDeviceReply 32
75
+ #define sz_xUngrabDeviceReq 12
76
+ #define sz_xGrabDeviceKeyReq 20
77
+ #define sz_xGrabDeviceKeyReply 32
78
+ #define sz_xUngrabDeviceKeyReq 16
79
+ #define sz_xGrabDeviceButtonReq 20
80
+ #define sz_xGrabDeviceButtonReply 32
81
+ #define sz_xUngrabDeviceButtonReq 16
82
+ #define sz_xAllowDeviceEventsReq 12
83
+ #define sz_xGetDeviceFocusReq 8
84
+ #define sz_xGetDeviceFocusReply 32
85
+ #define sz_xSetDeviceFocusReq 16
86
+ #define sz_xGetFeedbackControlReq 8
87
+ #define sz_xGetFeedbackControlReply 32
88
+ #define sz_xChangeFeedbackControlReq 12
89
+ #define sz_xGetDeviceKeyMappingReq 8
90
+ #define sz_xGetDeviceKeyMappingReply 32
91
+ #define sz_xChangeDeviceKeyMappingReq 8
92
+ #define sz_xGetDeviceModifierMappingReq 8
93
+ #define sz_xSetDeviceModifierMappingReq 8
94
+ #define sz_xSetDeviceModifierMappingReply 32
95
+ #define sz_xGetDeviceButtonMappingReq 8
96
+ #define sz_xGetDeviceButtonMappingReply 32
97
+ #define sz_xSetDeviceButtonMappingReq 8
98
+ #define sz_xSetDeviceButtonMappingReply 32
99
+ #define sz_xQueryDeviceStateReq 8
100
+ #define sz_xQueryDeviceStateReply 32
101
+ #define sz_xSendExtensionEventReq 16
102
+ #define sz_xDeviceBellReq 8
103
+ #define sz_xSetDeviceValuatorsReq 8
104
+ #define sz_xSetDeviceValuatorsReply 32
105
+ #define sz_xGetDeviceControlReq 8
106
+ #define sz_xGetDeviceControlReply 32
107
+ #define sz_xChangeDeviceControlReq 8
108
+ #define sz_xChangeDeviceControlReply 32
109
+ #define sz_xListDevicePropertiesReq 8
110
+ #define sz_xListDevicePropertiesReply 32
111
+ #define sz_xChangeDevicePropertyReq 20
112
+ #define sz_xDeleteDevicePropertyReq 12
113
+ #define sz_xGetDevicePropertyReq 24
114
+ #define sz_xGetDevicePropertyReply 32
115
+
116
+ #define INAME "XInputExtension"
117
+
118
+ #define XI_KEYBOARD "KEYBOARD"
119
+ #define XI_MOUSE "MOUSE"
120
+ #define XI_TABLET "TABLET"
121
+ #define XI_TOUCHSCREEN "TOUCHSCREEN"
122
+ #define XI_TOUCHPAD "TOUCHPAD"
123
+ #define XI_BARCODE "BARCODE"
124
+ #define XI_BUTTONBOX "BUTTONBOX"
125
+ #define XI_KNOB_BOX "KNOB_BOX"
126
+ #define XI_ONE_KNOB "ONE_KNOB"
127
+ #define XI_NINE_KNOB "NINE_KNOB"
128
+ #define XI_TRACKBALL "TRACKBALL"
129
+ #define XI_QUADRATURE "QUADRATURE"
130
+ #define XI_ID_MODULE "ID_MODULE"
131
+ #define XI_SPACEBALL "SPACEBALL"
132
+ #define XI_DATAGLOVE "DATAGLOVE"
133
+ #define XI_EYETRACKER "EYETRACKER"
134
+ #define XI_CURSORKEYS "CURSORKEYS"
135
+ #define XI_FOOTMOUSE "FOOTMOUSE"
136
+ #define XI_JOYSTICK "JOYSTICK"
137
+
138
+ /* Indices into the versions[] array (XExtInt.c). Used as a index to
139
+ * retrieve the minimum version of XI from _XiCheckExtInit */
140
+ #define Dont_Check 0
141
+ #define XInput_Initial_Release 1
142
+ #define XInput_Add_XDeviceBell 2
143
+ #define XInput_Add_XSetDeviceValuators 3
144
+ #define XInput_Add_XChangeDeviceControl 4
145
+ #define XInput_Add_DevicePresenceNotify 5
146
+ #define XInput_Add_DeviceProperties 6
147
+ /* DO NOT ADD TO HERE -> XI2 */
148
+
149
+ #define XI_Absent 0
150
+ #define XI_Present 1
151
+
152
+ #define XI_Initial_Release_Major 1
153
+ #define XI_Initial_Release_Minor 0
154
+
155
+ #define XI_Add_XDeviceBell_Major 1
156
+ #define XI_Add_XDeviceBell_Minor 1
157
+
158
+ #define XI_Add_XSetDeviceValuators_Major 1
159
+ #define XI_Add_XSetDeviceValuators_Minor 2
160
+
161
+ #define XI_Add_XChangeDeviceControl_Major 1
162
+ #define XI_Add_XChangeDeviceControl_Minor 3
163
+
164
+ #define XI_Add_DevicePresenceNotify_Major 1
165
+ #define XI_Add_DevicePresenceNotify_Minor 4
166
+
167
+ #define XI_Add_DeviceProperties_Major 1
168
+ #define XI_Add_DeviceProperties_Minor 5
169
+
170
+ #define DEVICE_RESOLUTION 1
171
+ #define DEVICE_ABS_CALIB 2
172
+ #define DEVICE_CORE 3
173
+ #define DEVICE_ENABLE 4
174
+ #define DEVICE_ABS_AREA 5
175
+
176
+ #define NoSuchExtension 1
177
+
178
+ #define COUNT 0
179
+ #define CREATE 1
180
+
181
+ #define NewPointer 0
182
+ #define NewKeyboard 1
183
+
184
+ #define XPOINTER 0
185
+ #define XKEYBOARD 1
186
+
187
+ #define UseXKeyboard 0xFF
188
+
189
+ #define IsXPointer 0
190
+ #define IsXKeyboard 1
191
+ #define IsXExtensionDevice 2
192
+ #define IsXExtensionKeyboard 3
193
+ #define IsXExtensionPointer 4
194
+
195
+ #define AsyncThisDevice 0
196
+ #define SyncThisDevice 1
197
+ #define ReplayThisDevice 2
198
+ #define AsyncOtherDevices 3
199
+ #define AsyncAll 4
200
+ #define SyncAll 5
201
+
202
+ #define FollowKeyboard 3
203
+ #ifndef RevertToFollowKeyboard
204
+ #define RevertToFollowKeyboard 3
205
+ #endif
206
+
207
+ #define DvAccelNum (1L << 0)
208
+ #define DvAccelDenom (1L << 1)
209
+ #define DvThreshold (1L << 2)
210
+
211
+ #define DvKeyClickPercent (1L<<0)
212
+ #define DvPercent (1L<<1)
213
+ #define DvPitch (1L<<2)
214
+ #define DvDuration (1L<<3)
215
+ #define DvLed (1L<<4)
216
+ #define DvLedMode (1L<<5)
217
+ #define DvKey (1L<<6)
218
+ #define DvAutoRepeatMode (1L<<7)
219
+
220
+ #define DvString (1L << 0)
221
+
222
+ #define DvInteger (1L << 0)
223
+
224
+ #define DeviceMode (1L << 0)
225
+ #define Relative 0
226
+ #define Absolute 1
227
+
228
+ #define ProximityState (1L << 1)
229
+ #define InProximity (0L << 1)
230
+ #define OutOfProximity (1L << 1)
231
+
232
+ #define AddToList 0
233
+ #define DeleteFromList 1
234
+
235
+ #define KeyClass 0
236
+ #define ButtonClass 1
237
+ #define ValuatorClass 2
238
+ #define FeedbackClass 3
239
+ #define ProximityClass 4
240
+ #define FocusClass 5
241
+ #define OtherClass 6
242
+ #define AttachClass 7
243
+
244
+ #define KbdFeedbackClass 0
245
+ #define PtrFeedbackClass 1
246
+ #define StringFeedbackClass 2
247
+ #define IntegerFeedbackClass 3
248
+ #define LedFeedbackClass 4
249
+ #define BellFeedbackClass 5
250
+
251
+ #define _devicePointerMotionHint 0
252
+ #define _deviceButton1Motion 1
253
+ #define _deviceButton2Motion 2
254
+ #define _deviceButton3Motion 3
255
+ #define _deviceButton4Motion 4
256
+ #define _deviceButton5Motion 5
257
+ #define _deviceButtonMotion 6
258
+ #define _deviceButtonGrab 7
259
+ #define _deviceOwnerGrabButton 8
260
+ #define _noExtensionEvent 9
261
+
262
+ #define _devicePresence 0
263
+
264
+ #define _deviceEnter 0
265
+ #define _deviceLeave 1
266
+
267
+ /* Device presence notify states */
268
+ #define DeviceAdded 0
269
+ #define DeviceRemoved 1
270
+ #define DeviceEnabled 2
271
+ #define DeviceDisabled 3
272
+ #define DeviceUnrecoverable 4
273
+ #define DeviceControlChanged 5
274
+
275
+ /* XI Errors */
276
+ #define XI_BadDevice 0
277
+ #define XI_BadEvent 1
278
+ #define XI_BadMode 2
279
+ #define XI_DeviceBusy 3
280
+ #define XI_BadClass 4
281
+
282
+ /*
283
+ * Make XEventClass be a CARD32 for 64 bit servers. Don't affect client
284
+ * definition of XEventClass since that would be a library interface change.
285
+ * See the top of X.h for more _XSERVER64 magic.
286
+ *
287
+ * But, don't actually use the CARD32 type. We can't get it defined here
288
+ * without polluting the namespace.
289
+ */
290
+ #ifdef _XSERVER64
291
+ typedef unsigned int XEventClass;
292
+ #else
293
+ typedef unsigned long XEventClass;
294
+ #endif
295
+
296
+ /*******************************************************************
297
+ *
298
+ * Extension version structure.
299
+ *
300
+ */
301
+
302
+ typedef struct {
303
+ int present;
304
+ short major_version;
305
+ short minor_version;
306
+ } XExtensionVersion;
307
+
308
+ #endif /* _XI_H_ */
data/miniconda3/include/X11/extensions/XI2.h ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright © 2009 Red Hat, Inc.
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 (including the next
12
+ * paragraph) shall be included in all copies or substantial portions of the
13
+ * 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
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ #ifndef _XI2_H_
26
+ #define _XI2_H_
27
+
28
+ #define XInput_2_0 7
29
+ /* DO NOT ADD TO THIS LIST. These are libXi-specific defines.
30
+ See commit libXi-1.4.2-21-ge8531dd */
31
+
32
+ #define XI_2_Major 2
33
+ #define XI_2_Minor 4
34
+
35
+ /* Property event flags */
36
+ #define XIPropertyDeleted 0
37
+ #define XIPropertyCreated 1
38
+ #define XIPropertyModified 2
39
+
40
+ /* Property modes */
41
+ #define XIPropModeReplace 0
42
+ #define XIPropModePrepend 1
43
+ #define XIPropModeAppend 2
44
+
45
+ /* Special property type used for XIGetProperty */
46
+ #define XIAnyPropertyType 0L
47
+
48
+ /* Enter/Leave and Focus In/Out modes */
49
+ #define XINotifyNormal 0
50
+ #define XINotifyGrab 1
51
+ #define XINotifyUngrab 2
52
+ #define XINotifyWhileGrabbed 3
53
+ #define XINotifyPassiveGrab 4
54
+ #define XINotifyPassiveUngrab 5
55
+
56
+ /* Enter/Leave and focus In/out detail */
57
+ #define XINotifyAncestor 0
58
+ #define XINotifyVirtual 1
59
+ #define XINotifyInferior 2
60
+ #define XINotifyNonlinear 3
61
+ #define XINotifyNonlinearVirtual 4
62
+ #define XINotifyPointer 5
63
+ #define XINotifyPointerRoot 6
64
+ #define XINotifyDetailNone 7
65
+
66
+ /* Grab modes */
67
+ #define XIGrabModeSync 0
68
+ #define XIGrabModeAsync 1
69
+ #define XIGrabModeTouch 2
70
+
71
+ /* Grab reply status codes */
72
+ #define XIGrabSuccess 0
73
+ #define XIAlreadyGrabbed 1
74
+ #define XIGrabInvalidTime 2
75
+ #define XIGrabNotViewable 3
76
+ #define XIGrabFrozen 4
77
+
78
+ /* Grab owner events values */
79
+ #define XIOwnerEvents True
80
+ #define XINoOwnerEvents False
81
+
82
+ /* Passive grab types */
83
+ #define XIGrabtypeButton 0
84
+ #define XIGrabtypeKeycode 1
85
+ #define XIGrabtypeEnter 2
86
+ #define XIGrabtypeFocusIn 3
87
+ #define XIGrabtypeTouchBegin 4
88
+ #define XIGrabtypeGesturePinchBegin 5
89
+ #define XIGrabtypeGestureSwipeBegin 6
90
+
91
+ /* Passive grab modifier */
92
+ #define XIAnyModifier (1U << 31)
93
+ #define XIAnyButton 0
94
+ #define XIAnyKeycode 0
95
+
96
+ /* XIAllowEvents event-modes */
97
+ #define XIAsyncDevice 0
98
+ #define XISyncDevice 1
99
+ #define XIReplayDevice 2
100
+ #define XIAsyncPairedDevice 3
101
+ #define XIAsyncPair 4
102
+ #define XISyncPair 5
103
+ #define XIAcceptTouch 6
104
+ #define XIRejectTouch 7
105
+
106
+ /* DeviceChangedEvent change reasons */
107
+ #define XISlaveSwitch 1
108
+ #define XIDeviceChange 2
109
+
110
+ /* Hierarchy flags */
111
+ #define XIMasterAdded (1 << 0)
112
+ #define XIMasterRemoved (1 << 1)
113
+ #define XISlaveAdded (1 << 2)
114
+ #define XISlaveRemoved (1 << 3)
115
+ #define XISlaveAttached (1 << 4)
116
+ #define XISlaveDetached (1 << 5)
117
+ #define XIDeviceEnabled (1 << 6)
118
+ #define XIDeviceDisabled (1 << 7)
119
+
120
+ /* ChangeHierarchy constants */
121
+ #define XIAddMaster 1
122
+ #define XIRemoveMaster 2
123
+ #define XIAttachSlave 3
124
+ #define XIDetachSlave 4
125
+
126
+ #define XIAttachToMaster 1
127
+ #define XIFloating 2
128
+
129
+ /* Valuator modes */
130
+ #define XIModeRelative 0
131
+ #define XIModeAbsolute 1
132
+
133
+ /* Device types */
134
+ #define XIMasterPointer 1
135
+ #define XIMasterKeyboard 2
136
+ #define XISlavePointer 3
137
+ #define XISlaveKeyboard 4
138
+ #define XIFloatingSlave 5
139
+
140
+ /* Device classes: classes that are not identical to Xi 1.x classes must be
141
+ * numbered starting from 8. */
142
+ #define XIKeyClass 0
143
+ #define XIButtonClass 1
144
+ #define XIValuatorClass 2
145
+ #define XIScrollClass 3
146
+ #define XITouchClass 8
147
+ #define XIGestureClass 9
148
+
149
+ /* Scroll class types */
150
+ #define XIScrollTypeVertical 1
151
+ #define XIScrollTypeHorizontal 2
152
+
153
+ /* Scroll class flags */
154
+ #define XIScrollFlagNoEmulation (1 << 0)
155
+ #define XIScrollFlagPreferred (1 << 1)
156
+
157
+ /* Device event flags (common) */
158
+ /* Device event flags (key events only) */
159
+ #define XIKeyRepeat (1 << 16)
160
+ /* Device event flags (pointer events only) */
161
+ #define XIPointerEmulated (1 << 16)
162
+ /* Device event flags (touch events only) */
163
+ #define XITouchPendingEnd (1 << 16)
164
+ #define XITouchEmulatingPointer (1 << 17)
165
+
166
+ /* Barrier event flags */
167
+ #define XIBarrierPointerReleased (1 << 0)
168
+ #define XIBarrierDeviceIsGrabbed (1 << 1)
169
+
170
+ /* Gesture pinch event flags */
171
+ #define XIGesturePinchEventCancelled (1 << 0)
172
+
173
+ /* Gesture swipe event flags */
174
+ #define XIGestureSwipeEventCancelled (1 << 0)
175
+
176
+ /* Touch modes */
177
+ #define XIDirectTouch 1
178
+ #define XIDependentTouch 2
179
+
180
+ /* XI2 event mask macros */
181
+ #define XISetMask(ptr, event) (((unsigned char*)(ptr))[(event)>>3] |= (1 << ((event) & 7)))
182
+ #define XIClearMask(ptr, event) (((unsigned char*)(ptr))[(event)>>3] &= ~(1 << ((event) & 7)))
183
+ #define XIMaskIsSet(ptr, event) (((unsigned char*)(ptr))[(event)>>3] & (1 << ((event) & 7)))
184
+ #define XIMaskLen(event) (((event) >> 3) + 1)
185
+
186
+ /* Fake device ID's for event selection */
187
+ #define XIAllDevices 0
188
+ #define XIAllMasterDevices 1
189
+
190
+ /* Event types */
191
+ #define XI_DeviceChanged 1
192
+ #define XI_KeyPress 2
193
+ #define XI_KeyRelease 3
194
+ #define XI_ButtonPress 4
195
+ #define XI_ButtonRelease 5
196
+ #define XI_Motion 6
197
+ #define XI_Enter 7
198
+ #define XI_Leave 8
199
+ #define XI_FocusIn 9
200
+ #define XI_FocusOut 10
201
+ #define XI_HierarchyChanged 11
202
+ #define XI_PropertyEvent 12
203
+ #define XI_RawKeyPress 13
204
+ #define XI_RawKeyRelease 14
205
+ #define XI_RawButtonPress 15
206
+ #define XI_RawButtonRelease 16
207
+ #define XI_RawMotion 17
208
+ #define XI_TouchBegin 18 /* XI 2.2 */
209
+ #define XI_TouchUpdate 19
210
+ #define XI_TouchEnd 20
211
+ #define XI_TouchOwnership 21
212
+ #define XI_RawTouchBegin 22
213
+ #define XI_RawTouchUpdate 23
214
+ #define XI_RawTouchEnd 24
215
+ #define XI_BarrierHit 25 /* XI 2.3 */
216
+ #define XI_BarrierLeave 26
217
+ #define XI_GesturePinchBegin 27 /* XI 2.4 */
218
+ #define XI_GesturePinchUpdate 28
219
+ #define XI_GesturePinchEnd 29
220
+ #define XI_GestureSwipeBegin 30
221
+ #define XI_GestureSwipeUpdate 31
222
+ #define XI_GestureSwipeEnd 32
223
+ #define XI_LASTEVENT XI_GestureSwipeEnd
224
+ /* NOTE: XI2LASTEVENT in xserver/include/inputstr.h must be the same value
225
+ * as XI_LASTEVENT if the server is supposed to handle masks etc. for this
226
+ * type of event. */
227
+
228
+ /* Event masks.
229
+ * Note: the protocol spec defines a mask to be of (1 << type). Clients are
230
+ * free to create masks by bitshifting instead of using these defines.
231
+ */
232
+ #define XI_DeviceChangedMask (1 << XI_DeviceChanged)
233
+ #define XI_KeyPressMask (1 << XI_KeyPress)
234
+ #define XI_KeyReleaseMask (1 << XI_KeyRelease)
235
+ #define XI_ButtonPressMask (1 << XI_ButtonPress)
236
+ #define XI_ButtonReleaseMask (1 << XI_ButtonRelease)
237
+ #define XI_MotionMask (1 << XI_Motion)
238
+ #define XI_EnterMask (1 << XI_Enter)
239
+ #define XI_LeaveMask (1 << XI_Leave)
240
+ #define XI_FocusInMask (1 << XI_FocusIn)
241
+ #define XI_FocusOutMask (1 << XI_FocusOut)
242
+ #define XI_HierarchyChangedMask (1 << XI_HierarchyChanged)
243
+ #define XI_PropertyEventMask (1 << XI_PropertyEvent)
244
+ #define XI_RawKeyPressMask (1 << XI_RawKeyPress)
245
+ #define XI_RawKeyReleaseMask (1 << XI_RawKeyRelease)
246
+ #define XI_RawButtonPressMask (1 << XI_RawButtonPress)
247
+ #define XI_RawButtonReleaseMask (1 << XI_RawButtonRelease)
248
+ #define XI_RawMotionMask (1 << XI_RawMotion)
249
+ #define XI_TouchBeginMask (1 << XI_TouchBegin)
250
+ #define XI_TouchEndMask (1 << XI_TouchEnd)
251
+ #define XI_TouchOwnershipChangedMask (1 << XI_TouchOwnership)
252
+ #define XI_TouchUpdateMask (1 << XI_TouchUpdate)
253
+ #define XI_RawTouchBeginMask (1 << XI_RawTouchBegin)
254
+ #define XI_RawTouchEndMask (1 << XI_RawTouchEnd)
255
+ #define XI_RawTouchUpdateMask (1 << XI_RawTouchUpdate)
256
+ #define XI_BarrierHitMask (1 << XI_BarrierHit)
257
+ #define XI_BarrierLeaveMask (1 << XI_BarrierLeave)
258
+
259
+ #endif /* _XI2_H_ */
data/miniconda3/include/X11/extensions/XI2proto.h ADDED
@@ -0,0 +1,1169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright © 2009 Red Hat, Inc.
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 (including the next
12
+ * paragraph) shall be included in all copies or substantial portions of the
13
+ * 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
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ /* Conventions for this file:
26
+ * Names:
27
+ * structs: always typedef'd, prefixed with xXI, CamelCase
28
+ * struct members: lower_case_with_underscores
29
+ * Exceptions: reqType, ReqType, repType, RepType, sequenceNumber are
30
+ * named as such for historical reasons.
31
+ * request opcodes: X_XIRequestName as CamelCase
32
+ * defines: defines used in client applications must go in XI2.h
33
+ * defines used only in protocol handling: XISOMENAME
34
+ *
35
+ * Data types: unless there is a historical name for a datatype (e.g.
36
+ * Window), use stdint types specifying the size of the datatype.
37
+ * historical data type names must be defined and undefined at the top and
38
+ * end of the file.
39
+ *
40
+ * General:
41
+ * spaces, not tabs.
42
+ * structs specific to a request or reply added before the request
43
+ * definition. structs used in more than one request, reply or event
44
+ * appended to the common structs section before the definition of the
45
+ * first request.
46
+ * members of structs vertically aligned on column 16 if datatypes permit.
47
+ * otherwise aligned on next available 8n column.
48
+ */
49
+
50
+ /**
51
+ * Protocol definitions for the XI2 protocol.
52
+ * This file should not be included by clients that merely use XI2, but do not
53
+ * need the wire protocol. Such clients should include XI2.h, or the matching
54
+ * header from the library.
55
+ *
56
+ */
57
+ #ifndef _XI2PROTO_H_
58
+ #define _XI2PROTO_H_
59
+
60
+ #include <X11/Xproto.h>
61
+ #include <X11/X.h>
62
+ #include <X11/extensions/XI2.h>
63
+ #include <stdint.h>
64
+
65
+ /* make sure types have right sizes for protocol structures. */
66
+ #define Window uint32_t
67
+ #define Time uint32_t
68
+ #define Atom uint32_t
69
+ #define Cursor uint32_t
70
+ #define Barrier uint32_t
71
+
72
+ /**
73
+ * XI2 Request opcodes
74
+ */
75
+ #define X_XIQueryPointer 40
76
+ #define X_XIWarpPointer 41
77
+ #define X_XIChangeCursor 42
78
+ #define X_XIChangeHierarchy 43
79
+ #define X_XISetClientPointer 44
80
+ #define X_XIGetClientPointer 45
81
+ #define X_XISelectEvents 46
82
+ #define X_XIQueryVersion 47
83
+ #define X_XIQueryDevice 48
84
+ #define X_XISetFocus 49
85
+ #define X_XIGetFocus 50
86
+ #define X_XIGrabDevice 51
87
+ #define X_XIUngrabDevice 52
88
+ #define X_XIAllowEvents 53
89
+ #define X_XIPassiveGrabDevice 54
90
+ #define X_XIPassiveUngrabDevice 55
91
+ #define X_XIListProperties 56
92
+ #define X_XIChangeProperty 57
93
+ #define X_XIDeleteProperty 58
94
+ #define X_XIGetProperty 59
95
+ #define X_XIGetSelectedEvents 60
96
+ #define X_XIBarrierReleasePointer 61
97
+
98
+ /** Number of XI requests */
99
+ #define XI2REQUESTS (X_XIBarrierReleasePointer - X_XIQueryPointer + 1)
100
+ /** Number of XI2 events */
101
+ #define XI2EVENTS (XI_LASTEVENT + 1)
102
+
103
+ /*************************************************************************************
104
+ * *
105
+ * COMMON STRUCTS *
106
+ * *
107
+ *************************************************************************************/
108
+ /** Fixed point 16.16 */
109
+ typedef int32_t FP1616;
110
+
111
+ /** Fixed point 32.32 */
112
+ typedef struct {
113
+ int32_t integral;
114
+ uint32_t frac;
115
+ } FP3232;
116
+
117
+ /**
118
+ * Struct to describe a device.
119
+ *
120
+ * For a MasterPointer or a MasterKeyboard, 'attachment' specifies the
121
+ * paired master device.
122
+ * For a SlaveKeyboard or SlavePointer, 'attachment' specifies the master
123
+ * device this device is attached to.
124
+ * For a FloatingSlave, 'attachment' is undefined.
125
+ */
126
+ typedef struct {
127
+ uint16_t deviceid;
128
+ uint16_t use; /**< ::XIMasterPointer, ::XIMasterKeyboard,
129
+ ::XISlavePointer, ::XISlaveKeyboard,
130
+ ::XIFloatingSlave */
131
+ uint16_t attachment; /**< Current attachment or pairing.*/
132
+ uint16_t num_classes; /**< Number of classes following this struct. */
133
+ uint16_t name_len; /**< Length of name in bytes. */
134
+ uint8_t enabled; /**< TRUE if device is enabled. */
135
+ uint8_t pad;
136
+ } xXIDeviceInfo;
137
+
138
+ /**
139
+ * Default template for a device class.
140
+ * A device class is equivalent to a device's capabilities. Multiple classes
141
+ * are supported per device.
142
+ */
143
+ typedef struct {
144
+ uint16_t type; /**< One of *class */
145
+ uint16_t length; /**< Length in 4 byte units */
146
+ uint16_t sourceid; /**< source device for this class */
147
+ uint16_t pad;
148
+ } xXIAnyInfo;
149
+
150
+ /**
151
+ * Denotes button capability on a device.
152
+ * Struct is followed by a button bit-mask (padded to four byte chunks) and
153
+ * then num_buttons * Atom that names the buttons in the device-native setup
154
+ * (i.e. ignoring button mappings).
155
+ */
156
+ typedef struct {
157
+ uint16_t type; /**< Always ButtonClass */
158
+ uint16_t length; /**< Length in 4 byte units */
159
+ uint16_t sourceid; /**< source device for this class */
160
+ uint16_t num_buttons; /**< Number of buttons provided */
161
+ } xXIButtonInfo;
162
+
163
+ /**
164
+ * Denotes key capability on a device.
165
+ * Struct is followed by num_keys * CARD32 that lists the keycodes available
166
+ * on the device.
167
+ */
168
+ typedef struct {
169
+ uint16_t type; /**< Always KeyClass */
170
+ uint16_t length; /**< Length in 4 byte units */
171
+ uint16_t sourceid; /**< source device for this class */
172
+ uint16_t num_keycodes; /**< Number of keys provided */
173
+ } xXIKeyInfo;
174
+
175
+ /**
176
+ * Denotes an valuator capability on a device.
177
+ * One XIValuatorInfo describes exactly one valuator (axis) on the device.
178
+ */
179
+ typedef struct {
180
+ uint16_t type; /**< Always ValuatorClass */
181
+ uint16_t length; /**< Length in 4 byte units */
182
+ uint16_t sourceid; /**< source device for this class */
183
+ uint16_t number; /**< Valuator number */
184
+ Atom label; /**< Axis label */
185
+ FP3232 min; /**< Min value */
186
+ FP3232 max; /**< Max value */
187
+ FP3232 value; /**< Last published value */
188
+ uint32_t resolution; /**< Resolutions in units/m */
189
+ uint8_t mode; /**< ModeRelative or ModeAbsolute */
190
+ uint8_t pad1;
191
+ uint16_t pad2;
192
+ } xXIValuatorInfo;
193
+
194
+ /***
195
+ * Denotes a scroll valuator on a device.
196
+ * One XIScrollInfo describes exactly one scroll valuator that must have a
197
+ * XIValuatorInfo struct.
198
+ */
199
+ typedef struct {
200
+ uint16_t type; /**< Always ValuatorClass */
201
+ uint16_t length; /**< Length in 4 byte units */
202
+ uint16_t sourceid; /**< source device for this class */
203
+ uint16_t number; /**< Valuator number */
204
+ uint16_t scroll_type; /**< ::XIScrollTypeVertical, ::XIScrollTypeHorizontal */
205
+ uint16_t pad0;
206
+ uint32_t flags; /**< ::XIScrollFlagEmulate, ::XIScrollFlagPreferred */
207
+ FP3232 increment; /**< Increment for one unit of scrolling */
208
+ } xXIScrollInfo;
209
+
210
+ /**
211
+ * Denotes multitouch capability on a device.
212
+ */
213
+ typedef struct {
214
+ uint16_t type; /**< Always TouchClass */
215
+ uint16_t length; /**< Length in 4 byte units */
216
+ uint16_t sourceid; /**< source device for this class */
217
+ uint8_t mode; /**< DirectTouch or DependentTouch */
218
+ uint8_t num_touches; /**< Maximum number of touches (0==unlimited) */
219
+ } xXITouchInfo;
220
+
221
+ /**
222
+ * Denotes touchpad gesture capability on a device.
223
+ */
224
+ typedef struct {
225
+ uint16_t type; /**< Always GestureClass */
226
+ uint16_t length; /**< Length in 4 byte units */
227
+ uint16_t sourceid; /**< source device for this class */
228
+ uint8_t num_touches; /**< Maximum number of touches gesture supports (0==unlimited) */
229
+ uint8_t pad0;
230
+ } xXIGestureInfo;
231
+
232
+ /**
233
+ * Used to select for events on a given window.
234
+ * Struct is followed by (mask_len * CARD8), with each bit set representing
235
+ * the event mask for the given type. A mask bit represents an event type if
236
+ * (mask == (1 << type)).
237
+ */
238
+ typedef struct {
239
+ uint16_t deviceid; /**< Device id to select for */
240
+ uint16_t mask_len; /**< Length of mask in 4 byte units */
241
+ } xXIEventMask;
242
+
243
+ /**
244
+ * XKB modifier information.
245
+ * The effective modifier is a binary mask of base, latched, and locked
246
+ * modifiers.
247
+ */
248
+ typedef struct
249
+ {
250
+ uint32_t base_mods; /**< Logically pressed modifiers */
251
+ uint32_t latched_mods; /**< Logically latched modifiers */
252
+ uint32_t locked_mods; /**< Logically locked modifiers */
253
+ uint32_t effective_mods; /**< Effective modifiers */
254
+ } xXIModifierInfo;
255
+
256
+ /**
257
+ * XKB group information.
258
+ * The effective group is the mathematical sum of base, latched, and locked
259
+ * group after group wrapping is taken into account.
260
+ */
261
+ typedef struct
262
+ {
263
+ uint8_t base_group; /**< Logically "pressed" group */
264
+ uint8_t latched_group; /**< Logically latched group */
265
+ uint8_t locked_group; /**< Logically locked group */
266
+ uint8_t effective_group; /**< Effective group */
267
+ } xXIGroupInfo;
268
+
269
+
270
+ /*************************************************************************************
271
+ * *
272
+ * REQUESTS *
273
+ * *
274
+ *************************************************************************************/
275
+
276
+ /**
277
+ * Query the server for the supported X Input extension version.
278
+ */
279
+
280
+ typedef struct {
281
+ uint8_t reqType; /**< Input extension major code */
282
+ uint8_t ReqType; /**< Always ::X_XIQueryVersion */
283
+ uint16_t length; /**< Length in 4 byte units */
284
+ uint16_t major_version;
285
+ uint16_t minor_version;
286
+ } xXIQueryVersionReq;
287
+ #define sz_xXIQueryVersionReq 8
288
+
289
+ typedef struct {
290
+ uint8_t repType; /**< ::X_Reply */
291
+ uint8_t RepType; /**< Always ::X_XIQueryVersion */
292
+ uint16_t sequenceNumber;
293
+ uint32_t length;
294
+ uint16_t major_version;
295
+ uint16_t minor_version;
296
+ uint32_t pad1;
297
+ uint32_t pad2;
298
+ uint32_t pad3;
299
+ uint32_t pad4;
300
+ uint32_t pad5;
301
+ } xXIQueryVersionReply;
302
+ #define sz_xXIQueryVersionReply 32
303
+
304
+ /**
305
+ * Query the server for information about a specific device or all input
306
+ * devices.
307
+ */
308
+ typedef struct {
309
+ uint8_t reqType; /**< Input extension major code */
310
+ uint8_t ReqType; /**< Always ::X_XIQueryDevice */
311
+ uint16_t length; /**< Length in 4 byte units */
312
+ uint16_t deviceid;
313
+ uint16_t pad;
314
+ } xXIQueryDeviceReq;
315
+ #define sz_xXIQueryDeviceReq 8
316
+
317
+ typedef struct {
318
+ uint8_t repType; /**< ::X_Reply */
319
+ uint8_t RepType; /**< Always ::X_XIQueryDevice */
320
+ uint16_t sequenceNumber;
321
+ uint32_t length;
322
+ uint16_t num_devices;
323
+ uint16_t pad0;
324
+ uint32_t pad1;
325
+ uint32_t pad2;
326
+ uint32_t pad3;
327
+ uint32_t pad4;
328
+ uint32_t pad5;
329
+ } xXIQueryDeviceReply;
330
+ #define sz_xXIQueryDeviceReply 32
331
+
332
+ /**
333
+ * Select for events on a given window.
334
+ */
335
+ typedef struct {
336
+ uint8_t reqType; /**< Input extension major code */
337
+ uint8_t ReqType; /**< Always ::X_XISelectEvents */
338
+ uint16_t length; /**< Length in 4 byte units */
339
+ Window win;
340
+ uint16_t num_masks;
341
+ uint16_t pad;
342
+ } xXISelectEventsReq;
343
+ #define sz_xXISelectEventsReq 12
344
+
345
+ /**
346
+ * Query for selected events on a given window.
347
+ */
348
+ typedef struct {
349
+ uint8_t reqType; /**< Input extension major code */
350
+ uint8_t ReqType; /**< Always ::X_XIGetSelectedEvents */
351
+ uint16_t length; /**< Length in 4 byte units */
352
+ Window win;
353
+ } xXIGetSelectedEventsReq;
354
+ #define sz_xXIGetSelectedEventsReq 8
355
+
356
+ typedef struct {
357
+ uint8_t repType; /**< Input extension major opcode */
358
+ uint8_t RepType; /**< Always ::X_XIGetSelectedEvents */
359
+ uint16_t sequenceNumber;
360
+ uint32_t length;
361
+ uint16_t num_masks; /**< Number of xXIEventMask structs
362
+ trailing the reply */
363
+ uint16_t pad0;
364
+ uint32_t pad1;
365
+ uint32_t pad2;
366
+ uint32_t pad3;
367
+ uint32_t pad4;
368
+ uint32_t pad5;
369
+ } xXIGetSelectedEventsReply;
370
+ #define sz_xXIGetSelectedEventsReply 32
371
+
372
+ /**
373
+ * Query the given device's screen/window coordinates.
374
+ */
375
+
376
+ typedef struct {
377
+ uint8_t reqType; /**< Input extension major code */
378
+ uint8_t ReqType; /**< Always ::X_XIQueryPointer */
379
+ uint16_t length; /**< Length in 4 byte units */
380
+ Window win;
381
+ uint16_t deviceid;
382
+ uint16_t pad1;
383
+ } xXIQueryPointerReq;
384
+ #define sz_xXIQueryPointerReq 12
385
+
386
+
387
+ typedef struct {
388
+ uint8_t repType; /**< Input extension major opcode */
389
+ uint8_t RepType; /**< Always ::X_XIQueryPointer */
390
+ uint16_t sequenceNumber;
391
+ uint32_t length;
392
+ Window root;
393
+ Window child;
394
+ FP1616 root_x;
395
+ FP1616 root_y;
396
+ FP1616 win_x;
397
+ FP1616 win_y;
398
+ uint8_t same_screen;
399
+ uint8_t pad0;
400
+ uint16_t buttons_len;
401
+ xXIModifierInfo mods;
402
+ xXIGroupInfo group;
403
+ } xXIQueryPointerReply;
404
+ #define sz_xXIQueryPointerReply 56
405
+
406
+ /**
407
+ * Warp the given device's pointer to the specified position.
408
+ */
409
+
410
+ typedef struct {
411
+ uint8_t reqType; /**< Input extension major code */
412
+ uint8_t ReqType; /**< Always ::X_XIWarpPointer */
413
+ uint16_t length; /**< Length in 4 byte units */
414
+ Window src_win;
415
+ Window dst_win;
416
+ FP1616 src_x;
417
+ FP1616 src_y;
418
+ uint16_t src_width;
419
+ uint16_t src_height;
420
+ FP1616 dst_x;
421
+ FP1616 dst_y;
422
+ uint16_t deviceid;
423
+ uint16_t pad1;
424
+ } xXIWarpPointerReq;
425
+ #define sz_xXIWarpPointerReq 36
426
+
427
+ /**
428
+ * Change the given device's sprite to the given cursor.
429
+ */
430
+
431
+ typedef struct {
432
+ uint8_t reqType; /**< Input extension major code */
433
+ uint8_t ReqType; /**< Always ::X_XIChangeCursor */
434
+ uint16_t length; /**< Length in 4 byte units */
435
+ Window win;
436
+ Cursor cursor;
437
+ uint16_t deviceid;
438
+ uint16_t pad1;
439
+ } xXIChangeCursorReq;
440
+ #define sz_xXIChangeCursorReq 16
441
+
442
+ /**
443
+ * Modify the device hierarchy.
444
+ */
445
+
446
+ typedef struct {
447
+ uint8_t reqType; /**< Input extension major code */
448
+ uint8_t ReqType; /**< Always ::X_XIChangeHierarchy */
449
+ uint16_t length; /**< Length in 4 byte units */
450
+ uint8_t num_changes;
451
+ uint8_t pad0;
452
+ uint16_t pad1;
453
+ } xXIChangeHierarchyReq;
454
+ #define sz_xXIChangeHierarchyReq 8
455
+
456
+ /**
457
+ * Generic header for any hierarchy change.
458
+ */
459
+ typedef struct {
460
+ uint16_t type;
461
+ uint16_t length; /**< Length in 4 byte units */
462
+ } xXIAnyHierarchyChangeInfo;
463
+
464
+ /**
465
+ * Create a new master device.
466
+ * Name of new master follows struct (4-byte padded)
467
+ */
468
+ typedef struct {
469
+ uint16_t type; /**< Always ::XIAddMaster */
470
+ uint16_t length; /**< 2 + (namelen + padding)/4 */
471
+ uint16_t name_len;
472
+ uint8_t send_core;
473
+ uint8_t enable;
474
+ } xXIAddMasterInfo;
475
+
476
+ /**
477
+ * Delete a master device. Will automatically delete the master device paired
478
+ * with the given master device.
479
+ */
480
+ typedef struct {
481
+ uint16_t type; /**< Always ::XIRemoveMaster */
482
+ uint16_t length; /**< 3 */
483
+ uint16_t deviceid;
484
+ uint8_t return_mode; /**< ::XIAttachToMaster, ::XIFloating */
485
+ uint8_t pad;
486
+ uint16_t return_pointer; /**< Pointer to attach slave ptr devices to */
487
+ uint16_t return_keyboard; /**< keyboard to attach slave keybd devices to*/
488
+ } xXIRemoveMasterInfo;
489
+
490
+ /**
491
+ * Attach an SD to a new device.
492
+ * NewMaster has to be of same type (pointer->pointer, keyboard->keyboard);
493
+ */
494
+ typedef struct {
495
+ uint16_t type; /**< Always ::XIAttachSlave */
496
+ uint16_t length; /**< 2 */
497
+ uint16_t deviceid;
498
+ uint16_t new_master; /**< id of new master device */
499
+ } xXIAttachSlaveInfo;
500
+
501
+ /**
502
+ * Detach an SD from its current master device.
503
+ */
504
+ typedef struct {
505
+ uint16_t type; /**< Always ::XIDetachSlave */
506
+ uint16_t length; /**< 2 */
507
+ uint16_t deviceid;
508
+ uint16_t pad;
509
+ } xXIDetachSlaveInfo;
510
+
511
+
512
+ /**
513
+ * Set the window/client's ClientPointer.
514
+ */
515
+ typedef struct {
516
+ uint8_t reqType;
517
+ uint8_t ReqType; /**< Always ::X_XISetClientPointer */
518
+ uint16_t length; /**< Length in 4 byte units */
519
+ Window win;
520
+ uint16_t deviceid;
521
+ uint16_t pad1;
522
+ } xXISetClientPointerReq;
523
+ #define sz_xXISetClientPointerReq 12
524
+
525
+ /**
526
+ * Query the given window/client's ClientPointer setting.
527
+ */
528
+ typedef struct {
529
+ uint8_t reqType;
530
+ uint8_t ReqType; /**< Always ::X_GetClientPointer */
531
+ uint16_t length; /**< Length in 4 byte units */
532
+ Window win;
533
+ } xXIGetClientPointerReq;
534
+ #define sz_xXIGetClientPointerReq 8
535
+
536
+ typedef struct {
537
+ uint8_t repType; /**< Input extension major opcode */
538
+ uint8_t RepType; /**< Always ::X_GetClientPointer */
539
+ uint16_t sequenceNumber;
540
+ uint32_t length;
541
+ BOOL set; /**< client pointer is set? */
542
+ uint8_t pad0;
543
+ uint16_t deviceid;
544
+ uint32_t pad1;
545
+ uint32_t pad2;
546
+ uint32_t pad3;
547
+ uint32_t pad4;
548
+ uint32_t pad5;
549
+ } xXIGetClientPointerReply;
550
+ #define sz_xXIGetClientPointerReply 32
551
+
552
+ /**
553
+ * Set the input focus to the specified window.
554
+ */
555
+ typedef struct {
556
+ uint8_t reqType;
557
+ uint8_t ReqType; /**< Always ::X_XISetFocus */
558
+ uint16_t length; /**< Length in 4 byte units */
559
+ Window focus;
560
+ Time time;
561
+ uint16_t deviceid;
562
+ uint16_t pad0;
563
+ } xXISetFocusReq;
564
+ #define sz_xXISetFocusReq 16
565
+
566
+ /**
567
+ * Query the current input focus.
568
+ */
569
+ typedef struct {
570
+ uint8_t reqType;
571
+ uint8_t ReqType; /**< Always ::X_XIGetDeviceFocus */
572
+ uint16_t length; /**< Length in 4 byte units */
573
+ uint16_t deviceid;
574
+ uint16_t pad0;
575
+ } xXIGetFocusReq;
576
+ #define sz_xXIGetFocusReq 8
577
+
578
+ typedef struct {
579
+ uint8_t repType; /**< Input extension major opcode */
580
+ uint8_t RepType; /**< Always ::X_XIGetFocus */
581
+ uint16_t sequenceNumber;
582
+ uint32_t length;
583
+ Window focus;
584
+ uint32_t pad1;
585
+ uint32_t pad2;
586
+ uint32_t pad3;
587
+ uint32_t pad4;
588
+ uint32_t pad5;
589
+ } xXIGetFocusReply;
590
+ #define sz_xXIGetFocusReply 32
591
+
592
+
593
+ /**
594
+ * Grab the given device.
595
+ */
596
+ typedef struct {
597
+ uint8_t reqType;
598
+ uint8_t ReqType; /**< Always ::X_XIGrabDevice */
599
+ uint16_t length; /**< Length in 4 byte units */
600
+ Window grab_window;
601
+ Time time;
602
+ Cursor cursor;
603
+ uint16_t deviceid;
604
+ uint8_t grab_mode;
605
+ uint8_t paired_device_mode;
606
+ uint8_t owner_events;
607
+ uint8_t pad;
608
+ uint16_t mask_len;
609
+ } xXIGrabDeviceReq;
610
+ #define sz_xXIGrabDeviceReq 24
611
+
612
+ /**
613
+ * Return codes from a XIPassiveGrabDevice request.
614
+ */
615
+ typedef struct {
616
+ uint32_t modifiers; /**< Modifier state */
617
+ uint8_t status; /**< Grab status code */
618
+ uint8_t pad0;
619
+ uint16_t pad1;
620
+ } xXIGrabModifierInfo;
621
+
622
+ typedef struct {
623
+ uint8_t repType; /**< Input extension major opcode */
624
+ uint8_t RepType; /**< Always ::X_XIGrabDevice */
625
+ uint16_t sequenceNumber;
626
+ uint32_t length;
627
+ uint8_t status;
628
+ uint8_t pad0;
629
+ uint16_t pad1;
630
+ uint32_t pad2;
631
+ uint32_t pad3;
632
+ uint32_t pad4;
633
+ uint32_t pad5;
634
+ uint32_t pad6;
635
+ } xXIGrabDeviceReply;
636
+ #define sz_xXIGrabDeviceReply 32
637
+
638
+ /**
639
+ * Ungrab the specified device.
640
+ *
641
+ */
642
+ typedef struct {
643
+ uint8_t reqType;
644
+ uint8_t ReqType; /**< Always ::X_XIUngrabDevice */
645
+ uint16_t length; /**< Length in 4 byte units */
646
+ Time time;
647
+ uint16_t deviceid;
648
+ uint16_t pad;
649
+ } xXIUngrabDeviceReq;
650
+ #define sz_xXIUngrabDeviceReq 12
651
+
652
+
653
+ /**
654
+ * Allow or replay events on the specified grabbed device.
655
+ */
656
+ typedef struct {
657
+ uint8_t reqType;
658
+ uint8_t ReqType; /**< Always ::X_XIAllowEvents */
659
+ uint16_t length; /**< Length in 4 byte units */
660
+ Time time;
661
+ uint16_t deviceid;
662
+ uint8_t mode;
663
+ uint8_t pad;
664
+ } xXIAllowEventsReq;
665
+ #define sz_xXIAllowEventsReq 12
666
+
667
+ /**
668
+ * Allow or replay events on the specified grabbed device.
669
+ * Since XI 2.2
670
+ */
671
+ typedef struct {
672
+ uint8_t reqType;
673
+ uint8_t ReqType; /**< Always ::X_XIAllowEvents */
674
+ uint16_t length; /**< Length in 4 byte units */
675
+ Time time;
676
+ uint16_t deviceid;
677
+ uint8_t mode;
678
+ uint8_t pad;
679
+ uint32_t touchid; /**< Since XI 2.2 */
680
+ Window grab_window; /**< Since XI 2.2 */
681
+ } xXI2_2AllowEventsReq;
682
+ #define sz_xXI2_2AllowEventsReq 20
683
+
684
+
685
+ /**
686
+ * Passively grab the device.
687
+ */
688
+ typedef struct {
689
+ uint8_t reqType;
690
+ uint8_t ReqType; /**< Always ::X_XIPassiveGrabDevice */
691
+ uint16_t length; /**< Length in 4 byte units */
692
+ Time time;
693
+ Window grab_window;
694
+ Cursor cursor;
695
+ uint32_t detail;
696
+ uint16_t deviceid;
697
+ uint16_t num_modifiers;
698
+ uint16_t mask_len;
699
+ uint8_t grab_type;
700
+ uint8_t grab_mode;
701
+ uint8_t paired_device_mode;
702
+ uint8_t owner_events;
703
+ uint16_t pad1;
704
+ } xXIPassiveGrabDeviceReq;
705
+ #define sz_xXIPassiveGrabDeviceReq 32
706
+
707
+ typedef struct {
708
+ uint8_t repType; /**< Input extension major opcode */
709
+ uint8_t RepType; /**< Always ::X_XIPassiveGrabDevice */
710
+ uint16_t sequenceNumber;
711
+ uint32_t length;
712
+ uint16_t num_modifiers;
713
+ uint16_t pad1;
714
+ uint32_t pad2;
715
+ uint32_t pad3;
716
+ uint32_t pad4;
717
+ uint32_t pad5;
718
+ uint32_t pad6;
719
+ } xXIPassiveGrabDeviceReply;
720
+ #define sz_xXIPassiveGrabDeviceReply 32
721
+
722
+ /**
723
+ * Delete a passive grab for the given device.
724
+ */
725
+ typedef struct {
726
+ uint8_t reqType;
727
+ uint8_t ReqType; /**< Always ::X_XIPassiveUngrabDevice */
728
+ uint16_t length; /**< Length in 4 byte units */
729
+ Window grab_window;
730
+ uint32_t detail;
731
+ uint16_t deviceid;
732
+ uint16_t num_modifiers;
733
+ uint8_t grab_type;
734
+ uint8_t pad0;
735
+ uint16_t pad1;
736
+ } xXIPassiveUngrabDeviceReq;
737
+ #define sz_xXIPassiveUngrabDeviceReq 20
738
+
739
+ /**
740
+ * List all device properties on the specified device.
741
+ */
742
+ typedef struct {
743
+ uint8_t reqType;
744
+ uint8_t ReqType; /**< Always ::X_XIListProperties */
745
+ uint16_t length; /**< Length in 4 byte units */
746
+ uint16_t deviceid;
747
+ uint16_t pad;
748
+ } xXIListPropertiesReq;
749
+ #define sz_xXIListPropertiesReq 8
750
+
751
+ typedef struct {
752
+ uint8_t repType; /**< Input extension major opcode */
753
+ uint8_t RepType; /**< Always ::X_XIListProperties */
754
+ uint16_t sequenceNumber;
755
+ uint32_t length;
756
+ uint16_t num_properties;
757
+ uint16_t pad0;
758
+ uint32_t pad1;
759
+ uint32_t pad2;
760
+ uint32_t pad3;
761
+ uint32_t pad4;
762
+ uint32_t pad5;
763
+ } xXIListPropertiesReply;
764
+ #define sz_xXIListPropertiesReply 32
765
+
766
+ /**
767
+ * Change a property on the specified device.
768
+ */
769
+ typedef struct {
770
+ uint8_t reqType;
771
+ uint8_t ReqType; /**< Always ::X_XIChangeProperty */
772
+ uint16_t length; /**< Length in 4 byte units */
773
+ uint16_t deviceid;
774
+ uint8_t mode;
775
+ uint8_t format;
776
+ Atom property;
777
+ Atom type;
778
+ uint32_t num_items;
779
+ } xXIChangePropertyReq;
780
+ #define sz_xXIChangePropertyReq 20
781
+
782
+ /**
783
+ * Delete the specified property.
784
+ */
785
+ typedef struct {
786
+ uint8_t reqType;
787
+ uint8_t ReqType; /**< Always X_XIDeleteProperty */
788
+ uint16_t length; /**< Length in 4 byte units */
789
+ uint16_t deviceid;
790
+ uint16_t pad0;
791
+ Atom property;
792
+ } xXIDeletePropertyReq;
793
+ #define sz_xXIDeletePropertyReq 12
794
+
795
+ /**
796
+ * Query the specified property's values.
797
+ */
798
+ typedef struct {
799
+ uint8_t reqType;
800
+ uint8_t ReqType; /**< Always X_XIGetProperty */
801
+ uint16_t length; /**< Length in 4 byte units */
802
+ uint16_t deviceid;
803
+ #if defined(__cplusplus) || defined(c_plusplus)
804
+ uint8_t c_delete;
805
+ #else
806
+ uint8_t delete;
807
+ #endif
808
+ uint8_t pad0;
809
+ Atom property;
810
+ Atom type;
811
+ uint32_t offset;
812
+ uint32_t len;
813
+ } xXIGetPropertyReq;
814
+ #define sz_xXIGetPropertyReq 24
815
+
816
+ typedef struct {
817
+ uint8_t repType; /**< Input extension major opcode */
818
+ uint8_t RepType; /**< Always X_XIGetProperty */
819
+ uint16_t sequenceNumber;
820
+ uint32_t length;
821
+ Atom type;
822
+ uint32_t bytes_after;
823
+ uint32_t num_items;
824
+ uint8_t format;
825
+ uint8_t pad0;
826
+ uint16_t pad1;
827
+ uint32_t pad2;
828
+ uint32_t pad3;
829
+ } xXIGetPropertyReply;
830
+ #define sz_xXIGetPropertyReply 32
831
+
832
+ typedef struct {
833
+ uint16_t deviceid;
834
+ uint16_t pad;
835
+ Barrier barrier;
836
+ uint32_t eventid;
837
+ } xXIBarrierReleasePointerInfo;
838
+
839
+ typedef struct {
840
+ uint8_t reqType; /**< Input extension major opcode */
841
+ uint8_t ReqType; /**< Always X_XIBarrierReleasePointer */
842
+ uint16_t length;
843
+ uint32_t num_barriers;
844
+ /* array of xXIBarrierReleasePointerInfo */
845
+ } xXIBarrierReleasePointerReq;
846
+ #define sz_xXIBarrierReleasePointerReq 8
847
+
848
+ /*************************************************************************************
849
+ * *
850
+ * EVENTS *
851
+ * *
852
+ *************************************************************************************/
853
+
854
+ /**
855
+ * Generic XI2 event header. All XI2 events use the same header.
856
+ */
857
+ typedef struct
858
+ {
859
+ uint8_t type;
860
+ uint8_t extension; /**< XI extension offset */
861
+ uint16_t sequenceNumber;
862
+ uint32_t length;
863
+ uint16_t evtype;
864
+ uint16_t deviceid;
865
+ Time time;
866
+ } xXIGenericDeviceEvent;
867
+
868
+ /**
869
+ * Device hierarchy information.
870
+ */
871
+ typedef struct
872
+ {
873
+ uint16_t deviceid;
874
+ uint16_t attachment; /**< ID of master or paired device */
875
+ uint8_t use; /**< ::XIMasterKeyboard,
876
+ ::XIMasterPointer,
877
+ ::XISlaveKeyboard,
878
+ ::XISlavePointer,
879
+ ::XIFloatingSlave */
880
+ BOOL enabled; /**< TRUE if the device is enabled */
881
+ uint16_t pad;
882
+ uint32_t flags; /**< ::XIMasterAdded, ::XIMasterRemoved,
883
+ ::XISlaveAttached, ::XISlaveDetached,
884
+ ::XISlaveAdded, ::XISlaveRemoved,
885
+ ::XIDeviceEnabled, ::XIDeviceDisabled */
886
+ } xXIHierarchyInfo;
887
+
888
+ /**
889
+ * The device hierarchy has been modified. This event includes the device
890
+ * hierarchy after the modification has been applied.
891
+ */
892
+ typedef struct
893
+ {
894
+ uint8_t type; /**< Always GenericEvent */
895
+ uint8_t extension; /**< XI extension offset */
896
+ uint16_t sequenceNumber;
897
+ uint32_t length; /**< Length in 4 byte units */
898
+ uint16_t evtype; /**< ::XI_Hierarchy */
899
+ uint16_t deviceid;
900
+ Time time;
901
+ uint32_t flags; /**< ::XIMasterAdded, ::XIMasterDeleted,
902
+ ::XISlaveAttached, ::XISlaveDetached,
903
+ ::XISlaveAdded, ::XISlaveRemoved,
904
+ ::XIDeviceEnabled, ::XIDeviceDisabled */
905
+ uint16_t num_info;
906
+ uint16_t pad0;
907
+ uint32_t pad1;
908
+ uint32_t pad2;
909
+ } xXIHierarchyEvent;
910
+
911
+ /**
912
+ * A device has changed capabilities.
913
+ */
914
+ typedef struct
915
+ {
916
+ uint8_t type; /**< Always GenericEvent */
917
+ uint8_t extension; /**< XI extension offset */
918
+ uint16_t sequenceNumber;
919
+ uint32_t length; /**< Length in 4 byte units */
920
+ uint16_t evtype; /**< XI_DeviceChanged */
921
+ uint16_t deviceid; /**< Device that has changed */
922
+ Time time;
923
+ uint16_t num_classes; /**< Number of classes that have changed */
924
+ uint16_t sourceid; /**< Source of the new classes */
925
+ uint8_t reason; /**< ::XISlaveSwitch, ::XIDeviceChange */
926
+ uint8_t pad0;
927
+ uint16_t pad1;
928
+ uint32_t pad2;
929
+ uint32_t pad3;
930
+ } xXIDeviceChangedEvent;
931
+
932
+ /**
933
+ * The owner of a touch stream has passed on ownership to another client.
934
+ */
935
+ typedef struct
936
+ {
937
+ uint8_t type; /**< Always GenericEvent */
938
+ uint8_t extension; /**< XI extension offset */
939
+ uint16_t sequenceNumber;
940
+ uint32_t length; /**< Length in 4 byte units */
941
+ uint16_t evtype; /**< XI_TouchOwnership */
942
+ uint16_t deviceid; /**< Device that has changed */
943
+ Time time;
944
+ uint32_t touchid;
945
+ Window root;
946
+ Window event;
947
+ Window child;
948
+ /* └──────── 32 byte boundary ────────┘ */
949
+ uint16_t sourceid;
950
+ uint16_t pad0;
951
+ uint32_t flags;
952
+ uint32_t pad1;
953
+ uint32_t pad2;
954
+ } xXITouchOwnershipEvent;
955
+
956
+ /**
957
+ * Default input event for pointer, keyboard or touch input.
958
+ */
959
+ typedef struct
960
+ {
961
+ uint8_t type; /**< Always GenericEvent */
962
+ uint8_t extension; /**< XI extension offset */
963
+ uint16_t sequenceNumber;
964
+ uint32_t length; /**< Length in 4 byte uints */
965
+ uint16_t evtype;
966
+ uint16_t deviceid;
967
+ Time time;
968
+ uint32_t detail; /**< Keycode or button */
969
+ Window root;
970
+ Window event;
971
+ Window child;
972
+ /* └──────── 32 byte boundary ────────┘ */
973
+ FP1616 root_x; /**< Always screen coords, 16.16 fixed point */
974
+ FP1616 root_y;
975
+ FP1616 event_x; /**< Always screen coords, 16.16 fixed point */
976
+ FP1616 event_y;
977
+ uint16_t buttons_len; /**< Len of button flags in 4 b units */
978
+ uint16_t valuators_len; /**< Len of val. flags in 4 b units */
979
+ uint16_t sourceid; /**< The source device */
980
+ uint16_t pad0;
981
+ uint32_t flags; /**< ::XIKeyRepeat */
982
+ xXIModifierInfo mods;
983
+ xXIGroupInfo group;
984
+ } xXIDeviceEvent;
985
+
986
+
987
+ /**
988
+ * Sent when an input event is generated. RawEvents include valuator
989
+ * information in both device-specific data (i.e. unaccelerated) and
990
+ * processed data (i.e. accelerated, if applicable).
991
+ */
992
+ typedef struct
993
+ {
994
+ uint8_t type; /**< Always GenericEvent */
995
+ uint8_t extension; /**< XI extension offset */
996
+ uint16_t sequenceNumber;
997
+ uint32_t length; /**< Length in 4 byte uints */
998
+ uint16_t evtype; /**< ::XI_RawEvent */
999
+ uint16_t deviceid;
1000
+ Time time;
1001
+ uint32_t detail;
1002
+ uint16_t sourceid; /**< The source device (XI 2.1) */
1003
+ uint16_t valuators_len; /**< Length of trailing valuator
1004
+ mask in 4 byte units */
1005
+ uint32_t flags; /**< ::XIKeyRepeat */
1006
+ uint32_t pad2;
1007
+ } xXIRawEvent;
1008
+
1009
+ /**
1010
+ * Note that the layout of root, event, child, root_x, root_y, event_x,
1011
+ * event_y must be identical to the xXIDeviceEvent.
1012
+ */
1013
+ typedef struct
1014
+ {
1015
+ uint8_t type; /**< Always GenericEvent */
1016
+ uint8_t extension; /**< XI extension offset */
1017
+ uint16_t sequenceNumber;
1018
+ uint32_t length; /**< Length in 4 byte uints */
1019
+ uint16_t evtype; /**< ::XI_Enter */
1020
+ uint16_t deviceid;
1021
+ Time time;
1022
+ uint16_t sourceid;
1023
+ uint8_t mode;
1024
+ uint8_t detail;
1025
+ Window root;
1026
+ Window event;
1027
+ Window child;
1028
+ /* └──────── 32 byte boundary ────────┘ */
1029
+ FP1616 root_x;
1030
+ FP1616 root_y;
1031
+ FP1616 event_x;
1032
+ FP1616 event_y;
1033
+ BOOL same_screen;
1034
+ BOOL focus;
1035
+ uint16_t buttons_len; /**< Length of trailing button mask
1036
+ in 4 byte units */
1037
+ xXIModifierInfo mods;
1038
+ xXIGroupInfo group;
1039
+ } xXIEnterEvent;
1040
+
1041
+ typedef xXIEnterEvent xXILeaveEvent;
1042
+ typedef xXIEnterEvent xXIFocusInEvent;
1043
+ typedef xXIEnterEvent xXIFocusOutEvent;
1044
+
1045
+ /**
1046
+ * Sent when a device property is created, modified or deleted. Does not
1047
+ * include property data, the client is required to query the data.
1048
+ */
1049
+ typedef struct
1050
+ {
1051
+ uint8_t type; /**< Always GenericEvent */
1052
+ uint8_t extension; /**< XI extension offset */
1053
+ uint16_t sequenceNumber;
1054
+ uint32_t length; /**< Length in 4 byte units */
1055
+ uint16_t evtype; /**< ::XI_PropertyEvent */
1056
+ uint16_t deviceid;
1057
+ Time time;
1058
+ Atom property;
1059
+ uint8_t what; /**< ::XIPropertyDeleted,
1060
+ ::XIPropertyCreated,
1061
+ ::XIPropertyMotified */
1062
+ uint8_t pad0;
1063
+ uint16_t pad1;
1064
+ uint32_t pad2;
1065
+ uint32_t pad3;
1066
+ } xXIPropertyEvent;
1067
+
1068
+ typedef struct
1069
+ {
1070
+ uint8_t type; /**< Always GenericEvent */
1071
+ uint8_t extension; /**< XI extension offset */
1072
+ uint16_t sequenceNumber;
1073
+ uint32_t length; /**< Length in 4 byte units */
1074
+ uint16_t evtype; /**< ::XI_BarrierHit or ::XI_BarrierLeave */
1075
+ uint16_t deviceid;
1076
+ Time time;
1077
+ uint32_t eventid;
1078
+ Window root;
1079
+ Window event;
1080
+ Barrier barrier;
1081
+ /* └──────── 32 byte boundary ────────┘ */
1082
+ uint32_t dtime;
1083
+ uint32_t flags; /**< ::XIBarrierPointerReleased
1084
+ ::XIBarrierDeviceIsGrabbed */
1085
+ uint16_t sourceid;
1086
+ int16_t pad;
1087
+ FP1616 root_x;
1088
+ FP1616 root_y;
1089
+ FP3232 dx;
1090
+ FP3232 dy;
1091
+ } xXIBarrierEvent;
1092
+
1093
+ typedef xXIBarrierEvent xXIBarrierHitEvent;
1094
+ typedef xXIBarrierEvent xXIBarrierPointerReleasedEvent;
1095
+ typedef xXIBarrierEvent xXIBarrierLeaveEvent;
1096
+
1097
+ /**
1098
+ * Event for touchpad gesture pinch input events
1099
+ */
1100
+ typedef struct
1101
+ {
1102
+ uint8_t type; /**< Always GenericEvent */
1103
+ uint8_t extension; /**< XI extension offset */
1104
+ uint16_t sequenceNumber;
1105
+ uint32_t length; /**< Length in 4 byte uints */
1106
+ uint16_t evtype;
1107
+ uint16_t deviceid;
1108
+ Time time;
1109
+ uint32_t detail; /**< The number of touches in the gesture */
1110
+ Window root;
1111
+ Window event;
1112
+ Window child;
1113
+ /* └──────── 32 byte boundary ────────┘ */
1114
+ FP1616 root_x; /**< Always screen coords, 16.16 fixed point */
1115
+ FP1616 root_y;
1116
+ FP1616 event_x; /**< Always screen coords, 16.16 fixed point */
1117
+ FP1616 event_y;
1118
+ FP1616 delta_x;
1119
+ FP1616 delta_y;
1120
+ FP1616 delta_unaccel_x;
1121
+ FP1616 delta_unaccel_y;
1122
+ FP1616 scale;
1123
+ FP1616 delta_angle;
1124
+ uint16_t sourceid; /**< The source device */
1125
+ uint16_t pad0;
1126
+ xXIModifierInfo mods;
1127
+ xXIGroupInfo group;
1128
+ uint32_t flags; /**< ::XIGesturePinchEventCancelled */
1129
+ } xXIGesturePinchEvent;
1130
+
1131
+ /**
1132
+ * Event for touchpad gesture swipe input events
1133
+ */
1134
+ typedef struct
1135
+ {
1136
+ uint8_t type; /**< Always GenericEvent */
1137
+ uint8_t extension; /**< XI extension offset */
1138
+ uint16_t sequenceNumber;
1139
+ uint32_t length; /**< Length in 4 byte uints */
1140
+ uint16_t evtype;
1141
+ uint16_t deviceid;
1142
+ Time time;
1143
+ uint32_t detail; /**< The number of touches in the gesture */
1144
+ Window root;
1145
+ Window event;
1146
+ Window child;
1147
+ /* └──────── 32 byte boundary ────────┘ */
1148
+ FP1616 root_x; /**< Always screen coords, 16.16 fixed point */
1149
+ FP1616 root_y;
1150
+ FP1616 event_x; /**< Always screen coords, 16.16 fixed point */
1151
+ FP1616 event_y;
1152
+ FP1616 delta_x;
1153
+ FP1616 delta_y;
1154
+ FP1616 delta_unaccel_x;
1155
+ FP1616 delta_unaccel_y;
1156
+ uint16_t sourceid; /**< The source device */
1157
+ uint16_t pad0;
1158
+ xXIModifierInfo mods;
1159
+ xXIGroupInfo group;
1160
+ uint32_t flags; /**< ::XIGestureSwipeEventCancelled */
1161
+ } xXIGestureSwipeEvent;
1162
+
1163
+ #undef Window
1164
+ #undef Time
1165
+ #undef Atom
1166
+ #undef Cursor
1167
+ #undef Barrier
1168
+
1169
+ #endif /* _XI2PROTO_H_ */
data/miniconda3/include/X11/extensions/XInput.h ADDED
@@ -0,0 +1,1277 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /************************************************************
2
+
3
+ Copyright 1989, 1998 The Open Group
4
+
5
+ Permission to use, copy, modify, distribute, and sell this software and its
6
+ documentation for any purpose is hereby granted without fee, provided that
7
+ the above copyright notice appear in all copies and that both that
8
+ copyright notice and this permission notice appear in supporting
9
+ documentation.
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 THE
17
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ Except as contained in this notice, the name of The Open Group shall not be
22
+ used in advertising or otherwise to promote the sale, use or other dealings
23
+ in this Software without prior written authorization from The Open Group.
24
+
25
+ Copyright 1989 by Hewlett-Packard Company, Palo Alto, California.
26
+
27
+ All Rights Reserved
28
+
29
+ Permission to use, copy, modify, and distribute this software and its
30
+ documentation for any purpose and without fee is hereby granted,
31
+ provided that the above copyright notice appear in all copies and that
32
+ both that copyright notice and this permission notice appear in
33
+ supporting documentation, and that the name of Hewlett-Packard not be
34
+ used in advertising or publicity pertaining to distribution of the
35
+ software without specific, written prior permission.
36
+
37
+ HEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
38
+ ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
39
+ HEWLETT-PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
40
+ ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
41
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
42
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
43
+ SOFTWARE.
44
+
45
+ ********************************************************/
46
+
47
+ /* Definitions used by the library and client */
48
+
49
+ #ifndef _XINPUT_H_
50
+ #define _XINPUT_H_
51
+
52
+ #include <X11/Xlib.h>
53
+ #include <X11/extensions/XI.h>
54
+
55
+ #define _deviceKeyPress 0
56
+ #define _deviceKeyRelease 1
57
+
58
+ #define _deviceButtonPress 0
59
+ #define _deviceButtonRelease 1
60
+
61
+ #define _deviceMotionNotify 0
62
+
63
+ #define _deviceFocusIn 0
64
+ #define _deviceFocusOut 1
65
+
66
+ #define _proximityIn 0
67
+ #define _proximityOut 1
68
+
69
+ #define _deviceStateNotify 0
70
+ #define _deviceMappingNotify 1
71
+ #define _changeDeviceNotify 2
72
+ /* Space of 3 between is necessary! Reserved for DeviceKeyStateNotify,
73
+ DeviceButtonStateNotify, DevicePresenceNotify (essentially unused). This
74
+ code has to be in sync with FixExtensionEvents() in xserver/Xi/extinit.c */
75
+ #define _propertyNotify 6
76
+
77
+ #define FindTypeAndClass(d,type,_class,classid,offset) \
78
+ { int _i; XInputClassInfo *_ip; \
79
+ type = 0; _class = 0; \
80
+ for (_i=0, _ip= ((XDevice *) d)->classes; \
81
+ _i< ((XDevice *) d)->num_classes; \
82
+ _i++, _ip++) \
83
+ if (_ip->input_class == classid) \
84
+ {type = _ip->event_type_base + offset; \
85
+ _class = ((XDevice *) d)->device_id << 8 | type;}}
86
+
87
+ #define DeviceKeyPress(d,type,_class) \
88
+ FindTypeAndClass(d, type, _class, KeyClass, _deviceKeyPress)
89
+
90
+ #define DeviceKeyRelease(d,type,_class) \
91
+ FindTypeAndClass(d, type, _class, KeyClass, _deviceKeyRelease)
92
+
93
+ #define DeviceButtonPress(d,type,_class) \
94
+ FindTypeAndClass(d, type, _class, ButtonClass, _deviceButtonPress)
95
+
96
+ #define DeviceButtonRelease(d,type,_class) \
97
+ FindTypeAndClass(d, type, _class, ButtonClass, _deviceButtonRelease)
98
+
99
+ #define DeviceMotionNotify(d,type,_class) \
100
+ FindTypeAndClass(d, type, _class, ValuatorClass, _deviceMotionNotify)
101
+
102
+ #define DeviceFocusIn(d,type,_class) \
103
+ FindTypeAndClass(d, type, _class, FocusClass, _deviceFocusIn)
104
+
105
+ #define DeviceFocusOut(d,type,_class) \
106
+ FindTypeAndClass(d, type, _class, FocusClass, _deviceFocusOut)
107
+
108
+ #define ProximityIn(d,type,_class) \
109
+ FindTypeAndClass(d, type, _class, ProximityClass, _proximityIn)
110
+
111
+ #define ProximityOut(d,type,_class) \
112
+ FindTypeAndClass(d, type, _class, ProximityClass, _proximityOut)
113
+
114
+ #define DeviceStateNotify(d,type,_class) \
115
+ FindTypeAndClass(d, type, _class, OtherClass, _deviceStateNotify)
116
+
117
+ #define DeviceMappingNotify(d,type,_class) \
118
+ FindTypeAndClass(d, type, _class, OtherClass, _deviceMappingNotify)
119
+
120
+ #define ChangeDeviceNotify(d,type,_class) \
121
+ FindTypeAndClass(d, type, _class, OtherClass, _changeDeviceNotify)
122
+
123
+ #define DevicePropertyNotify(d, type, _class) \
124
+ FindTypeAndClass(d, type, _class, OtherClass, _propertyNotify)
125
+
126
+ #define DevicePointerMotionHint(d,type,_class) \
127
+ { _class = ((XDevice *) d)->device_id << 8 | _devicePointerMotionHint;}
128
+
129
+ #define DeviceButton1Motion(d,type,_class) \
130
+ { _class = ((XDevice *) d)->device_id << 8 | _deviceButton1Motion;}
131
+
132
+ #define DeviceButton2Motion(d,type,_class) \
133
+ { _class = ((XDevice *) d)->device_id << 8 | _deviceButton2Motion;}
134
+
135
+ #define DeviceButton3Motion(d,type,_class) \
136
+ { _class = ((XDevice *) d)->device_id << 8 | _deviceButton3Motion;}
137
+
138
+ #define DeviceButton4Motion(d,type, _class) \
139
+ { _class = ((XDevice *) d)->device_id << 8 | _deviceButton4Motion;}
140
+
141
+ #define DeviceButton5Motion(d,type,_class) \
142
+ { _class = ((XDevice *) d)->device_id << 8 | _deviceButton5Motion;}
143
+
144
+ #define DeviceButtonMotion(d,type, _class) \
145
+ { _class = ((XDevice *) d)->device_id << 8 | _deviceButtonMotion;}
146
+
147
+ #define DeviceOwnerGrabButton(d,type,_class) \
148
+ { _class = ((XDevice *) d)->device_id << 8 | _deviceOwnerGrabButton;}
149
+
150
+ #define DeviceButtonPressGrab(d,type,_class) \
151
+ { _class = ((XDevice *) d)->device_id << 8 | _deviceButtonGrab;}
152
+
153
+ #define NoExtensionEvent(d,type,_class) \
154
+ { _class = ((XDevice *) d)->device_id << 8 | _noExtensionEvent;}
155
+
156
+
157
+ /* We need the declaration for DevicePresence. */
158
+ #if defined(__cplusplus) || defined(c_plusplus)
159
+ extern "C" {
160
+ #endif
161
+ extern int _XiGetDevicePresenceNotifyEvent(Display *);
162
+ extern void _xibaddevice( Display *dpy, int *error);
163
+ extern void _xibadclass( Display *dpy, int *error);
164
+ extern void _xibadevent( Display *dpy, int *error);
165
+ extern void _xibadmode( Display *dpy, int *error);
166
+ extern void _xidevicebusy( Display *dpy, int *error);
167
+ #if defined(__cplusplus) || defined(c_plusplus)
168
+ }
169
+ #endif
170
+
171
+ #define DevicePresence(dpy, type, _class) \
172
+ { \
173
+ type = _XiGetDevicePresenceNotifyEvent(dpy); \
174
+ _class = (0x10000 | _devicePresence); \
175
+ }
176
+
177
+ /* Errors */
178
+ #define BadDevice(dpy,error) _xibaddevice(dpy, &error)
179
+
180
+ #define BadClass(dpy,error) _xibadclass(dpy, &error)
181
+
182
+ #define BadEvent(dpy,error) _xibadevent(dpy, &error)
183
+
184
+ #define BadMode(dpy,error) _xibadmode(dpy, &error)
185
+
186
+ #define DeviceBusy(dpy,error) _xidevicebusy(dpy, &error)
187
+
188
+ typedef struct _XAnyClassinfo *XAnyClassPtr;
189
+
190
+ /***************************************************************
191
+ *
192
+ * DeviceKey events. These events are sent by input devices that
193
+ * support input class Keys.
194
+ * The location of the X pointer is reported in the coordinate
195
+ * fields of the x,y and x_root,y_root fields.
196
+ *
197
+ */
198
+
199
+ typedef struct
200
+ {
201
+ int type; /* of event */
202
+ unsigned long serial; /* # of last request processed */
203
+ Bool send_event; /* true if from SendEvent request */
204
+ Display *display; /* Display the event was read from */
205
+ Window window; /* "event" window reported relative to */
206
+ XID deviceid;
207
+ Window root; /* root window event occurred on */
208
+ Window subwindow; /* child window */
209
+ Time time; /* milliseconds */
210
+ int x, y; /* x, y coordinates in event window */
211
+ int x_root; /* coordinates relative to root */
212
+ int y_root; /* coordinates relative to root */
213
+ unsigned int state; /* key or button mask */
214
+ unsigned int keycode; /* detail */
215
+ Bool same_screen; /* same screen flag */
216
+ unsigned int device_state; /* device key or button mask */
217
+ unsigned char axes_count;
218
+ unsigned char first_axis;
219
+ int axis_data[6];
220
+ } XDeviceKeyEvent;
221
+
222
+ typedef XDeviceKeyEvent XDeviceKeyPressedEvent;
223
+ typedef XDeviceKeyEvent XDeviceKeyReleasedEvent;
224
+
225
+ /*******************************************************************
226
+ *
227
+ * DeviceButton events. These events are sent by extension devices
228
+ * that support input class Buttons.
229
+ *
230
+ */
231
+
232
+ typedef struct {
233
+ int type; /* of event */
234
+ unsigned long serial; /* # of last request processed by server */
235
+ Bool send_event; /* true if from a SendEvent request */
236
+ Display *display; /* Display the event was read from */
237
+ Window window; /* "event" window reported relative to */
238
+ XID deviceid;
239
+ Window root; /* root window that the event occurred on */
240
+ Window subwindow; /* child window */
241
+ Time time; /* milliseconds */
242
+ int x, y; /* x, y coordinates in event window */
243
+ int x_root; /* coordinates relative to root */
244
+ int y_root; /* coordinates relative to root */
245
+ unsigned int state; /* key or button mask */
246
+ unsigned int button; /* detail */
247
+ Bool same_screen; /* same screen flag */
248
+ unsigned int device_state; /* device key or button mask */
249
+ unsigned char axes_count;
250
+ unsigned char first_axis;
251
+ int axis_data[6];
252
+ } XDeviceButtonEvent;
253
+
254
+ typedef XDeviceButtonEvent XDeviceButtonPressedEvent;
255
+ typedef XDeviceButtonEvent XDeviceButtonReleasedEvent;
256
+
257
+ /*******************************************************************
258
+ *
259
+ * DeviceMotionNotify event. These events are sent by extension devices
260
+ * that support input class Valuators.
261
+ *
262
+ */
263
+
264
+ typedef struct
265
+ {
266
+ int type; /* of event */
267
+ unsigned long serial; /* # of last request processed by server */
268
+ Bool send_event; /* true if from a SendEvent request */
269
+ Display *display; /* Display the event was read from */
270
+ Window window; /* "event" window reported relative to */
271
+ XID deviceid;
272
+ Window root; /* root window that the event occurred on */
273
+ Window subwindow; /* child window */
274
+ Time time; /* milliseconds */
275
+ int x, y; /* x, y coordinates in event window */
276
+ int x_root; /* coordinates relative to root */
277
+ int y_root; /* coordinates relative to root */
278
+ unsigned int state; /* key or button mask */
279
+ char is_hint; /* detail */
280
+ Bool same_screen; /* same screen flag */
281
+ unsigned int device_state; /* device key or button mask */
282
+ unsigned char axes_count;
283
+ unsigned char first_axis;
284
+ int axis_data[6];
285
+ } XDeviceMotionEvent;
286
+
287
+ /*******************************************************************
288
+ *
289
+ * DeviceFocusChange events. These events are sent when the focus
290
+ * of an extension device that can be focused is changed.
291
+ *
292
+ */
293
+
294
+ typedef struct
295
+ {
296
+ int type; /* of event */
297
+ unsigned long serial; /* # of last request processed by server */
298
+ Bool send_event; /* true if from a SendEvent request */
299
+ Display *display; /* Display the event was read from */
300
+ Window window; /* "event" window reported relative to */
301
+ XID deviceid;
302
+ int mode; /* NotifyNormal, NotifyGrab, NotifyUngrab */
303
+ int detail;
304
+ /*
305
+ * NotifyAncestor, NotifyVirtual, NotifyInferior,
306
+ * NotifyNonLinear,NotifyNonLinearVirtual, NotifyPointer,
307
+ * NotifyPointerRoot, NotifyDetailNone
308
+ */
309
+ Time time;
310
+ } XDeviceFocusChangeEvent;
311
+
312
+ typedef XDeviceFocusChangeEvent XDeviceFocusInEvent;
313
+ typedef XDeviceFocusChangeEvent XDeviceFocusOutEvent;
314
+
315
+ /*******************************************************************
316
+ *
317
+ * ProximityNotify events. These events are sent by those absolute
318
+ * positioning devices that are capable of generating proximity information.
319
+ *
320
+ */
321
+
322
+ typedef struct
323
+ {
324
+ int type; /* ProximityIn or ProximityOut */
325
+ unsigned long serial; /* # of last request processed by server */
326
+ Bool send_event; /* true if this came from a SendEvent request */
327
+ Display *display; /* Display the event was read from */
328
+ Window window;
329
+ XID deviceid;
330
+ Window root;
331
+ Window subwindow;
332
+ Time time;
333
+ int x, y;
334
+ int x_root, y_root;
335
+ unsigned int state;
336
+ Bool same_screen;
337
+ unsigned int device_state; /* device key or button mask */
338
+ unsigned char axes_count;
339
+ unsigned char first_axis;
340
+ int axis_data[6];
341
+ } XProximityNotifyEvent;
342
+ typedef XProximityNotifyEvent XProximityInEvent;
343
+ typedef XProximityNotifyEvent XProximityOutEvent;
344
+
345
+ /*******************************************************************
346
+ *
347
+ * DeviceStateNotify events are generated on EnterWindow and FocusIn
348
+ * for those clients who have selected DeviceState.
349
+ *
350
+ */
351
+
352
+ typedef struct
353
+ {
354
+ #if defined(__cplusplus) || defined(c_plusplus)
355
+ unsigned char c_class;
356
+ #else
357
+ unsigned char class;
358
+ #endif
359
+ unsigned char length;
360
+ } XInputClass;
361
+
362
+ typedef struct {
363
+ int type;
364
+ unsigned long serial; /* # of last request processed by server */
365
+ Bool send_event; /* true if this came from a SendEvent request */
366
+ Display *display; /* Display the event was read from */
367
+ Window window;
368
+ XID deviceid;
369
+ Time time;
370
+ int num_classes;
371
+ char data[64];
372
+ } XDeviceStateNotifyEvent;
373
+
374
+ typedef struct {
375
+ #if defined(__cplusplus) || defined(c_plusplus)
376
+ unsigned char c_class;
377
+ #else
378
+ unsigned char class;
379
+ #endif
380
+ unsigned char length;
381
+ unsigned char num_valuators;
382
+ unsigned char mode;
383
+ int valuators[6];
384
+ } XValuatorStatus;
385
+
386
+ typedef struct {
387
+ #if defined(__cplusplus) || defined(c_plusplus)
388
+ unsigned char c_class;
389
+ #else
390
+ unsigned char class;
391
+ #endif
392
+ unsigned char length;
393
+ short num_keys;
394
+ char keys[32];
395
+ } XKeyStatus;
396
+
397
+ typedef struct {
398
+ #if defined(__cplusplus) || defined(c_plusplus)
399
+ unsigned char c_class;
400
+ #else
401
+ unsigned char class;
402
+ #endif
403
+ unsigned char length;
404
+ short num_buttons;
405
+ char buttons[32];
406
+ } XButtonStatus;
407
+
408
+ /*******************************************************************
409
+ *
410
+ * DeviceMappingNotify event. This event is sent when the key mapping,
411
+ * modifier mapping, or button mapping of an extension device is changed.
412
+ *
413
+ */
414
+
415
+ typedef struct {
416
+ int type;
417
+ unsigned long serial; /* # of last request processed by server */
418
+ Bool send_event; /* true if this came from a SendEvent request */
419
+ Display *display; /* Display the event was read from */
420
+ Window window; /* unused */
421
+ XID deviceid;
422
+ Time time;
423
+ int request; /* one of MappingModifier, MappingKeyboard,
424
+ MappingPointer */
425
+ int first_keycode;/* first keycode */
426
+ int count; /* defines range of change w. first_keycode*/
427
+ } XDeviceMappingEvent;
428
+
429
+ /*******************************************************************
430
+ *
431
+ * ChangeDeviceNotify event. This event is sent when an
432
+ * XChangeKeyboard or XChangePointer request is made.
433
+ *
434
+ */
435
+
436
+ typedef struct {
437
+ int type;
438
+ unsigned long serial; /* # of last request processed by server */
439
+ Bool send_event; /* true if this came from a SendEvent request */
440
+ Display *display; /* Display the event was read from */
441
+ Window window; /* unused */
442
+ XID deviceid;
443
+ Time time;
444
+ int request; /* NewPointer or NewKeyboard */
445
+ } XChangeDeviceNotifyEvent;
446
+
447
+ /*******************************************************************
448
+ *
449
+ * DevicePresenceNotify event. This event is sent when the list of
450
+ * input devices changes, in which case devchange will be false, and
451
+ * no information about the change will be contained in the event;
452
+ * the client should use XListInputDevices() to learn what has changed.
453
+ *
454
+ * If devchange is true, an attribute that the server believes is
455
+ * important has changed on a device, and the client should use
456
+ * XGetDeviceControl to examine the device. If control is non-zero,
457
+ * then that control has changed meaningfully.
458
+ */
459
+
460
+ typedef struct {
461
+ int type;
462
+ unsigned long serial; /* # of last request processed by server */
463
+ Bool send_event; /* true if this came from a SendEvent request */
464
+ Display *display; /* Display the event was read from */
465
+ Window window; /* unused */
466
+ Time time;
467
+ Bool devchange;
468
+ XID deviceid;
469
+ XID control;
470
+ } XDevicePresenceNotifyEvent;
471
+
472
+ /*
473
+ * Notifies the client that a property on a device has changed value. The
474
+ * client is expected to query the server for updated value of the property.
475
+ */
476
+ typedef struct {
477
+ int type;
478
+ unsigned long serial; /* # of last request processed by server */
479
+ Bool send_event; /* true if this came from a SendEvent request */
480
+ Display *display; /* Display the event was read from */
481
+ Window window; /* unused */
482
+ Time time;
483
+ XID deviceid; /* id of the device that changed */
484
+ Atom atom; /* the property that changed */
485
+ int state; /* PropertyNewValue or PropertyDeleted */
486
+ } XDevicePropertyNotifyEvent;
487
+
488
+
489
+ /*******************************************************************
490
+ *
491
+ * Control structures for input devices that support input class
492
+ * Feedback. These are used by the XGetFeedbackControl and
493
+ * XChangeFeedbackControl functions.
494
+ *
495
+ */
496
+
497
+ typedef struct {
498
+ #if defined(__cplusplus) || defined(c_plusplus)
499
+ XID c_class;
500
+ #else
501
+ XID class;
502
+ #endif
503
+ int length;
504
+ XID id;
505
+ } XFeedbackState;
506
+
507
+ typedef struct {
508
+ #if defined(__cplusplus) || defined(c_plusplus)
509
+ XID c_class;
510
+ #else
511
+ XID class;
512
+ #endif
513
+ int length;
514
+ XID id;
515
+ int click;
516
+ int percent;
517
+ int pitch;
518
+ int duration;
519
+ int led_mask;
520
+ int global_auto_repeat;
521
+ char auto_repeats[32];
522
+ } XKbdFeedbackState;
523
+
524
+ typedef struct {
525
+ #if defined(__cplusplus) || defined(c_plusplus)
526
+ XID c_class;
527
+ #else
528
+ XID class;
529
+ #endif
530
+ int length;
531
+ XID id;
532
+ int accelNum;
533
+ int accelDenom;
534
+ int threshold;
535
+ } XPtrFeedbackState;
536
+
537
+ typedef struct {
538
+ #if defined(__cplusplus) || defined(c_plusplus)
539
+ XID c_class;
540
+ #else
541
+ XID class;
542
+ #endif
543
+ int length;
544
+ XID id;
545
+ int resolution;
546
+ int minVal;
547
+ int maxVal;
548
+ } XIntegerFeedbackState;
549
+
550
+ typedef struct {
551
+ #if defined(__cplusplus) || defined(c_plusplus)
552
+ XID c_class;
553
+ #else
554
+ XID class;
555
+ #endif
556
+ int length;
557
+ XID id;
558
+ int max_symbols;
559
+ int num_syms_supported;
560
+ KeySym *syms_supported;
561
+ } XStringFeedbackState;
562
+
563
+ typedef struct {
564
+ #if defined(__cplusplus) || defined(c_plusplus)
565
+ XID c_class;
566
+ #else
567
+ XID class;
568
+ #endif
569
+ int length;
570
+ XID id;
571
+ int percent;
572
+ int pitch;
573
+ int duration;
574
+ } XBellFeedbackState;
575
+
576
+ typedef struct {
577
+ #if defined(__cplusplus) || defined(c_plusplus)
578
+ XID c_class;
579
+ #else
580
+ XID class;
581
+ #endif
582
+ int length;
583
+ XID id;
584
+ int led_values;
585
+ int led_mask;
586
+ } XLedFeedbackState;
587
+
588
+ typedef struct {
589
+ #if defined(__cplusplus) || defined(c_plusplus)
590
+ XID c_class;
591
+ #else
592
+ XID class;
593
+ #endif
594
+ int length;
595
+ XID id;
596
+ } XFeedbackControl;
597
+
598
+ typedef struct {
599
+ #if defined(__cplusplus) || defined(c_plusplus)
600
+ XID c_class;
601
+ #else
602
+ XID class;
603
+ #endif
604
+ int length;
605
+ XID id;
606
+ int accelNum;
607
+ int accelDenom;
608
+ int threshold;
609
+ } XPtrFeedbackControl;
610
+
611
+ typedef struct {
612
+ #if defined(__cplusplus) || defined(c_plusplus)
613
+ XID c_class;
614
+ #else
615
+ XID class;
616
+ #endif
617
+ int length;
618
+ XID id;
619
+ int click;
620
+ int percent;
621
+ int pitch;
622
+ int duration;
623
+ int led_mask;
624
+ int led_value;
625
+ int key;
626
+ int auto_repeat_mode;
627
+ } XKbdFeedbackControl;
628
+
629
+ typedef struct {
630
+ #if defined(__cplusplus) || defined(c_plusplus)
631
+ XID c_class;
632
+ #else
633
+ XID class;
634
+ #endif
635
+ int length;
636
+ XID id;
637
+ int num_keysyms;
638
+ KeySym *syms_to_display;
639
+ } XStringFeedbackControl;
640
+
641
+ typedef struct {
642
+ #if defined(__cplusplus) || defined(c_plusplus)
643
+ XID c_class;
644
+ #else
645
+ XID class;
646
+ #endif
647
+ int length;
648
+ XID id;
649
+ int int_to_display;
650
+ } XIntegerFeedbackControl;
651
+
652
+ typedef struct {
653
+ #if defined(__cplusplus) || defined(c_plusplus)
654
+ XID c_class;
655
+ #else
656
+ XID class;
657
+ #endif
658
+ int length;
659
+ XID id;
660
+ int percent;
661
+ int pitch;
662
+ int duration;
663
+ } XBellFeedbackControl;
664
+
665
+ typedef struct {
666
+ #if defined(__cplusplus) || defined(c_plusplus)
667
+ XID c_class;
668
+ #else
669
+ XID class;
670
+ #endif
671
+ int length;
672
+ XID id;
673
+ int led_mask;
674
+ int led_values;
675
+ } XLedFeedbackControl;
676
+
677
+ /*******************************************************************
678
+ *
679
+ * Device control structures.
680
+ *
681
+ */
682
+
683
+ typedef struct {
684
+ XID control;
685
+ int length;
686
+ } XDeviceControl;
687
+
688
+ typedef struct {
689
+ XID control;
690
+ int length;
691
+ int first_valuator;
692
+ int num_valuators;
693
+ int *resolutions;
694
+ } XDeviceResolutionControl;
695
+
696
+ typedef struct {
697
+ XID control;
698
+ int length;
699
+ int num_valuators;
700
+ int *resolutions;
701
+ int *min_resolutions;
702
+ int *max_resolutions;
703
+ } XDeviceResolutionState;
704
+
705
+ typedef struct {
706
+ XID control;
707
+ int length;
708
+ int min_x;
709
+ int max_x;
710
+ int min_y;
711
+ int max_y;
712
+ int flip_x;
713
+ int flip_y;
714
+ int rotation;
715
+ int button_threshold;
716
+ } XDeviceAbsCalibControl, XDeviceAbsCalibState;
717
+
718
+ typedef struct {
719
+ XID control;
720
+ int length;
721
+ int offset_x;
722
+ int offset_y;
723
+ int width;
724
+ int height;
725
+ int screen;
726
+ XID following;
727
+ } XDeviceAbsAreaControl, XDeviceAbsAreaState;
728
+
729
+ typedef struct {
730
+ XID control;
731
+ int length;
732
+ int status;
733
+ } XDeviceCoreControl;
734
+
735
+ typedef struct {
736
+ XID control;
737
+ int length;
738
+ int status;
739
+ int iscore;
740
+ } XDeviceCoreState;
741
+
742
+ typedef struct {
743
+ XID control;
744
+ int length;
745
+ int enable;
746
+ } XDeviceEnableControl, XDeviceEnableState;
747
+
748
+ /*******************************************************************
749
+ *
750
+ * An array of XDeviceList structures is returned by the
751
+ * XListInputDevices function. Each entry contains information
752
+ * about one input device. Among that information is an array of
753
+ * pointers to structures that describe the characteristics of
754
+ * the input device.
755
+ *
756
+ */
757
+
758
+ typedef struct _XAnyClassinfo {
759
+ #if defined(__cplusplus) || defined(c_plusplus)
760
+ XID c_class;
761
+ #else
762
+ XID class;
763
+ #endif
764
+ int length;
765
+ } XAnyClassInfo;
766
+
767
+ typedef struct _XDeviceInfo *XDeviceInfoPtr;
768
+
769
+ typedef struct _XDeviceInfo
770
+ {
771
+ XID id;
772
+ Atom type;
773
+ char *name;
774
+ int num_classes;
775
+ int use;
776
+ XAnyClassPtr inputclassinfo;
777
+ } XDeviceInfo;
778
+
779
+ typedef struct _XKeyInfo *XKeyInfoPtr;
780
+
781
+ typedef struct _XKeyInfo
782
+ {
783
+ #if defined(__cplusplus) || defined(c_plusplus)
784
+ XID c_class;
785
+ #else
786
+ XID class;
787
+ #endif
788
+ int length;
789
+ unsigned short min_keycode;
790
+ unsigned short max_keycode;
791
+ unsigned short num_keys;
792
+ } XKeyInfo;
793
+
794
+ typedef struct _XButtonInfo *XButtonInfoPtr;
795
+
796
+ typedef struct _XButtonInfo {
797
+ #if defined(__cplusplus) || defined(c_plusplus)
798
+ XID c_class;
799
+ #else
800
+ XID class;
801
+ #endif
802
+ int length;
803
+ short num_buttons;
804
+ } XButtonInfo;
805
+
806
+ typedef struct _XAxisInfo *XAxisInfoPtr;
807
+
808
+ typedef struct _XAxisInfo {
809
+ int resolution;
810
+ int min_value;
811
+ int max_value;
812
+ } XAxisInfo;
813
+
814
+ typedef struct _XValuatorInfo *XValuatorInfoPtr;
815
+
816
+ typedef struct _XValuatorInfo
817
+ {
818
+ #if defined(__cplusplus) || defined(c_plusplus)
819
+ XID c_class;
820
+ #else
821
+ XID class;
822
+ #endif
823
+ int length;
824
+ unsigned char num_axes;
825
+ unsigned char mode;
826
+ unsigned long motion_buffer;
827
+ XAxisInfoPtr axes;
828
+ } XValuatorInfo;
829
+
830
+ /*******************************************************************
831
+ *
832
+ * An XDevice structure is returned by the XOpenDevice function.
833
+ * It contains an array of pointers to XInputClassInfo structures.
834
+ * Each contains information about a class of input supported by the
835
+ * device, including a pointer to an array of data for each type of event
836
+ * the device reports.
837
+ *
838
+ */
839
+
840
+
841
+ typedef struct {
842
+ unsigned char input_class;
843
+ unsigned char event_type_base;
844
+ } XInputClassInfo;
845
+
846
+ typedef struct {
847
+ XID device_id;
848
+ int num_classes;
849
+ XInputClassInfo *classes;
850
+ } XDevice;
851
+
852
+
853
+ /*******************************************************************
854
+ *
855
+ * The following structure is used to return information for the
856
+ * XGetSelectedExtensionEvents function.
857
+ *
858
+ */
859
+
860
+ typedef struct {
861
+ XEventClass event_type;
862
+ XID device;
863
+ } XEventList;
864
+
865
+ /*******************************************************************
866
+ *
867
+ * The following structure is used to return motion history data from
868
+ * an input device that supports the input class Valuators.
869
+ * This information is returned by the XGetDeviceMotionEvents function.
870
+ *
871
+ */
872
+
873
+ typedef struct {
874
+ Time time;
875
+ int *data;
876
+ } XDeviceTimeCoord;
877
+
878
+
879
+ /*******************************************************************
880
+ *
881
+ * Device state structure.
882
+ * This is returned by the XQueryDeviceState request.
883
+ *
884
+ */
885
+
886
+ typedef struct {
887
+ XID device_id;
888
+ int num_classes;
889
+ XInputClass *data;
890
+ } XDeviceState;
891
+
892
+ /*******************************************************************
893
+ *
894
+ * Note that the mode field is a bitfield that reports the Proximity
895
+ * status of the device as well as the mode. The mode field should
896
+ * be OR'd with the mask DeviceMode and compared with the values
897
+ * Absolute and Relative to determine the mode, and should be OR'd
898
+ * with the mask ProximityState and compared with the values InProximity
899
+ * and OutOfProximity to determine the proximity state.
900
+ *
901
+ */
902
+
903
+ typedef struct {
904
+ #if defined(__cplusplus) || defined(c_plusplus)
905
+ unsigned char c_class;
906
+ #else
907
+ unsigned char class;
908
+ #endif
909
+ unsigned char length;
910
+ unsigned char num_valuators;
911
+ unsigned char mode;
912
+ int *valuators;
913
+ } XValuatorState;
914
+
915
+ typedef struct {
916
+ #if defined(__cplusplus) || defined(c_plusplus)
917
+ unsigned char c_class;
918
+ #else
919
+ unsigned char class;
920
+ #endif
921
+ unsigned char length;
922
+ short num_keys;
923
+ char keys[32];
924
+ } XKeyState;
925
+
926
+ typedef struct {
927
+ #if defined(__cplusplus) || defined(c_plusplus)
928
+ unsigned char c_class;
929
+ #else
930
+ unsigned char class;
931
+ #endif
932
+ unsigned char length;
933
+ short num_buttons;
934
+ char buttons[32];
935
+ } XButtonState;
936
+
937
+
938
+
939
+ /*******************************************************************
940
+ *
941
+ * Function definitions.
942
+ *
943
+ */
944
+
945
+ _XFUNCPROTOBEGIN
946
+
947
+ extern int XChangeKeyboardDevice(
948
+ Display* /* display */,
949
+ XDevice* /* device */
950
+ );
951
+
952
+ extern int XChangePointerDevice(
953
+ Display* /* display */,
954
+ XDevice* /* device */,
955
+ int /* xaxis */,
956
+ int /* yaxis */
957
+ );
958
+
959
+ extern int XGrabDevice(
960
+ Display* /* display */,
961
+ XDevice* /* device */,
962
+ Window /* grab_window */,
963
+ Bool /* ownerEvents */,
964
+ int /* event count */,
965
+ XEventClass* /* event_list */,
966
+ int /* this_device_mode */,
967
+ int /* other_devices_mode */,
968
+ Time /* time */
969
+ );
970
+
971
+ extern int XUngrabDevice(
972
+ Display* /* display */,
973
+ XDevice* /* device */,
974
+ Time /* time */
975
+ );
976
+
977
+ extern int XGrabDeviceKey(
978
+ Display* /* display */,
979
+ XDevice* /* device */,
980
+ unsigned int /* key */,
981
+ unsigned int /* modifiers */,
982
+ XDevice* /* modifier_device */,
983
+ Window /* grab_window */,
984
+ Bool /* owner_events */,
985
+ unsigned int /* event_count */,
986
+ XEventClass* /* event_list */,
987
+ int /* this_device_mode */,
988
+ int /* other_devices_mode */
989
+ );
990
+
991
+ extern int XUngrabDeviceKey(
992
+ Display* /* display */,
993
+ XDevice* /* device */,
994
+ unsigned int /* key */,
995
+ unsigned int /* modifiers */,
996
+ XDevice* /* modifier_dev */,
997
+ Window /* grab_window */
998
+ );
999
+
1000
+ extern int XGrabDeviceButton(
1001
+ Display* /* display */,
1002
+ XDevice* /* device */,
1003
+ unsigned int /* button */,
1004
+ unsigned int /* modifiers */,
1005
+ XDevice* /* modifier_device */,
1006
+ Window /* grab_window */,
1007
+ Bool /* owner_events */,
1008
+ unsigned int /* event_count */,
1009
+ XEventClass* /* event_list */,
1010
+ int /* this_device_mode */,
1011
+ int /* other_devices_mode */
1012
+ );
1013
+
1014
+ extern int XUngrabDeviceButton(
1015
+ Display* /* display */,
1016
+ XDevice* /* device */,
1017
+ unsigned int /* button */,
1018
+ unsigned int /* modifiers */,
1019
+ XDevice* /* modifier_dev */,
1020
+ Window /* grab_window */
1021
+ );
1022
+
1023
+ extern int XAllowDeviceEvents(
1024
+ Display* /* display */,
1025
+ XDevice* /* device */,
1026
+ int /* event_mode */,
1027
+ Time /* time */
1028
+ );
1029
+
1030
+ extern int XGetDeviceFocus(
1031
+ Display* /* display */,
1032
+ XDevice* /* device */,
1033
+ Window* /* focus */,
1034
+ int* /* revert_to */,
1035
+ Time* /* time */
1036
+ );
1037
+
1038
+ extern int XSetDeviceFocus(
1039
+ Display* /* display */,
1040
+ XDevice* /* device */,
1041
+ Window /* focus */,
1042
+ int /* revert_to */,
1043
+ Time /* time */
1044
+ );
1045
+
1046
+ extern XFeedbackState *XGetFeedbackControl(
1047
+ Display* /* display */,
1048
+ XDevice* /* device */,
1049
+ int* /* num_feedbacks */
1050
+ );
1051
+
1052
+ extern void XFreeFeedbackList(
1053
+ XFeedbackState* /* list */
1054
+ );
1055
+
1056
+ extern int XChangeFeedbackControl(
1057
+ Display* /* display */,
1058
+ XDevice* /* device */,
1059
+ unsigned long /* mask */,
1060
+ XFeedbackControl* /* f */
1061
+ );
1062
+
1063
+ extern int XDeviceBell(
1064
+ Display* /* display */,
1065
+ XDevice* /* device */,
1066
+ XID /* feedbackclass */,
1067
+ XID /* feedbackid */,
1068
+ int /* percent */
1069
+ );
1070
+
1071
+ extern KeySym *XGetDeviceKeyMapping(
1072
+ Display* /* display */,
1073
+ XDevice* /* device */,
1074
+ #if NeedWidePrototypes
1075
+ unsigned int /* first */,
1076
+ #else
1077
+ KeyCode /* first */,
1078
+ #endif
1079
+ int /* keycount */,
1080
+ int* /* syms_per_code */
1081
+ );
1082
+
1083
+ extern int XChangeDeviceKeyMapping(
1084
+ Display* /* display */,
1085
+ XDevice* /* device */,
1086
+ int /* first */,
1087
+ int /* syms_per_code */,
1088
+ KeySym* /* keysyms */,
1089
+ int /* count */
1090
+ );
1091
+
1092
+ extern XModifierKeymap *XGetDeviceModifierMapping(
1093
+ Display* /* display */,
1094
+ XDevice* /* device */
1095
+ );
1096
+
1097
+ extern int XSetDeviceModifierMapping(
1098
+ Display* /* display */,
1099
+ XDevice* /* device */,
1100
+ XModifierKeymap* /* modmap */
1101
+ );
1102
+
1103
+ extern int XSetDeviceButtonMapping(
1104
+ Display* /* display */,
1105
+ XDevice* /* device */,
1106
+ unsigned char* /* map[] */,
1107
+ int /* nmap */
1108
+ );
1109
+
1110
+ extern int XGetDeviceButtonMapping(
1111
+ Display* /* display */,
1112
+ XDevice* /* device */,
1113
+ unsigned char* /* map[] */,
1114
+ unsigned int /* nmap */
1115
+ );
1116
+
1117
+ extern XDeviceState *XQueryDeviceState(
1118
+ Display* /* display */,
1119
+ XDevice* /* device */
1120
+ );
1121
+
1122
+ extern void XFreeDeviceState(
1123
+ XDeviceState* /* list */
1124
+ );
1125
+
1126
+ extern XExtensionVersion *XGetExtensionVersion(
1127
+ Display* /* display */,
1128
+ _Xconst char* /* name */
1129
+ );
1130
+
1131
+ extern XDeviceInfo *XListInputDevices(
1132
+ Display* /* display */,
1133
+ int* /* ndevices */
1134
+ );
1135
+
1136
+ extern void XFreeDeviceList(
1137
+ XDeviceInfo* /* list */
1138
+ );
1139
+
1140
+ extern XDevice *XOpenDevice(
1141
+ Display* /* display */,
1142
+ XID /* id */
1143
+ );
1144
+
1145
+ extern int XCloseDevice(
1146
+ Display* /* display */,
1147
+ XDevice* /* device */
1148
+ );
1149
+
1150
+ extern int XSetDeviceMode(
1151
+ Display* /* display */,
1152
+ XDevice* /* device */,
1153
+ int /* mode */
1154
+ );
1155
+
1156
+ extern int XSetDeviceValuators(
1157
+ Display* /* display */,
1158
+ XDevice* /* device */,
1159
+ int* /* valuators */,
1160
+ int /* first_valuator */,
1161
+ int /* num_valuators */
1162
+ );
1163
+
1164
+ extern XDeviceControl *XGetDeviceControl(
1165
+ Display* /* display */,
1166
+ XDevice* /* device */,
1167
+ int /* control */
1168
+ );
1169
+
1170
+ extern int XChangeDeviceControl(
1171
+ Display* /* display */,
1172
+ XDevice* /* device */,
1173
+ int /* control */,
1174
+ XDeviceControl* /* d */
1175
+ );
1176
+
1177
+ extern int XSelectExtensionEvent(
1178
+ Display* /* display */,
1179
+ Window /* w */,
1180
+ XEventClass* /* event_list */,
1181
+ int /* count */
1182
+ );
1183
+
1184
+ extern int XGetSelectedExtensionEvents(
1185
+ Display* /* display */,
1186
+ Window /* w */,
1187
+ int* /* this_client_count */,
1188
+ XEventClass** /* this_client_list */,
1189
+ int* /* all_clients_count */,
1190
+ XEventClass** /* all_clients_list */
1191
+ );
1192
+
1193
+ extern int XChangeDeviceDontPropagateList(
1194
+ Display* /* display */,
1195
+ Window /* window */,
1196
+ int /* count */,
1197
+ XEventClass* /* events */,
1198
+ int /* mode */
1199
+ );
1200
+
1201
+ extern XEventClass *XGetDeviceDontPropagateList(
1202
+ Display* /* display */,
1203
+ Window /* window */,
1204
+ int* /* count */
1205
+ );
1206
+
1207
+ extern Status XSendExtensionEvent(
1208
+ Display* /* display */,
1209
+ XDevice* /* device */,
1210
+ Window /* dest */,
1211
+ Bool /* prop */,
1212
+ int /* count */,
1213
+ XEventClass* /* list */,
1214
+ XEvent* /* event */
1215
+ );
1216
+
1217
+ extern XDeviceTimeCoord *XGetDeviceMotionEvents(
1218
+ Display* /* display */,
1219
+ XDevice* /* device */,
1220
+ Time /* start */,
1221
+ Time /* stop */,
1222
+ int* /* nEvents */,
1223
+ int* /* mode */,
1224
+ int* /* axis_count */
1225
+ );
1226
+
1227
+ extern void XFreeDeviceMotionEvents(
1228
+ XDeviceTimeCoord* /* events */
1229
+ );
1230
+
1231
+ extern void XFreeDeviceControl(
1232
+ XDeviceControl* /* control */
1233
+ );
1234
+
1235
+ extern Atom* XListDeviceProperties(
1236
+ Display* /* dpy */,
1237
+ XDevice* /* dev */,
1238
+ int* /* nprops_return */
1239
+ );
1240
+
1241
+ extern void XChangeDeviceProperty(
1242
+ Display* /* dpy */,
1243
+ XDevice* /* dev */,
1244
+ Atom /* property */,
1245
+ Atom /* type */,
1246
+ int /* format */,
1247
+ int /* mode */,
1248
+ _Xconst unsigned char * /*data */,
1249
+ int /* nelements */
1250
+ );
1251
+
1252
+ extern void
1253
+ XDeleteDeviceProperty(
1254
+ Display* /* dpy */,
1255
+ XDevice* /* dev */,
1256
+ Atom /* property */
1257
+ );
1258
+
1259
+ extern Status
1260
+ XGetDeviceProperty(
1261
+ Display* /* dpy*/,
1262
+ XDevice* /* dev*/,
1263
+ Atom /* property*/,
1264
+ long /* offset*/,
1265
+ long /* length*/,
1266
+ Bool /* delete*/,
1267
+ Atom /* req_type*/,
1268
+ Atom* /* actual_type*/,
1269
+ int* /* actual_format*/,
1270
+ unsigned long* /* nitems*/,
1271
+ unsigned long* /* bytes_after*/,
1272
+ unsigned char** /* prop*/
1273
+ );
1274
+
1275
+ _XFUNCPROTOEND
1276
+
1277
+ #endif /* _XINPUT_H_ */
data/miniconda3/include/X11/extensions/XInput2.h ADDED
@@ -0,0 +1,761 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright © 2009 Red Hat, Inc.
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 (including the next
12
+ * paragraph) shall be included in all copies or substantial portions of the
13
+ * 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
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ */
24
+
25
+ /* Definitions used by the library and client */
26
+
27
+ #ifndef _XINPUT2_H_
28
+ #define _XINPUT2_H_
29
+
30
+ #include <X11/Xlib.h>
31
+ #include <X11/extensions/XI2.h>
32
+ #include <X11/extensions/Xge.h>
33
+ #include <X11/extensions/Xfixes.h> /* PointerBarrier */
34
+
35
+ /*******************************************************************
36
+ *
37
+ */
38
+ typedef struct {
39
+ int type;
40
+ char* name;
41
+ Bool send_core;
42
+ Bool enable;
43
+ } XIAddMasterInfo;
44
+
45
+ typedef struct {
46
+ int type;
47
+ int deviceid;
48
+ int return_mode; /* AttachToMaster, Floating */
49
+ int return_pointer;
50
+ int return_keyboard;
51
+ } XIRemoveMasterInfo;
52
+
53
+ typedef struct {
54
+ int type;
55
+ int deviceid;
56
+ int new_master;
57
+ } XIAttachSlaveInfo;
58
+
59
+ typedef struct {
60
+ int type;
61
+ int deviceid;
62
+ } XIDetachSlaveInfo;
63
+
64
+ typedef union {
65
+ int type; /* must be first element */
66
+ XIAddMasterInfo add;
67
+ XIRemoveMasterInfo remove;
68
+ XIAttachSlaveInfo attach;
69
+ XIDetachSlaveInfo detach;
70
+ } XIAnyHierarchyChangeInfo;
71
+
72
+ typedef struct
73
+ {
74
+ int base;
75
+ int latched;
76
+ int locked;
77
+ int effective;
78
+ } XIModifierState;
79
+
80
+ typedef XIModifierState XIGroupState;
81
+
82
+ typedef struct {
83
+ int mask_len;
84
+ unsigned char *mask;
85
+ } XIButtonState;
86
+
87
+ typedef struct {
88
+ int mask_len;
89
+ unsigned char *mask;
90
+ double *values;
91
+ } XIValuatorState;
92
+
93
+
94
+ typedef struct
95
+ {
96
+ int deviceid;
97
+ int mask_len;
98
+ unsigned char* mask;
99
+ } XIEventMask;
100
+
101
+ typedef struct
102
+ {
103
+ int type;
104
+ int sourceid;
105
+ } XIAnyClassInfo;
106
+
107
+ typedef struct
108
+ {
109
+ int type;
110
+ int sourceid;
111
+ int num_buttons;
112
+ Atom *labels;
113
+ XIButtonState state;
114
+ } XIButtonClassInfo;
115
+
116
+ typedef struct
117
+ {
118
+ int type;
119
+ int sourceid;
120
+ int num_keycodes;
121
+ int *keycodes;
122
+ } XIKeyClassInfo;
123
+
124
+ typedef struct
125
+ {
126
+ int type;
127
+ int sourceid;
128
+ int number;
129
+ Atom label;
130
+ double min;
131
+ double max;
132
+ double value;
133
+ int resolution;
134
+ int mode;
135
+ } XIValuatorClassInfo;
136
+
137
+ /* new in XI 2.1 */
138
+ typedef struct
139
+ {
140
+ int type;
141
+ int sourceid;
142
+ int number;
143
+ int scroll_type;
144
+ double increment;
145
+ int flags;
146
+ } XIScrollClassInfo;
147
+
148
+ typedef struct
149
+ {
150
+ int type;
151
+ int sourceid;
152
+ int mode;
153
+ int num_touches;
154
+ } XITouchClassInfo;
155
+
156
+ /* new in XI 2.4 */
157
+ typedef struct
158
+ {
159
+ int type;
160
+ int sourceid;
161
+ int num_touches;
162
+ } XIGestureClassInfo;
163
+
164
+ typedef struct
165
+ {
166
+ int deviceid;
167
+ char *name;
168
+ int use;
169
+ int attachment;
170
+ Bool enabled;
171
+ int num_classes;
172
+ XIAnyClassInfo **classes;
173
+ } XIDeviceInfo;
174
+
175
+ typedef struct
176
+ {
177
+ int modifiers;
178
+ int status;
179
+ } XIGrabModifiers;
180
+
181
+ typedef unsigned int BarrierEventID;
182
+
183
+ typedef struct
184
+ {
185
+ int deviceid;
186
+ PointerBarrier barrier;
187
+ BarrierEventID eventid;
188
+ } XIBarrierReleasePointerInfo;
189
+
190
+ /**
191
+ * Generic XI2 event. All XI2 events have the same header.
192
+ */
193
+ typedef struct {
194
+ int type; /* GenericEvent */
195
+ unsigned long serial; /* # of last request processed by server */
196
+ Bool send_event; /* true if this came from a SendEvent request */
197
+ Display *display; /* Display the event was read from */
198
+ int extension; /* XI extension offset */
199
+ int evtype;
200
+ Time time;
201
+ } XIEvent;
202
+
203
+
204
+ typedef struct {
205
+ int deviceid;
206
+ int attachment;
207
+ int use;
208
+ Bool enabled;
209
+ int flags;
210
+ } XIHierarchyInfo;
211
+
212
+ /*
213
+ * Notifies the client that the device hierarchy has been changed. The client
214
+ * is expected to re-query the server for the device hierarchy.
215
+ */
216
+ typedef struct {
217
+ int type; /* GenericEvent */
218
+ unsigned long serial; /* # of last request processed by server */
219
+ Bool send_event; /* true if this came from a SendEvent request */
220
+ Display *display; /* Display the event was read from */
221
+ int extension; /* XI extension offset */
222
+ int evtype; /* XI_HierarchyChanged */
223
+ Time time;
224
+ int flags;
225
+ int num_info;
226
+ XIHierarchyInfo *info;
227
+ } XIHierarchyEvent;
228
+
229
+ /*
230
+ * Notifies the client that the classes have been changed. This happens when
231
+ * the slave device that sends through the master changes.
232
+ */
233
+ typedef struct {
234
+ int type; /* GenericEvent */
235
+ unsigned long serial; /* # of last request processed by server */
236
+ Bool send_event; /* true if this came from a SendEvent request */
237
+ Display *display; /* Display the event was read from */
238
+ int extension; /* XI extension offset */
239
+ int evtype; /* XI_DeviceChanged */
240
+ Time time;
241
+ int deviceid; /* id of the device that changed */
242
+ int sourceid; /* Source for the new classes. */
243
+ int reason; /* Reason for the change */
244
+ int num_classes;
245
+ XIAnyClassInfo **classes; /* same as in XIDeviceInfo */
246
+ } XIDeviceChangedEvent;
247
+
248
+ typedef struct {
249
+ int type; /* GenericEvent */
250
+ unsigned long serial; /* # of last request processed by server */
251
+ Bool send_event; /* true if this came from a SendEvent request */
252
+ Display *display; /* Display the event was read from */
253
+ int extension; /* XI extension offset */
254
+ int evtype;
255
+ Time time;
256
+ int deviceid;
257
+ int sourceid;
258
+ int detail;
259
+ Window root;
260
+ Window event;
261
+ Window child;
262
+ double root_x;
263
+ double root_y;
264
+ double event_x;
265
+ double event_y;
266
+ int flags;
267
+ XIButtonState buttons;
268
+ XIValuatorState valuators;
269
+ XIModifierState mods;
270
+ XIGroupState group;
271
+ } XIDeviceEvent;
272
+
273
+ typedef struct {
274
+ int type; /* GenericEvent */
275
+ unsigned long serial; /* # of last request processed by server */
276
+ Bool send_event; /* true if this came from a SendEvent request */
277
+ Display *display; /* Display the event was read from */
278
+ int extension; /* XI extension offset */
279
+ int evtype; /* XI_RawKeyPress, XI_RawKeyRelease, etc. */
280
+ Time time;
281
+ int deviceid;
282
+ int sourceid; /* Bug: Always 0. https://bugs.freedesktop.org//show_bug.cgi?id=34240 */
283
+ int detail;
284
+ int flags;
285
+ XIValuatorState valuators;
286
+ double *raw_values;
287
+ } XIRawEvent;
288
+
289
+ typedef struct {
290
+ int type; /* GenericEvent */
291
+ unsigned long serial; /* # of last request processed by server */
292
+ Bool send_event; /* true if this came from a SendEvent request */
293
+ Display *display; /* Display the event was read from */
294
+ int extension; /* XI extension offset */
295
+ int evtype;
296
+ Time time;
297
+ int deviceid;
298
+ int sourceid;
299
+ int detail;
300
+ Window root;
301
+ Window event;
302
+ Window child;
303
+ double root_x;
304
+ double root_y;
305
+ double event_x;
306
+ double event_y;
307
+ int mode;
308
+ Bool focus;
309
+ Bool same_screen;
310
+ XIButtonState buttons;
311
+ XIModifierState mods;
312
+ XIGroupState group;
313
+ } XIEnterEvent;
314
+
315
+ typedef XIEnterEvent XILeaveEvent;
316
+ typedef XIEnterEvent XIFocusInEvent;
317
+ typedef XIEnterEvent XIFocusOutEvent;
318
+
319
+ typedef struct {
320
+ int type; /* GenericEvent */
321
+ unsigned long serial; /* # of last request processed by server */
322
+ Bool send_event; /* true if this came from a SendEvent request */
323
+ Display *display; /* Display the event was read from */
324
+ int extension; /* XI extension offset */
325
+ int evtype; /* XI_PropertyEvent */
326
+ Time time;
327
+ int deviceid; /* id of the device that changed */
328
+ Atom property;
329
+ int what;
330
+ } XIPropertyEvent;
331
+
332
+ typedef struct {
333
+ int type; /* GenericEvent */
334
+ unsigned long serial; /* # of last request processed by server */
335
+ Bool send_event; /* true if this came from a SendEvent request */
336
+ Display *display; /* Display the event was read from */
337
+ int extension; /* XI extension offset */
338
+ int evtype;
339
+ Time time;
340
+ int deviceid;
341
+ int sourceid;
342
+ unsigned int touchid;
343
+ Window root;
344
+ Window event;
345
+ Window child;
346
+ int flags;
347
+ } XITouchOwnershipEvent;
348
+
349
+ typedef struct {
350
+ int type; /* GenericEvent */
351
+ unsigned long serial; /* # of last request processed by server */
352
+ Bool send_event; /* true if this came from a SendEvent request */
353
+ Display *display; /* Display the event was read from */
354
+ int extension; /* XI extension offset */
355
+ int evtype;
356
+ Time time;
357
+ int deviceid;
358
+ int sourceid;
359
+ Window event;
360
+ Window root;
361
+ double root_x;
362
+ double root_y;
363
+ double dx;
364
+ double dy;
365
+ int dtime;
366
+ int flags;
367
+ PointerBarrier barrier;
368
+ BarrierEventID eventid;
369
+ } XIBarrierEvent;
370
+
371
+ typedef struct {
372
+ int type; /* GenericEvent */
373
+ unsigned long serial; /* # of last request processed by server */
374
+ Bool send_event; /* true if this came from a SendEvent request */
375
+ Display *display; /* Display the event was read from */
376
+ int extension; /* XI extension offset */
377
+ int evtype;
378
+ Time time;
379
+ int deviceid;
380
+ int sourceid;
381
+ int detail;
382
+ Window root;
383
+ Window event;
384
+ Window child;
385
+ double root_x;
386
+ double root_y;
387
+ double event_x;
388
+ double event_y;
389
+ double delta_x;
390
+ double delta_y;
391
+ double delta_unaccel_x;
392
+ double delta_unaccel_y;
393
+ double scale;
394
+ double delta_angle;
395
+ int flags;
396
+ XIModifierState mods;
397
+ XIGroupState group;
398
+ } XIGesturePinchEvent;
399
+
400
+ typedef struct {
401
+ int type; /* GenericEvent */
402
+ unsigned long serial; /* # of last request processed by server */
403
+ Bool send_event; /* true if this came from a SendEvent request */
404
+ Display *display; /* Display the event was read from */
405
+ int extension; /* XI extension offset */
406
+ int evtype;
407
+ Time time;
408
+ int deviceid;
409
+ int sourceid;
410
+ int detail;
411
+ Window root;
412
+ Window event;
413
+ Window child;
414
+ double root_x;
415
+ double root_y;
416
+ double event_x;
417
+ double event_y;
418
+ double delta_x;
419
+ double delta_y;
420
+ double delta_unaccel_x;
421
+ double delta_unaccel_y;
422
+ int flags;
423
+ XIModifierState mods;
424
+ XIGroupState group;
425
+ } XIGestureSwipeEvent;
426
+
427
+ _XFUNCPROTOBEGIN
428
+
429
+ extern Bool XIQueryPointer(
430
+ Display* display,
431
+ int deviceid,
432
+ Window win,
433
+ Window* root,
434
+ Window* child,
435
+ double* root_x,
436
+ double* root_y,
437
+ double* win_x,
438
+ double* win_y,
439
+ XIButtonState *buttons,
440
+ XIModifierState *mods,
441
+ XIGroupState *group
442
+ );
443
+
444
+ extern Bool XIWarpPointer(
445
+ Display* display,
446
+ int deviceid,
447
+ Window src_win,
448
+ Window dst_win,
449
+ double src_x,
450
+ double src_y,
451
+ unsigned int src_width,
452
+ unsigned int src_height,
453
+ double dst_x,
454
+ double dst_y
455
+ );
456
+
457
+ extern Status XIDefineCursor(
458
+ Display* display,
459
+ int deviceid,
460
+ Window win,
461
+ Cursor cursor
462
+ );
463
+
464
+ extern Status XIUndefineCursor(
465
+ Display* display,
466
+ int deviceid,
467
+ Window win
468
+ );
469
+
470
+ extern Status XIChangeHierarchy(
471
+ Display* display,
472
+ XIAnyHierarchyChangeInfo* changes,
473
+ int num_changes
474
+ );
475
+
476
+ extern Status XISetClientPointer(
477
+ Display* dpy,
478
+ Window win,
479
+ int deviceid
480
+ );
481
+
482
+ extern Bool XIGetClientPointer(
483
+ Display* dpy,
484
+ Window win,
485
+ int* deviceid
486
+ );
487
+
488
+ extern int XISelectEvents(
489
+ Display* dpy,
490
+ Window win,
491
+ XIEventMask *masks,
492
+ int num_masks
493
+ );
494
+
495
+ extern XIEventMask *XIGetSelectedEvents(
496
+ Display* dpy,
497
+ Window win,
498
+ int *num_masks_return
499
+ );
500
+
501
+ extern Status XIQueryVersion(
502
+ Display* dpy,
503
+ int* major_version_inout,
504
+ int* minor_version_inout
505
+ );
506
+
507
+ extern XIDeviceInfo* XIQueryDevice(
508
+ Display* dpy,
509
+ int deviceid,
510
+ int* ndevices_return
511
+ );
512
+
513
+ extern Status XISetFocus(
514
+ Display* dpy,
515
+ int deviceid,
516
+ Window focus,
517
+ Time time
518
+ );
519
+
520
+ extern Status XIGetFocus(
521
+ Display* dpy,
522
+ int deviceid,
523
+ Window *focus_return);
524
+
525
+ extern Status XIGrabDevice(
526
+ Display* dpy,
527
+ int deviceid,
528
+ Window grab_window,
529
+ Time time,
530
+ Cursor cursor,
531
+ int grab_mode,
532
+ int paired_device_mode,
533
+ Bool owner_events,
534
+ XIEventMask *mask
535
+ );
536
+
537
+ extern Status XIUngrabDevice(
538
+ Display* dpy,
539
+ int deviceid,
540
+ Time time
541
+ );
542
+
543
+ extern Status XIAllowEvents(
544
+ Display* display,
545
+ int deviceid,
546
+ int event_mode,
547
+ Time time
548
+ );
549
+
550
+ extern Status XIAllowTouchEvents(
551
+ Display* display,
552
+ int deviceid,
553
+ unsigned int touchid,
554
+ Window grab_window,
555
+ int event_mode
556
+ );
557
+
558
+ extern int XIGrabButton(
559
+ Display* display,
560
+ int deviceid,
561
+ int button,
562
+ Window grab_window,
563
+ Cursor cursor,
564
+ int grab_mode,
565
+ int paired_device_mode,
566
+ int owner_events,
567
+ XIEventMask *mask,
568
+ int num_modifiers,
569
+ XIGrabModifiers *modifiers_inout
570
+ );
571
+
572
+ extern int XIGrabKeycode(
573
+ Display* display,
574
+ int deviceid,
575
+ int keycode,
576
+ Window grab_window,
577
+ int grab_mode,
578
+ int paired_device_mode,
579
+ int owner_events,
580
+ XIEventMask *mask,
581
+ int num_modifiers,
582
+ XIGrabModifiers *modifiers_inout
583
+ );
584
+
585
+ extern int XIGrabEnter(
586
+ Display* display,
587
+ int deviceid,
588
+ Window grab_window,
589
+ Cursor cursor,
590
+ int grab_mode,
591
+ int paired_device_mode,
592
+ int owner_events,
593
+ XIEventMask *mask,
594
+ int num_modifiers,
595
+ XIGrabModifiers *modifiers_inout
596
+ );
597
+
598
+ extern int XIGrabFocusIn(
599
+ Display* display,
600
+ int deviceid,
601
+ Window grab_window,
602
+ int grab_mode,
603
+ int paired_device_mode,
604
+ int owner_events,
605
+ XIEventMask *mask,
606
+ int num_modifiers,
607
+ XIGrabModifiers *modifiers_inout
608
+ );
609
+
610
+ extern int XIGrabTouchBegin(
611
+ Display* display,
612
+ int deviceid,
613
+ Window grab_window,
614
+ int owner_events,
615
+ XIEventMask *mask,
616
+ int num_modifiers,
617
+ XIGrabModifiers *modifiers_inout
618
+ );
619
+
620
+ extern int XIGrabPinchGestureBegin(
621
+ Display* display,
622
+ int deviceid,
623
+ Window grab_window,
624
+ int grab_mode,
625
+ int paired_device_mode,
626
+ int owner_events,
627
+ XIEventMask *mask,
628
+ int num_modifiers,
629
+ XIGrabModifiers *modifiers_inout
630
+ );
631
+
632
+ extern int XIGrabSwipeGestureBegin(
633
+ Display* display,
634
+ int deviceid,
635
+ Window grab_window,
636
+ int grab_mode,
637
+ int paired_device_mode,
638
+ int owner_events,
639
+ XIEventMask *mask,
640
+ int num_modifiers,
641
+ XIGrabModifiers *modifiers_inout
642
+ );
643
+
644
+ extern Status XIUngrabButton(
645
+ Display* display,
646
+ int deviceid,
647
+ int button,
648
+ Window grab_window,
649
+ int num_modifiers,
650
+ XIGrabModifiers *modifiers
651
+ );
652
+
653
+ extern Status XIUngrabKeycode(
654
+ Display* display,
655
+ int deviceid,
656
+ int keycode,
657
+ Window grab_window,
658
+ int num_modifiers,
659
+ XIGrabModifiers *modifiers
660
+ );
661
+
662
+ extern Status XIUngrabEnter(
663
+ Display* display,
664
+ int deviceid,
665
+ Window grab_window,
666
+ int num_modifiers,
667
+ XIGrabModifiers *modifiers
668
+ );
669
+
670
+ extern Status XIUngrabFocusIn(
671
+ Display* display,
672
+ int deviceid,
673
+ Window grab_window,
674
+ int num_modifiers,
675
+ XIGrabModifiers *modifiers
676
+ );
677
+
678
+ extern Status XIUngrabTouchBegin(
679
+ Display* display,
680
+ int deviceid,
681
+ Window grab_window,
682
+ int num_modifiers,
683
+ XIGrabModifiers *modifiers
684
+ );
685
+
686
+ extern Status XIUngrabPinchGestureBegin(
687
+ Display* display,
688
+ int deviceid,
689
+ Window grab_window,
690
+ int num_modifiers,
691
+ XIGrabModifiers *modifiers
692
+ );
693
+
694
+ extern Status XIUngrabSwipeGestureBegin(
695
+ Display* display,
696
+ int deviceid,
697
+ Window grab_window,
698
+ int num_modifiers,
699
+ XIGrabModifiers *modifiers
700
+ );
701
+
702
+ extern Atom *XIListProperties(
703
+ Display* display,
704
+ int deviceid,
705
+ int *num_props_return
706
+ );
707
+
708
+ extern void XIChangeProperty(
709
+ Display* display,
710
+ int deviceid,
711
+ Atom property,
712
+ Atom type,
713
+ int format,
714
+ int mode,
715
+ unsigned char *data,
716
+ int num_items
717
+ );
718
+
719
+ extern void
720
+ XIDeleteProperty(
721
+ Display* display,
722
+ int deviceid,
723
+ Atom property
724
+ );
725
+
726
+ extern Status
727
+ XIGetProperty(
728
+ Display* display,
729
+ int deviceid,
730
+ Atom property,
731
+ long offset,
732
+ long length,
733
+ Bool delete_property,
734
+ Atom type,
735
+ Atom *type_return,
736
+ int *format_return,
737
+ unsigned long *num_items_return,
738
+ unsigned long *bytes_after_return,
739
+ unsigned char **data
740
+ );
741
+
742
+ extern void
743
+ XIBarrierReleasePointers(
744
+ Display* display,
745
+ XIBarrierReleasePointerInfo *barriers,
746
+ int num_barriers
747
+ );
748
+
749
+ extern void
750
+ XIBarrierReleasePointer(
751
+ Display* display,
752
+ int deviceid,
753
+ PointerBarrier barrier,
754
+ BarrierEventID eventid
755
+ );
756
+
757
+ extern void XIFreeDeviceInfo(XIDeviceInfo *info);
758
+
759
+ _XFUNCPROTOEND
760
+
761
+ #endif /* XINPUT2_H */
data/miniconda3/include/X11/extensions/XKB.h ADDED
@@ -0,0 +1,786 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /************************************************************
2
+ Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc.
3
+
4
+ Permission to use, copy, modify, and distribute this
5
+ software and its documentation for any purpose and without
6
+ fee is hereby granted, provided that the above copyright
7
+ notice appear in all copies and that both that copyright
8
+ notice and this permission notice appear in supporting
9
+ documentation, and that the name of Silicon Graphics not be
10
+ used in advertising or publicity pertaining to distribution
11
+ of the software without specific prior written permission.
12
+ Silicon Graphics makes no representation about the suitability
13
+ of this software for any purpose. It is provided "as is"
14
+ without any express or implied warranty.
15
+
16
+ SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
17
+ SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18
+ AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
19
+ GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
20
+ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
21
+ DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
22
+ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
23
+ THE USE OR PERFORMANCE OF THIS SOFTWARE.
24
+
25
+ ********************************************************/
26
+
27
+ #ifndef _XKB_H_
28
+ #define _XKB_H_
29
+
30
+ /*
31
+ * XKB request codes, used in:
32
+ * - xkbReqType field of all requests
33
+ * - requestMinor field of some events
34
+ */
35
+ #define X_kbUseExtension 0
36
+ #define X_kbSelectEvents 1
37
+ #define X_kbBell 3
38
+ #define X_kbGetState 4
39
+ #define X_kbLatchLockState 5
40
+ #define X_kbGetControls 6
41
+ #define X_kbSetControls 7
42
+ #define X_kbGetMap 8
43
+ #define X_kbSetMap 9
44
+ #define X_kbGetCompatMap 10
45
+ #define X_kbSetCompatMap 11
46
+ #define X_kbGetIndicatorState 12
47
+ #define X_kbGetIndicatorMap 13
48
+ #define X_kbSetIndicatorMap 14
49
+ #define X_kbGetNamedIndicator 15
50
+ #define X_kbSetNamedIndicator 16
51
+ #define X_kbGetNames 17
52
+ #define X_kbSetNames 18
53
+ #define X_kbGetGeometry 19
54
+ #define X_kbSetGeometry 20
55
+ #define X_kbPerClientFlags 21
56
+ #define X_kbListComponents 22
57
+ #define X_kbGetKbdByName 23
58
+ #define X_kbGetDeviceInfo 24
59
+ #define X_kbSetDeviceInfo 25
60
+ #define X_kbSetDebuggingFlags 101
61
+
62
+ /*
63
+ * In the X sense, XKB reports only one event.
64
+ * The type field of all XKB events is XkbEventCode
65
+ */
66
+ #define XkbEventCode 0
67
+ #define XkbNumberEvents (XkbEventCode+1)
68
+
69
+ /*
70
+ * XKB has a minor event code so it can use one X event code for
71
+ * multiple purposes.
72
+ * - reported in the xkbType field of all XKB events.
73
+ * - XkbSelectEventDetails: Indicates the event for which event details
74
+ * are being changed
75
+ */
76
+ #define XkbNewKeyboardNotify 0
77
+ #define XkbMapNotify 1
78
+ #define XkbStateNotify 2
79
+ #define XkbControlsNotify 3
80
+ #define XkbIndicatorStateNotify 4
81
+ #define XkbIndicatorMapNotify 5
82
+ #define XkbNamesNotify 6
83
+ #define XkbCompatMapNotify 7
84
+ #define XkbBellNotify 8
85
+ #define XkbActionMessage 9
86
+ #define XkbAccessXNotify 10
87
+ #define XkbExtensionDeviceNotify 11
88
+
89
+ /*
90
+ * Event Mask:
91
+ * - XkbSelectEvents: Specifies event interest.
92
+ */
93
+ #define XkbNewKeyboardNotifyMask (1L << 0)
94
+ #define XkbMapNotifyMask (1L << 1)
95
+ #define XkbStateNotifyMask (1L << 2)
96
+ #define XkbControlsNotifyMask (1L << 3)
97
+ #define XkbIndicatorStateNotifyMask (1L << 4)
98
+ #define XkbIndicatorMapNotifyMask (1L << 5)
99
+ #define XkbNamesNotifyMask (1L << 6)
100
+ #define XkbCompatMapNotifyMask (1L << 7)
101
+ #define XkbBellNotifyMask (1L << 8)
102
+ #define XkbActionMessageMask (1L << 9)
103
+ #define XkbAccessXNotifyMask (1L << 10)
104
+ #define XkbExtensionDeviceNotifyMask (1L << 11)
105
+ #define XkbAllEventsMask (0xFFF)
106
+
107
+ /*
108
+ * NewKeyboardNotify event details:
109
+ */
110
+ #define XkbNKN_KeycodesMask (1L << 0)
111
+ #define XkbNKN_GeometryMask (1L << 1)
112
+ #define XkbNKN_DeviceIDMask (1L << 2)
113
+ #define XkbAllNewKeyboardEventsMask (0x7)
114
+
115
+ /*
116
+ * AccessXNotify event types:
117
+ * - The 'what' field of AccessXNotify events reports the
118
+ * reason that the event was generated.
119
+ */
120
+ #define XkbAXN_SKPress 0
121
+ #define XkbAXN_SKAccept 1
122
+ #define XkbAXN_SKReject 2
123
+ #define XkbAXN_SKRelease 3
124
+ #define XkbAXN_BKAccept 4
125
+ #define XkbAXN_BKReject 5
126
+ #define XkbAXN_AXKWarning 6
127
+
128
+ /*
129
+ * AccessXNotify details:
130
+ * - Used as an event detail mask to limit the conditions under which
131
+ * AccessXNotify events are reported
132
+ */
133
+ #define XkbAXN_SKPressMask (1L << 0)
134
+ #define XkbAXN_SKAcceptMask (1L << 1)
135
+ #define XkbAXN_SKRejectMask (1L << 2)
136
+ #define XkbAXN_SKReleaseMask (1L << 3)
137
+ #define XkbAXN_BKAcceptMask (1L << 4)
138
+ #define XkbAXN_BKRejectMask (1L << 5)
139
+ #define XkbAXN_AXKWarningMask (1L << 6)
140
+ #define XkbAllAccessXEventsMask (0x7f)
141
+
142
+ /*
143
+ * Miscellaneous event details:
144
+ * - event detail masks for assorted events that don't really
145
+ * have any details.
146
+ */
147
+ #define XkbAllStateEventsMask XkbAllStateComponentsMask
148
+ #define XkbAllMapEventsMask XkbAllMapComponentsMask
149
+ #define XkbAllControlEventsMask XkbAllControlsMask
150
+ #define XkbAllIndicatorEventsMask XkbAllIndicatorsMask
151
+ #define XkbAllNameEventsMask XkbAllNamesMask
152
+ #define XkbAllCompatMapEventsMask XkbAllCompatMask
153
+ #define XkbAllBellEventsMask (1L << 0)
154
+ #define XkbAllActionMessagesMask (1L << 0)
155
+
156
+ /*
157
+ * XKB reports one error: BadKeyboard
158
+ * A further reason for the error is encoded into to most significant
159
+ * byte of the resourceID for the error:
160
+ * XkbErr_BadDevice - the device in question was not found
161
+ * XkbErr_BadClass - the device was found but it doesn't belong to
162
+ * the appropriate class.
163
+ * XkbErr_BadId - the device was found and belongs to the right
164
+ * class, but not feedback with a matching id was
165
+ * found.
166
+ * The low byte of the resourceID for this error contains the device
167
+ * id, class specifier or feedback id that failed.
168
+ */
169
+ #define XkbKeyboard 0
170
+ #define XkbNumberErrors 1
171
+
172
+ #define XkbErr_BadDevice 0xff
173
+ #define XkbErr_BadClass 0xfe
174
+ #define XkbErr_BadId 0xfd
175
+
176
+ /*
177
+ * Keyboard Components Mask:
178
+ * - Specifies the components that follow a GetKeyboardByNameReply
179
+ */
180
+ #define XkbClientMapMask (1L << 0)
181
+ #define XkbServerMapMask (1L << 1)
182
+ #define XkbCompatMapMask (1L << 2)
183
+ #define XkbIndicatorMapMask (1L << 3)
184
+ #define XkbNamesMask (1L << 4)
185
+ #define XkbGeometryMask (1L << 5)
186
+ #define XkbControlsMask (1L << 6)
187
+ #define XkbAllComponentsMask (0x7f)
188
+
189
+ /*
190
+ * State detail mask:
191
+ * - The 'changed' field of StateNotify events reports which of
192
+ * the keyboard state components have changed.
193
+ * - Used as an event detail mask to limit the conditions under
194
+ * which StateNotify events are reported.
195
+ */
196
+ #define XkbModifierStateMask (1L << 0)
197
+ #define XkbModifierBaseMask (1L << 1)
198
+ #define XkbModifierLatchMask (1L << 2)
199
+ #define XkbModifierLockMask (1L << 3)
200
+ #define XkbGroupStateMask (1L << 4)
201
+ #define XkbGroupBaseMask (1L << 5)
202
+ #define XkbGroupLatchMask (1L << 6)
203
+ #define XkbGroupLockMask (1L << 7)
204
+ #define XkbCompatStateMask (1L << 8)
205
+ #define XkbGrabModsMask (1L << 9)
206
+ #define XkbCompatGrabModsMask (1L << 10)
207
+ #define XkbLookupModsMask (1L << 11)
208
+ #define XkbCompatLookupModsMask (1L << 12)
209
+ #define XkbPointerButtonMask (1L << 13)
210
+ #define XkbAllStateComponentsMask (0x3fff)
211
+
212
+ /*
213
+ * Controls detail masks:
214
+ * The controls specified in XkbAllControlsMask:
215
+ * - The 'changed' field of ControlsNotify events reports which of
216
+ * the keyboard controls have changed.
217
+ * - The 'changeControls' field of the SetControls request specifies
218
+ * the controls for which values are to be changed.
219
+ * - Used as an event detail mask to limit the conditions under
220
+ * which ControlsNotify events are reported.
221
+ *
222
+ * The controls specified in the XkbAllBooleanCtrlsMask:
223
+ * - The 'enabledControls' field of ControlsNotify events reports the
224
+ * current status of the boolean controls.
225
+ * - The 'enabledControlsChanges' field of ControlsNotify events reports
226
+ * any boolean controls that have been turned on or off.
227
+ * - The 'affectEnabledControls' and 'enabledControls' fields of the
228
+ * kbSetControls request change the set of enabled controls.
229
+ * - The 'accessXTimeoutMask' and 'accessXTimeoutValues' fields of
230
+ * an XkbControlsRec specify the controls to be changed if the keyboard
231
+ * times out and the values to which they should be changed.
232
+ * - The 'autoCtrls' and 'autoCtrlsValues' fields of the PerClientFlags
233
+ * request specifies the specify the controls to be reset when the
234
+ * client exits and the values to which they should be reset.
235
+ * - The 'ctrls' field of an indicator map specifies the controls
236
+ * that drive the indicator.
237
+ * - Specifies the boolean controls affected by the SetControls and
238
+ * LockControls key actions.
239
+ */
240
+ #define XkbRepeatKeysMask (1L << 0)
241
+ #define XkbSlowKeysMask (1L << 1)
242
+ #define XkbBounceKeysMask (1L << 2)
243
+ #define XkbStickyKeysMask (1L << 3)
244
+ #define XkbMouseKeysMask (1L << 4)
245
+ #define XkbMouseKeysAccelMask (1L << 5)
246
+ #define XkbAccessXKeysMask (1L << 6)
247
+ #define XkbAccessXTimeoutMask (1L << 7)
248
+ #define XkbAccessXFeedbackMask (1L << 8)
249
+ #define XkbAudibleBellMask (1L << 9)
250
+ #define XkbOverlay1Mask (1L << 10)
251
+ #define XkbOverlay2Mask (1L << 11)
252
+ #define XkbIgnoreGroupLockMask (1L << 12)
253
+ #define XkbGroupsWrapMask (1L << 27)
254
+ #define XkbInternalModsMask (1L << 28)
255
+ #define XkbIgnoreLockModsMask (1L << 29)
256
+ #define XkbPerKeyRepeatMask (1L << 30)
257
+ #define XkbControlsEnabledMask (1L << 31)
258
+
259
+ #define XkbAccessXOptionsMask (XkbStickyKeysMask|XkbAccessXFeedbackMask)
260
+
261
+ #define XkbAllBooleanCtrlsMask (0x00001FFF)
262
+ #define XkbAllControlsMask (0xF8001FFF)
263
+ #define XkbAllControlEventsMask XkbAllControlsMask
264
+
265
+ /*
266
+ * AccessX Options Mask
267
+ * - The 'accessXOptions' field of an XkbControlsRec specifies the
268
+ * AccessX options that are currently in effect.
269
+ * - The 'accessXTimeoutOptionsMask' and 'accessXTimeoutOptionsValues'
270
+ * fields of an XkbControlsRec specify the Access X options to be
271
+ * changed if the keyboard times out and the values to which they
272
+ * should be changed.
273
+ */
274
+ #define XkbAX_SKPressFBMask (1L << 0)
275
+ #define XkbAX_SKAcceptFBMask (1L << 1)
276
+ #define XkbAX_FeatureFBMask (1L << 2)
277
+ #define XkbAX_SlowWarnFBMask (1L << 3)
278
+ #define XkbAX_IndicatorFBMask (1L << 4)
279
+ #define XkbAX_StickyKeysFBMask (1L << 5)
280
+ #define XkbAX_TwoKeysMask (1L << 6)
281
+ #define XkbAX_LatchToLockMask (1L << 7)
282
+ #define XkbAX_SKReleaseFBMask (1L << 8)
283
+ #define XkbAX_SKRejectFBMask (1L << 9)
284
+ #define XkbAX_BKRejectFBMask (1L << 10)
285
+ #define XkbAX_DumbBellFBMask (1L << 11)
286
+ #define XkbAX_FBOptionsMask (0xF3F)
287
+ #define XkbAX_SKOptionsMask (0x0C0)
288
+ #define XkbAX_AllOptionsMask (0xFFF)
289
+
290
+ /*
291
+ * XkbUseCoreKbd is used to specify the core keyboard without having
292
+ * to look up its X input extension identifier.
293
+ * XkbUseCorePtr is used to specify the core pointer without having
294
+ * to look up its X input extension identifier.
295
+ * XkbDfltXIClass is used to specify "don't care" any place that the
296
+ * XKB protocol is looking for an X Input Extension
297
+ * device class.
298
+ * XkbDfltXIId is used to specify "don't care" any place that the
299
+ * XKB protocol is looking for an X Input Extension
300
+ * feedback identifier.
301
+ * XkbAllXIClasses is used to get information about all device indicators,
302
+ * whether they're part of the indicator feedback class
303
+ * or the keyboard feedback class.
304
+ * XkbAllXIIds is used to get information about all device indicator
305
+ * feedbacks without having to list them.
306
+ * XkbXINone is used to indicate that no class or id has been specified.
307
+ * XkbLegalXILedClass(c) True if 'c' specifies a legal class with LEDs
308
+ * XkbLegalXIBellClass(c) True if 'c' specifies a legal class with bells
309
+ * XkbExplicitXIDevice(d) True if 'd' explicitly specifies a device
310
+ * XkbExplicitXIClass(c) True if 'c' explicitly specifies a device class
311
+ * XkbExplicitXIId(c) True if 'i' explicitly specifies a device id
312
+ * XkbSingleXIClass(c) True if 'c' specifies exactly one device class,
313
+ * including the default.
314
+ * XkbSingleXIId(i) True if 'i' specifies exactly one device
315
+ * identifier, including the default.
316
+ */
317
+ #define XkbUseCoreKbd 0x0100
318
+ #define XkbUseCorePtr 0x0200
319
+ #define XkbDfltXIClass 0x0300
320
+ #define XkbDfltXIId 0x0400
321
+ #define XkbAllXIClasses 0x0500
322
+ #define XkbAllXIIds 0x0600
323
+ #define XkbXINone 0xff00
324
+
325
+ #define XkbLegalXILedClass(c) (((c)==KbdFeedbackClass)||\
326
+ ((c)==LedFeedbackClass)||\
327
+ ((c)==XkbDfltXIClass)||\
328
+ ((c)==XkbAllXIClasses))
329
+ #define XkbLegalXIBellClass(c) (((c)==KbdFeedbackClass)||\
330
+ ((c)==BellFeedbackClass)||\
331
+ ((c)==XkbDfltXIClass)||\
332
+ ((c)==XkbAllXIClasses))
333
+ #define XkbExplicitXIDevice(c) (((c)&(~0xff))==0)
334
+ #define XkbExplicitXIClass(c) (((c)&(~0xff))==0)
335
+ #define XkbExplicitXIId(c) (((c)&(~0xff))==0)
336
+ #define XkbSingleXIClass(c) ((((c)&(~0xff))==0)||((c)==XkbDfltXIClass))
337
+ #define XkbSingleXIId(c) ((((c)&(~0xff))==0)||((c)==XkbDfltXIId))
338
+
339
+ #define XkbNoModifier 0xff
340
+ #define XkbNoShiftLevel 0xff
341
+ #define XkbNoShape 0xff
342
+ #define XkbNoIndicator 0xff
343
+
344
+ #define XkbNoModifierMask 0
345
+ #define XkbAllModifiersMask 0xff
346
+ #define XkbAllVirtualModsMask 0xffff
347
+
348
+ #define XkbNumKbdGroups 4
349
+ #define XkbMaxKbdGroup (XkbNumKbdGroups-1)
350
+
351
+ #define XkbMaxMouseKeysBtn 4
352
+
353
+ /*
354
+ * Group Index and Mask:
355
+ * - Indices into the kt_index array of a key type.
356
+ * - Mask specifies types to be changed for XkbChangeTypesOfKey
357
+ */
358
+ #define XkbGroup1Index 0
359
+ #define XkbGroup2Index 1
360
+ #define XkbGroup3Index 2
361
+ #define XkbGroup4Index 3
362
+ #define XkbAnyGroup 254
363
+ #define XkbAllGroups 255
364
+
365
+ #define XkbGroup1Mask (1<<0)
366
+ #define XkbGroup2Mask (1<<1)
367
+ #define XkbGroup3Mask (1<<2)
368
+ #define XkbGroup4Mask (1<<3)
369
+ #define XkbAnyGroupMask (1<<7)
370
+ #define XkbAllGroupsMask (0xf)
371
+
372
+ /*
373
+ * BuildCoreState: Given a keyboard group and a modifier state,
374
+ * construct the value to be reported an event.
375
+ * GroupForCoreState: Given the state reported in an event,
376
+ * determine the keyboard group.
377
+ * IsLegalGroup: Returns TRUE if 'g' is a valid group index.
378
+ */
379
+ #define XkbBuildCoreState(m,g) ((((g)&0x3)<<13)|((m)&0xff))
380
+ #define XkbGroupForCoreState(s) (((s)>>13)&0x3)
381
+ #define XkbIsLegalGroup(g) (((g)>=0)&&((g)<XkbNumKbdGroups))
382
+
383
+ /*
384
+ * GroupsWrap values:
385
+ * - The 'groupsWrap' field of an XkbControlsRec specifies the
386
+ * treatment of out of range groups.
387
+ * - Bits 6 and 7 of the group info field of a key symbol map
388
+ * specify the interpretation of out of range groups for the
389
+ * corresponding key.
390
+ */
391
+ #define XkbWrapIntoRange (0x00)
392
+ #define XkbClampIntoRange (0x40)
393
+ #define XkbRedirectIntoRange (0x80)
394
+
395
+ /*
396
+ * Action flags: Reported in the 'flags' field of most key actions.
397
+ * Interpretation depends on the type of the action; not all actions
398
+ * accept all flags.
399
+ *
400
+ * Option Used for Actions
401
+ * ------ ----------------
402
+ * ClearLocks SetMods, LatchMods, SetGroup, LatchGroup
403
+ * LatchToLock SetMods, LatchMods, SetGroup, LatchGroup
404
+ * LockNoLock LockMods, ISOLock, LockPtrBtn, LockDeviceBtn
405
+ * LockNoUnlock LockMods, ISOLock, LockPtrBtn, LockDeviceBtn
406
+ * UseModMapMods SetMods, LatchMods, LockMods, ISOLock
407
+ * GroupAbsolute SetGroup, LatchGroup, LockGroup, ISOLock
408
+ * UseDfltButton PtrBtn, LockPtrBtn
409
+ * NoAcceleration MovePtr
410
+ * MoveAbsoluteX MovePtr
411
+ * MoveAbsoluteY MovePtr
412
+ * ISODfltIsGroup ISOLock
413
+ * ISONoAffectMods ISOLock
414
+ * ISONoAffectGroup ISOLock
415
+ * ISONoAffectPtr ISOLock
416
+ * ISONoAffectCtrls ISOLock
417
+ * MessageOnPress ActionMessage
418
+ * MessageOnRelease ActionMessage
419
+ * MessageGenKeyEvent ActionMessage
420
+ * AffectDfltBtn SetPtrDflt
421
+ * DfltBtnAbsolute SetPtrDflt
422
+ * SwitchApplication SwitchScreen
423
+ * SwitchAbsolute SwitchScreen
424
+ */
425
+
426
+ #define XkbSA_ClearLocks (1L << 0)
427
+ #define XkbSA_LatchToLock (1L << 1)
428
+
429
+ #define XkbSA_LockNoLock (1L << 0)
430
+ #define XkbSA_LockNoUnlock (1L << 1)
431
+
432
+ #define XkbSA_UseModMapMods (1L << 2)
433
+
434
+ #define XkbSA_GroupAbsolute (1L << 2)
435
+ #define XkbSA_UseDfltButton 0
436
+
437
+ #define XkbSA_NoAcceleration (1L << 0)
438
+ #define XkbSA_MoveAbsoluteX (1L << 1)
439
+ #define XkbSA_MoveAbsoluteY (1L << 2)
440
+
441
+ #define XkbSA_ISODfltIsGroup (1L << 7)
442
+ #define XkbSA_ISONoAffectMods (1L << 6)
443
+ #define XkbSA_ISONoAffectGroup (1L << 5)
444
+ #define XkbSA_ISONoAffectPtr (1L << 4)
445
+ #define XkbSA_ISONoAffectCtrls (1L << 3)
446
+ #define XkbSA_ISOAffectMask (0x78)
447
+
448
+ #define XkbSA_MessageOnPress (1L << 0)
449
+ #define XkbSA_MessageOnRelease (1L << 1)
450
+ #define XkbSA_MessageGenKeyEvent (1L << 2)
451
+
452
+ #define XkbSA_AffectDfltBtn 1
453
+ #define XkbSA_DfltBtnAbsolute (1L << 2)
454
+
455
+ #define XkbSA_SwitchApplication (1L << 0)
456
+ #define XkbSA_SwitchAbsolute (1L << 2)
457
+
458
+ /*
459
+ * The following values apply to the SA_DeviceValuator
460
+ * action only. Valuator operations specify the action
461
+ * to be taken. Values specified in the action are
462
+ * multiplied by 2^scale before they are applied.
463
+ */
464
+ #define XkbSA_IgnoreVal (0x00)
465
+ #define XkbSA_SetValMin (0x10)
466
+ #define XkbSA_SetValCenter (0x20)
467
+ #define XkbSA_SetValMax (0x30)
468
+ #define XkbSA_SetValRelative (0x40)
469
+ #define XkbSA_SetValAbsolute (0x50)
470
+ #define XkbSA_ValOpMask (0x70)
471
+ #define XkbSA_ValScaleMask (0x07)
472
+ #define XkbSA_ValOp(a) ((a)&XkbSA_ValOpMask)
473
+ #define XkbSA_ValScale(a) ((a)&XkbSA_ValScaleMask)
474
+
475
+ /*
476
+ * Action types: specifies the type of a key action. Reported in the
477
+ * type field of all key actions.
478
+ */
479
+ #define XkbSA_NoAction 0x00
480
+ #define XkbSA_SetMods 0x01
481
+ #define XkbSA_LatchMods 0x02
482
+ #define XkbSA_LockMods 0x03
483
+ #define XkbSA_SetGroup 0x04
484
+ #define XkbSA_LatchGroup 0x05
485
+ #define XkbSA_LockGroup 0x06
486
+ #define XkbSA_MovePtr 0x07
487
+ #define XkbSA_PtrBtn 0x08
488
+ #define XkbSA_LockPtrBtn 0x09
489
+ #define XkbSA_SetPtrDflt 0x0a
490
+ #define XkbSA_ISOLock 0x0b
491
+ #define XkbSA_Terminate 0x0c
492
+ #define XkbSA_SwitchScreen 0x0d
493
+ #define XkbSA_SetControls 0x0e
494
+ #define XkbSA_LockControls 0x0f
495
+ #define XkbSA_ActionMessage 0x10
496
+ #define XkbSA_RedirectKey 0x11
497
+ #define XkbSA_DeviceBtn 0x12
498
+ #define XkbSA_LockDeviceBtn 0x13
499
+ #define XkbSA_DeviceValuator 0x14
500
+ #define XkbSA_LastAction XkbSA_DeviceValuator
501
+ #define XkbSA_NumActions (XkbSA_LastAction+1)
502
+
503
+ #define XkbSA_XFree86Private 0x86
504
+
505
+ /*
506
+ * Specifies the key actions that clear latched groups or modifiers.
507
+ */
508
+ #define XkbSA_BreakLatch \
509
+ ((1<<XkbSA_NoAction)|(1<<XkbSA_PtrBtn)|(1<<XkbSA_LockPtrBtn)|\
510
+ (1<<XkbSA_Terminate)|(1<<XkbSA_SwitchScreen)|(1<<XkbSA_SetControls)|\
511
+ (1<<XkbSA_LockControls)|(1<<XkbSA_ActionMessage)|\
512
+ (1<<XkbSA_RedirectKey)|(1<<XkbSA_DeviceBtn)|(1<<XkbSA_LockDeviceBtn))
513
+
514
+ /*
515
+ * Macros to classify key actions
516
+ */
517
+ #define XkbIsModAction(a) (((a)->type>=Xkb_SASetMods)&&((a)->type<=XkbSA_LockMods))
518
+ #define XkbIsGroupAction(a) (((a)->type>=XkbSA_SetGroup)&&((a)->type<=XkbSA_LockGroup))
519
+ #define XkbIsPtrAction(a) (((a)->type>=XkbSA_MovePtr)&&((a)->type<=XkbSA_SetPtrDflt))
520
+
521
+
522
+ /*
523
+ * Key Behavior Qualifier:
524
+ * KB_Permanent indicates that the behavior describes an unalterable
525
+ * characteristic of the keyboard, not an XKB software-simulation of
526
+ * the listed behavior.
527
+ * Key Behavior Types:
528
+ * Specifies the behavior of the underlying key.
529
+ */
530
+ #define XkbKB_Permanent 0x80
531
+ #define XkbKB_OpMask 0x7f
532
+
533
+ #define XkbKB_Default 0x00
534
+ #define XkbKB_Lock 0x01
535
+ #define XkbKB_RadioGroup 0x02
536
+ #define XkbKB_Overlay1 0x03
537
+ #define XkbKB_Overlay2 0x04
538
+
539
+ #define XkbKB_RGAllowNone 0x80
540
+
541
+ /*
542
+ * Various macros which describe the range of legal keycodes.
543
+ */
544
+ #define XkbMinLegalKeyCode 8
545
+ #define XkbMaxLegalKeyCode 255
546
+ #define XkbMaxKeyCount (XkbMaxLegalKeyCode-XkbMinLegalKeyCode+1)
547
+ #define XkbPerKeyBitArraySize ((XkbMaxLegalKeyCode+1)/8)
548
+ /* Seems kinda silly to check that an unsigned char is <= 255... */
549
+ #define XkbIsLegalKeycode(k) ((k)>=XkbMinLegalKeyCode)
550
+
551
+ /*
552
+ * Assorted constants and limits.
553
+ */
554
+ #define XkbNumModifiers 8
555
+ #define XkbNumVirtualMods 16
556
+ #define XkbNumIndicators 32
557
+ #define XkbAllIndicatorsMask (0xffffffff)
558
+ #define XkbMaxRadioGroups 32
559
+ #define XkbAllRadioGroupsMask (0xffffffff)
560
+ #define XkbMaxShiftLevel 63
561
+ #define XkbMaxSymsPerKey (XkbMaxShiftLevel*XkbNumKbdGroups)
562
+ #define XkbRGMaxMembers 12
563
+ #define XkbActionMessageLength 6
564
+ #define XkbKeyNameLength 4
565
+ #define XkbMaxRedirectCount 8
566
+
567
+ #define XkbGeomPtsPerMM 10
568
+ #define XkbGeomMaxColors 32
569
+ #define XkbGeomMaxLabelColors 3
570
+ #define XkbGeomMaxPriority 255
571
+
572
+ /*
573
+ * Key Type index and mask for the four standard key types.
574
+ */
575
+ #define XkbOneLevelIndex 0
576
+ #define XkbTwoLevelIndex 1
577
+ #define XkbAlphabeticIndex 2
578
+ #define XkbKeypadIndex 3
579
+ #define XkbLastRequiredType XkbKeypadIndex
580
+ #define XkbNumRequiredTypes (XkbLastRequiredType+1)
581
+ #define XkbMaxKeyTypes 255
582
+
583
+ #define XkbOneLevelMask (1<<0)
584
+ #define XkbTwoLevelMask (1<<1)
585
+ #define XkbAlphabeticMask (1<<2)
586
+ #define XkbKeypadMask (1<<3)
587
+ #define XkbAllRequiredTypes (0xf)
588
+
589
+ #define XkbShiftLevel(n) ((n)-1)
590
+ #define XkbShiftLevelMask(n) (1<<((n)-1))
591
+
592
+ /*
593
+ * Extension name and version information
594
+ */
595
+ #define XkbName "XKEYBOARD"
596
+ #define XkbMajorVersion 1
597
+ #define XkbMinorVersion 0
598
+
599
+ /*
600
+ * Explicit map components:
601
+ * - Used in the 'explicit' field of an XkbServerMap. Specifies
602
+ * the keyboard components that should _not_ be updated automatically
603
+ * in response to core protocol keyboard mapping requests.
604
+ */
605
+ #define XkbExplicitKeyTypesMask (0x0f)
606
+ #define XkbExplicitKeyType1Mask (1<<0)
607
+ #define XkbExplicitKeyType2Mask (1<<1)
608
+ #define XkbExplicitKeyType3Mask (1<<2)
609
+ #define XkbExplicitKeyType4Mask (1<<3)
610
+ #define XkbExplicitInterpretMask (1<<4)
611
+ #define XkbExplicitAutoRepeatMask (1<<5)
612
+ #define XkbExplicitBehaviorMask (1<<6)
613
+ #define XkbExplicitVModMapMask (1<<7)
614
+ #define XkbAllExplicitMask (0xff)
615
+
616
+ /*
617
+ * Map components masks:
618
+ * Those in AllMapComponentsMask:
619
+ * - Specifies the individual fields to be loaded or changed for the
620
+ * GetMap and SetMap requests.
621
+ * Those in ClientInfoMask:
622
+ * - Specifies the components to be allocated by XkbAllocClientMap.
623
+ * Those in ServerInfoMask:
624
+ * - Specifies the components to be allocated by XkbAllocServerMap.
625
+ */
626
+ #define XkbKeyTypesMask (1<<0)
627
+ #define XkbKeySymsMask (1<<1)
628
+ #define XkbModifierMapMask (1<<2)
629
+ #define XkbExplicitComponentsMask (1<<3)
630
+ #define XkbKeyActionsMask (1<<4)
631
+ #define XkbKeyBehaviorsMask (1<<5)
632
+ #define XkbVirtualModsMask (1<<6)
633
+ #define XkbVirtualModMapMask (1<<7)
634
+
635
+ #define XkbAllClientInfoMask (XkbKeyTypesMask|XkbKeySymsMask|XkbModifierMapMask)
636
+ #define XkbAllServerInfoMask (XkbExplicitComponentsMask|XkbKeyActionsMask|XkbKeyBehaviorsMask|XkbVirtualModsMask|XkbVirtualModMapMask)
637
+ #define XkbAllMapComponentsMask (XkbAllClientInfoMask|XkbAllServerInfoMask)
638
+
639
+ /*
640
+ * Symbol interpretations flags:
641
+ * - Used in the flags field of a symbol interpretation
642
+ */
643
+ #define XkbSI_AutoRepeat (1<<0)
644
+ #define XkbSI_LockingKey (1<<1)
645
+
646
+ /*
647
+ * Symbol interpretations match specification:
648
+ * - Used in the match field of a symbol interpretation to specify
649
+ * the conditions under which an interpretation is used.
650
+ */
651
+ #define XkbSI_LevelOneOnly (0x80)
652
+ #define XkbSI_OpMask (0x7f)
653
+ #define XkbSI_NoneOf (0)
654
+ #define XkbSI_AnyOfOrNone (1)
655
+ #define XkbSI_AnyOf (2)
656
+ #define XkbSI_AllOf (3)
657
+ #define XkbSI_Exactly (4)
658
+
659
+ /*
660
+ * Indicator map flags:
661
+ * - Used in the flags field of an indicator map to indicate the
662
+ * conditions under which and indicator can be changed and the
663
+ * effects of changing the indicator.
664
+ */
665
+ #define XkbIM_NoExplicit (1L << 7)
666
+ #define XkbIM_NoAutomatic (1L << 6)
667
+ #define XkbIM_LEDDrivesKB (1L << 5)
668
+
669
+ /*
670
+ * Indicator map component specifications:
671
+ * - Used by the 'which_groups' and 'which_mods' fields of an indicator
672
+ * map to specify which keyboard components should be used to drive
673
+ * the indicator.
674
+ */
675
+ #define XkbIM_UseBase (1L << 0)
676
+ #define XkbIM_UseLatched (1L << 1)
677
+ #define XkbIM_UseLocked (1L << 2)
678
+ #define XkbIM_UseEffective (1L << 3)
679
+ #define XkbIM_UseCompat (1L << 4)
680
+
681
+ #define XkbIM_UseNone 0
682
+ #define XkbIM_UseAnyGroup (XkbIM_UseBase|XkbIM_UseLatched|XkbIM_UseLocked\
683
+ |XkbIM_UseEffective)
684
+ #define XkbIM_UseAnyMods (XkbIM_UseAnyGroup|XkbIM_UseCompat)
685
+
686
+ /*
687
+ * Compatibility Map Components:
688
+ * - Specifies the components to be allocated in XkbAllocCompatMap.
689
+ */
690
+ #define XkbSymInterpMask (1<<0)
691
+ #define XkbGroupCompatMask (1<<1)
692
+ #define XkbAllCompatMask (0x3)
693
+
694
+ /*
695
+ * Names component mask:
696
+ * - Specifies the names to be loaded or changed for the GetNames and
697
+ * SetNames requests.
698
+ * - Specifies the names that have changed in a NamesNotify event.
699
+ * - Specifies the names components to be allocated by XkbAllocNames.
700
+ */
701
+ #define XkbKeycodesNameMask (1<<0)
702
+ #define XkbGeometryNameMask (1<<1)
703
+ #define XkbSymbolsNameMask (1<<2)
704
+ #define XkbPhysSymbolsNameMask (1<<3)
705
+ #define XkbTypesNameMask (1<<4)
706
+ #define XkbCompatNameMask (1<<5)
707
+ #define XkbKeyTypeNamesMask (1<<6)
708
+ #define XkbKTLevelNamesMask (1<<7)
709
+ #define XkbIndicatorNamesMask (1<<8)
710
+ #define XkbKeyNamesMask (1<<9)
711
+ #define XkbKeyAliasesMask (1<<10)
712
+ #define XkbVirtualModNamesMask (1<<11)
713
+ #define XkbGroupNamesMask (1<<12)
714
+ #define XkbRGNamesMask (1<<13)
715
+ #define XkbComponentNamesMask (0x3f)
716
+ #define XkbAllNamesMask (0x3fff)
717
+
718
+ /*
719
+ * GetByName components:
720
+ * - Specifies desired or necessary components to GetKbdByName request.
721
+ * - Reports the components that were found in a GetKbdByNameReply
722
+ */
723
+ #define XkbGBN_TypesMask (1L << 0)
724
+ #define XkbGBN_CompatMapMask (1L << 1)
725
+ #define XkbGBN_ClientSymbolsMask (1L << 2)
726
+ #define XkbGBN_ServerSymbolsMask (1L << 3)
727
+ #define XkbGBN_SymbolsMask (XkbGBN_ClientSymbolsMask|XkbGBN_ServerSymbolsMask)
728
+ #define XkbGBN_IndicatorMapMask (1L << 4)
729
+ #define XkbGBN_KeyNamesMask (1L << 5)
730
+ #define XkbGBN_GeometryMask (1L << 6)
731
+ #define XkbGBN_OtherNamesMask (1L << 7)
732
+ #define XkbGBN_AllComponentsMask (0xff)
733
+
734
+ /*
735
+ * ListComponents flags
736
+ */
737
+ #define XkbLC_Hidden (1L << 0)
738
+ #define XkbLC_Default (1L << 1)
739
+ #define XkbLC_Partial (1L << 2)
740
+
741
+ #define XkbLC_AlphanumericKeys (1L << 8)
742
+ #define XkbLC_ModifierKeys (1L << 9)
743
+ #define XkbLC_KeypadKeys (1L << 10)
744
+ #define XkbLC_FunctionKeys (1L << 11)
745
+ #define XkbLC_AlternateGroup (1L << 12)
746
+
747
+ /*
748
+ * X Input Extension Interactions
749
+ * - Specifies the possible interactions between XKB and the X input
750
+ * extension
751
+ * - Used to request (XkbGetDeviceInfo) or change (XKbSetDeviceInfo)
752
+ * XKB information about an extension device.
753
+ * - Reports the list of supported optional features in the reply to
754
+ * XkbGetDeviceInfo or in an XkbExtensionDeviceNotify event.
755
+ * XkbXI_UnsupportedFeature is reported in XkbExtensionDeviceNotify
756
+ * events to indicate an attempt to use an unsupported feature.
757
+ */
758
+ #define XkbXI_KeyboardsMask (1L << 0)
759
+ #define XkbXI_ButtonActionsMask (1L << 1)
760
+ #define XkbXI_IndicatorNamesMask (1L << 2)
761
+ #define XkbXI_IndicatorMapsMask (1L << 3)
762
+ #define XkbXI_IndicatorStateMask (1L << 4)
763
+ #define XkbXI_UnsupportedFeatureMask (1L << 15)
764
+ #define XkbXI_AllFeaturesMask (0x001f)
765
+ #define XkbXI_AllDeviceFeaturesMask (0x001e)
766
+
767
+ #define XkbXI_IndicatorsMask (0x001c)
768
+ #define XkbAllExtensionDeviceEventsMask (0x801f)
769
+
770
+ /*
771
+ * Per-Client Flags:
772
+ * - Specifies flags to be changed by the PerClientFlags request.
773
+ */
774
+ #define XkbPCF_DetectableAutoRepeatMask (1L << 0)
775
+ #define XkbPCF_GrabsUseXKBStateMask (1L << 1)
776
+ #define XkbPCF_AutoResetControlsMask (1L << 2)
777
+ #define XkbPCF_LookupStateWhenGrabbed (1L << 3)
778
+ #define XkbPCF_SendEventUsesXKBState (1L << 4)
779
+ #define XkbPCF_AllFlagsMask (0x1F)
780
+
781
+ /*
782
+ * Debugging flags and controls
783
+ */
784
+ #define XkbDF_DisableLocks (1<<0)
785
+
786
+ #endif /* _XKB_H_ */
data/miniconda3/include/X11/extensions/XKBsrv.h ADDED
@@ -0,0 +1,1184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /************************************************************
2
+ Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc.
3
+
4
+ Permission to use, copy, modify, and distribute this
5
+ software and its documentation for any purpose and without
6
+ fee is hereby granted, provided that the above copyright
7
+ notice appear in all copies and that both that copyright
8
+ notice and this permission notice appear in supporting
9
+ documentation, and that the name of Silicon Graphics not be
10
+ used in advertising or publicity pertaining to distribution
11
+ of the software without specific prior written permission.
12
+ Silicon Graphics makes no representation about the suitability
13
+ of this software for any purpose. It is provided "as is"
14
+ without any express or implied warranty.
15
+
16
+ SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
17
+ SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18
+ AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
19
+ GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
20
+ DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
21
+ DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
22
+ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
23
+ THE USE OR PERFORMANCE OF THIS SOFTWARE.
24
+
25
+ ********************************************************/
26
+
27
+ #ifndef _XKBSRV_H_
28
+ #define _XKBSRV_H_
29
+
30
+ #ifdef XKB_IN_SERVER
31
+ #define XkbAllocClientMap SrvXkbAllocClientMap
32
+ #define XkbAllocServerMap SrvXkbAllocServerMap
33
+ #define XkbChangeTypesOfKey SrvXkbChangeTypesOfKey
34
+ #define XkbAddKeyType SrvXkbAddKeyType
35
+ #define XkbCopyKeyType SrvXkbCopyKeyType
36
+ #define XkbCopyKeyTypes SrvXkbCopyKeyTypes
37
+ #define XkbFreeClientMap SrvXkbFreeClientMap
38
+ #define XkbFreeServerMap SrvXkbFreeServerMap
39
+ #define XkbInitCanonicalKeyTypes SrvXkbInitCanonicalKeyTypes
40
+ #define XkbKeyTypesForCoreSymbols SrvXkbKeyTypesForCoreSymbols
41
+ #define XkbApplyCompatMapToKey SrvXkbApplyCompatMapToKey
42
+ #define XkbUpdateMapFromCore SrvXkbUpdateMapFromCore
43
+ #define XkbResizeKeyActions SrvXkbResizeKeyActions
44
+ #define XkbResizeKeySyms SrvXkbResizeKeySyms
45
+ #define XkbResizeKeyType SrvXkbResizeKeyType
46
+ #define XkbAllocCompatMap SrvXkbAllocCompatMap
47
+ #define XkbAllocControls SrvXkbAllocControls
48
+ #define XkbAllocIndicatorMaps SrvXkbAllocIndicatorMaps
49
+ #define XkbAllocKeyboard SrvXkbAllocKeyboard
50
+ #define XkbAllocNames SrvXkbAllocNames
51
+ #define XkbFreeCompatMap SrvXkbFreeCompatMap
52
+ #define XkbFreeControls SrvXkbFreeControls
53
+ #define XkbFreeIndicatorMaps SrvXkbFreeIndicatorMaps
54
+ #define XkbFreeKeyboard SrvXkbFreeKeyboard
55
+ #define XkbFreeNames SrvXkbFreeNames
56
+ #define XkbAddDeviceLedInfo SrvXkbAddDeviceLedInfo
57
+ #define XkbAllocDeviceInfo SrvXkbAllocDeviceInfo
58
+ #define XkbFreeDeviceInfo SrvXkbFreeDeviceInfo
59
+ #define XkbResizeDeviceButtonActions SrvXkbResizeDeviceButtonActions
60
+ #define XkbLatchModifiers SrvXkbLatchModifiers
61
+ #define XkbLatchGroup SrvXkbLatchGroup
62
+ #define XkbVirtualModsToReal SrvXkbVirtualModsToReal
63
+ #define XkbChangeKeycodeRange SrvXkbChangeKeycodeRange
64
+ #define XkbApplyVirtualModChanges SrvXkbApplyVirtualModChanges
65
+ #define XkbUpdateActionVirtualMods SrvXkbUpdateActionVirtualMods
66
+ #define XkbUpdateKeyTypeVirtualMods SrvXkbUpdateKeyTypeVirtualMods
67
+ #endif
68
+
69
+ #include <X11/extensions/XKBstr.h>
70
+ #include <X11/extensions/XKBproto.h>
71
+ #include "inputstr.h"
72
+
73
+ typedef struct _XkbInterest {
74
+ DeviceIntPtr dev;
75
+ ClientPtr client;
76
+ XID resource;
77
+ struct _XkbInterest * next;
78
+ CARD16 extDevNotifyMask;
79
+ CARD16 stateNotifyMask;
80
+ CARD16 namesNotifyMask;
81
+ CARD32 ctrlsNotifyMask;
82
+ CARD8 compatNotifyMask;
83
+ BOOL bellNotifyMask;
84
+ BOOL actionMessageMask;
85
+ CARD16 accessXNotifyMask;
86
+ CARD32 iStateNotifyMask;
87
+ CARD32 iMapNotifyMask;
88
+ CARD16 altSymsNotifyMask;
89
+ CARD32 autoCtrls;
90
+ CARD32 autoCtrlValues;
91
+ } XkbInterestRec,*XkbInterestPtr;
92
+
93
+ typedef struct _XkbRadioGroup {
94
+ CARD8 flags;
95
+ CARD8 nMembers;
96
+ CARD8 dfltDown;
97
+ CARD8 currentDown;
98
+ CARD8 members[XkbRGMaxMembers];
99
+ } XkbRadioGroupRec, *XkbRadioGroupPtr;
100
+
101
+ typedef struct _XkbEventCause {
102
+ CARD8 kc;
103
+ CARD8 event;
104
+ CARD8 mjr;
105
+ CARD8 mnr;
106
+ ClientPtr client;
107
+ } XkbEventCauseRec,*XkbEventCausePtr;
108
+ #define XkbSetCauseKey(c,k,e) { (c)->kc= (k),(c)->event= (e),\
109
+ (c)->mjr= (c)->mnr= 0; \
110
+ (c)->client= NULL; }
111
+ #define XkbSetCauseReq(c,j,n,cl) { (c)->kc= (c)->event= 0,\
112
+ (c)->mjr= (j),(c)->mnr= (n);\
113
+ (c)->client= (cl); }
114
+ #define XkbSetCauseCoreReq(c,e,cl) XkbSetCauseReq(c,e,0,cl)
115
+ #define XkbSetCauseXkbReq(c,e,cl) XkbSetCauseReq(c,XkbReqCode,e,cl)
116
+ #define XkbSetCauseUnknown(c) XkbSetCauseKey(c,0,0)
117
+
118
+ #define _OFF_TIMER 0
119
+ #define _KRG_WARN_TIMER 1
120
+ #define _KRG_TIMER 2
121
+ #define _SK_TIMEOUT_TIMER 3
122
+ #define _ALL_TIMEOUT_TIMER 4
123
+
124
+ #define _BEEP_NONE 0
125
+ #define _BEEP_FEATURE_ON 1
126
+ #define _BEEP_FEATURE_OFF 2
127
+ #define _BEEP_FEATURE_CHANGE 3
128
+ #define _BEEP_SLOW_WARN 4
129
+ #define _BEEP_SLOW_PRESS 5
130
+ #define _BEEP_SLOW_ACCEPT 6
131
+ #define _BEEP_SLOW_REJECT 7
132
+ #define _BEEP_SLOW_RELEASE 8
133
+ #define _BEEP_STICKY_LATCH 9
134
+ #define _BEEP_STICKY_LOCK 10
135
+ #define _BEEP_STICKY_UNLOCK 11
136
+ #define _BEEP_LED_ON 12
137
+ #define _BEEP_LED_OFF 13
138
+ #define _BEEP_LED_CHANGE 14
139
+ #define _BEEP_BOUNCE_REJECT 15
140
+
141
+ typedef struct _XkbSrvInfo {
142
+ XkbStateRec prev_state;
143
+ XkbStateRec state;
144
+ XkbDescPtr desc;
145
+
146
+ DeviceIntPtr device;
147
+ KbdCtrlProcPtr kbdProc;
148
+
149
+ XkbRadioGroupPtr radioGroups;
150
+ CARD8 nRadioGroups;
151
+ CARD8 clearMods;
152
+ CARD8 setMods;
153
+ INT16 groupChange;
154
+
155
+ CARD16 dfltPtrDelta;
156
+
157
+ double mouseKeysCurve;
158
+ double mouseKeysCurveFactor;
159
+ INT16 mouseKeysDX;
160
+ INT16 mouseKeysDY;
161
+ CARD8 mouseKeysFlags;
162
+ Bool mouseKeysAccel;
163
+ CARD8 mouseKeysCounter;
164
+
165
+ CARD8 lockedPtrButtons;
166
+ CARD8 shiftKeyCount;
167
+ KeyCode mouseKey;
168
+ KeyCode inactiveKey;
169
+ KeyCode slowKey;
170
+ KeyCode repeatKey;
171
+ CARD8 krgTimerActive;
172
+ CARD8 beepType;
173
+ CARD8 beepCount;
174
+
175
+ CARD32 flags;
176
+ CARD32 lastPtrEventTime;
177
+ CARD32 lastShiftEventTime;
178
+ OsTimerPtr beepTimer;
179
+ OsTimerPtr mouseKeyTimer;
180
+ OsTimerPtr slowKeysTimer;
181
+ OsTimerPtr bounceKeysTimer;
182
+ OsTimerPtr repeatKeyTimer;
183
+ OsTimerPtr krgTimer;
184
+ } XkbSrvInfoRec, *XkbSrvInfoPtr;
185
+
186
+ #define XkbSLI_IsDefault (1L<<0)
187
+ #define XkbSLI_HasOwnState (1L<<1)
188
+
189
+ typedef struct _XkbSrvLedInfo {
190
+ CARD16 flags;
191
+ CARD16 class;
192
+ CARD16 id;
193
+ union {
194
+ KbdFeedbackPtr kf;
195
+ LedFeedbackPtr lf;
196
+ } fb;
197
+
198
+ CARD32 physIndicators;
199
+ CARD32 autoState;
200
+ CARD32 explicitState;
201
+ CARD32 effectiveState;
202
+
203
+ CARD32 mapsPresent;
204
+ CARD32 namesPresent;
205
+ XkbIndicatorMapPtr maps;
206
+ Atom * names;
207
+
208
+ CARD32 usesBase;
209
+ CARD32 usesLatched;
210
+ CARD32 usesLocked;
211
+ CARD32 usesEffective;
212
+ CARD32 usesCompat;
213
+ CARD32 usesControls;
214
+
215
+ CARD32 usedComponents;
216
+ } XkbSrvLedInfoRec, *XkbSrvLedInfoPtr;
217
+
218
+ /*
219
+ * Settings for xkbClientFlags field (used by DIX)
220
+ * These flags _must_ not overlap with XkbPCF_*
221
+ */
222
+ #define _XkbClientInitialized (1<<15)
223
+
224
+ #define _XkbWantsDetectableAutoRepeat(c)\
225
+ ((c)->xkbClientFlags&XkbPCF_DetectableAutoRepeatMask)
226
+
227
+ /*
228
+ * Settings for flags field
229
+ */
230
+ #define _XkbStateNotifyInProgress (1<<0)
231
+
232
+ typedef struct
233
+ {
234
+ ProcessInputProc processInputProc;
235
+ ProcessInputProc realInputProc;
236
+ DeviceUnwrapProc unwrapProc;
237
+ } xkbDeviceInfoRec, *xkbDeviceInfoPtr;
238
+
239
+ #define WRAP_PROCESS_INPUT_PROC(device, oldprocs, proc, unwrapproc) \
240
+ device->public.processInputProc = proc; \
241
+ oldprocs->processInputProc = \
242
+ oldprocs->realInputProc = device->public.realInputProc; \
243
+ device->public.realInputProc = proc; \
244
+ oldprocs->unwrapProc = device->unwrapProc; \
245
+ device->unwrapProc = unwrapproc;
246
+
247
+ #define COND_WRAP_PROCESS_INPUT_PROC(device, oldprocs, proc, unwrapproc) \
248
+ if (device->public.processInputProc == device->public.realInputProc)\
249
+ device->public.processInputProc = proc; \
250
+ oldprocs->processInputProc = \
251
+ oldprocs->realInputProc = device->public.realInputProc; \
252
+ device->public.realInputProc = proc; \
253
+ oldprocs->unwrapProc = device->unwrapProc; \
254
+ device->unwrapProc = unwrapproc;
255
+
256
+ #define UNWRAP_PROCESS_INPUT_PROC(device, oldprocs) \
257
+ device->public.processInputProc = oldprocs->processInputProc; \
258
+ device->public.realInputProc = oldprocs->realInputProc; \
259
+ device->unwrapProc = oldprocs->unwrapProc;
260
+
261
+ #define XKBDEVICEINFO(dev) ((xkbDeviceInfoPtr) (dev)->devPrivates[xkbDevicePrivateIndex].ptr)
262
+
263
+ /***====================================================================***/
264
+
265
+
266
+ /***====================================================================***/
267
+
268
+ #define XkbAX_KRGMask (XkbSlowKeysMask|XkbBounceKeysMask)
269
+ #define XkbAllFilteredEventsMask \
270
+ (XkbAccessXKeysMask|XkbRepeatKeysMask|XkbMouseKeysAccelMask|XkbAX_KRGMask)
271
+
272
+ /***====================================================================***/
273
+
274
+ extern int XkbReqCode;
275
+ extern int XkbEventBase;
276
+ extern int XkbKeyboardErrorCode;
277
+ extern int XkbDisableLockActions;
278
+ extern char * XkbBaseDirectory;
279
+ extern char * XkbBinDirectory;
280
+ extern char * XkbInitialMap;
281
+ extern int _XkbClientMajor;
282
+ extern int _XkbClientMinor;
283
+ extern unsigned int XkbXIUnsupported;
284
+
285
+ extern char * XkbModelUsed,*XkbLayoutUsed,*XkbVariantUsed,*XkbOptionsUsed;
286
+ extern Bool noXkbExtension;
287
+ extern Bool XkbWantRulesProp;
288
+
289
+ extern pointer XkbLastRepeatEvent;
290
+
291
+ extern CARD32 xkbDebugFlags;
292
+ extern CARD32 xkbDebugCtrls;
293
+
294
+ #define _XkbAlloc(s) xalloc((s))
295
+ #define _XkbCalloc(n,s) Xcalloc((n)*(s))
296
+ #define _XkbRealloc(o,s) Xrealloc((o),(s))
297
+ #define _XkbTypedAlloc(t) ((t *)xalloc(sizeof(t)))
298
+ #define _XkbTypedCalloc(n,t) ((t *)Xcalloc((n)*sizeof(t)))
299
+ #define _XkbTypedRealloc(o,n,t) \
300
+ ((o)?(t *)Xrealloc((o),(n)*sizeof(t)):_XkbTypedCalloc(n,t))
301
+ #define _XkbClearElems(a,f,l,t) bzero(&(a)[f],((l)-(f)+1)*sizeof(t))
302
+ #define _XkbFree(p) Xfree(p)
303
+
304
+ #define _XkbLibError(c,l,d) \
305
+ { _XkbErrCode= (c); _XkbErrLocation= (l); _XkbErrData= (d); }
306
+ #define _XkbErrCode2(a,b) ((XID)((((unsigned int)(a))<<24)|((b)&0xffffff)))
307
+ #define _XkbErrCode3(a,b,c) _XkbErrCode2(a,(((unsigned int)(b))<<16)|(c))
308
+ #define _XkbErrCode4(a,b,c,d) _XkbErrCode3(a,b,((((unsigned int)(c))<<8)|(d)))
309
+
310
+ extern int DeviceKeyPress,DeviceKeyRelease;
311
+ extern int DeviceButtonPress,DeviceButtonRelease;
312
+
313
+ #ifdef XINPUT
314
+ #define _XkbIsPressEvent(t) (((t)==KeyPress)||((t)==DeviceKeyPress))
315
+ #define _XkbIsReleaseEvent(t) (((t)==KeyRelease)||((t)==DeviceKeyRelease))
316
+ #else
317
+ #define _XkbIsPressEvent(t) ((t)==KeyPress)
318
+ #define _XkbIsReleaseEvent(t) ((t)==KeyRelease)
319
+ #endif
320
+
321
+ #define _XkbCoreKeycodeInRange(c,k) (((k)>=(c)->curKeySyms.minKeyCode)&&\
322
+ ((k)<=(c)->curKeySyms.maxKeyCode))
323
+ #define _XkbCoreNumKeys(c) ((c)->curKeySyms.maxKeyCode-\
324
+ (c)->curKeySyms.minKeyCode+1)
325
+
326
+ #define XConvertCase(s,l,u) XkbConvertCase(s,l,u)
327
+ #undef IsKeypadKey
328
+ #define IsKeypadKey(s) XkbKSIsKeypad(s)
329
+
330
+ typedef int Status;
331
+ typedef pointer XPointer;
332
+ typedef struct _XDisplay Display;
333
+
334
+ #ifndef True
335
+ #define True 1
336
+ #define False 0
337
+ #endif
338
+
339
+ #ifndef PATH_MAX
340
+ #ifdef MAXPATHLEN
341
+ #define PATH_MAX MAXPATHLEN
342
+ #else
343
+ #define PATH_MAX 1024
344
+ #endif
345
+ #endif
346
+
347
+ _XFUNCPROTOBEGIN
348
+
349
+ extern void XkbUseMsg(
350
+ void
351
+ );
352
+
353
+ extern int XkbProcessArguments(
354
+ int /* argc */,
355
+ char ** /* argv */,
356
+ int /* i */
357
+ );
358
+
359
+ extern void XkbSetExtension(DeviceIntPtr device, ProcessInputProc proc);
360
+
361
+ extern void XkbFreeCompatMap(
362
+ XkbDescPtr /* xkb */,
363
+ unsigned int /* which */,
364
+ Bool /* freeMap */
365
+ );
366
+
367
+ extern void XkbFreeNames(
368
+ XkbDescPtr /* xkb */,
369
+ unsigned int /* which */,
370
+ Bool /* freeMap */
371
+ );
372
+
373
+ extern DeviceIntPtr _XkbLookupAnyDevice(
374
+ int /* id */,
375
+ int * /* why_rtrn */
376
+ );
377
+
378
+ extern DeviceIntPtr _XkbLookupKeyboard(
379
+ int /* id */,
380
+ int * /* why_rtrn */
381
+ );
382
+
383
+ extern DeviceIntPtr _XkbLookupBellDevice(
384
+ int /* id */,
385
+ int * /* why_rtrn */
386
+ );
387
+
388
+ extern DeviceIntPtr _XkbLookupLedDevice(
389
+ int /* id */,
390
+ int * /* why_rtrn */
391
+ );
392
+
393
+ extern DeviceIntPtr _XkbLookupButtonDevice(
394
+ int /* id */,
395
+ int * /* why_rtrn */
396
+ );
397
+
398
+ extern XkbDescPtr XkbAllocKeyboard(
399
+ void
400
+ );
401
+
402
+ extern Status XkbAllocClientMap(
403
+ XkbDescPtr /* xkb */,
404
+ unsigned int /* which */,
405
+ unsigned int /* nTypes */
406
+ );
407
+
408
+ extern Status XkbAllocServerMap(
409
+ XkbDescPtr /* xkb */,
410
+ unsigned int /* which */,
411
+ unsigned int /* nNewActions */
412
+ );
413
+
414
+ extern void XkbFreeClientMap(
415
+ XkbDescPtr /* xkb */,
416
+ unsigned int /* what */,
417
+ Bool /* freeMap */
418
+ );
419
+
420
+ extern void XkbFreeServerMap(
421
+ XkbDescPtr /* xkb */,
422
+ unsigned int /* what */,
423
+ Bool /* freeMap */
424
+ );
425
+
426
+ extern Status XkbAllocIndicatorMaps(
427
+ XkbDescPtr /* xkb */
428
+ );
429
+
430
+ extern Status XkbAllocCompatMap(
431
+ XkbDescPtr /* xkb */,
432
+ unsigned int /* which */,
433
+ unsigned int /* nInterpret */
434
+ );
435
+
436
+ extern Status XkbAllocNames(
437
+ XkbDescPtr /* xkb */,
438
+ unsigned int /* which */,
439
+ int /* nTotalRG */,
440
+ int /* nTotalAliases */
441
+ );
442
+
443
+ extern Status XkbAllocControls(
444
+ XkbDescPtr /* xkb */,
445
+ unsigned int /* which*/
446
+ );
447
+
448
+ extern Status XkbCopyKeyType(
449
+ XkbKeyTypePtr /* from */,
450
+ XkbKeyTypePtr /* into */
451
+ );
452
+
453
+ extern Status XkbCopyKeyTypes(
454
+ XkbKeyTypePtr /* from */,
455
+ XkbKeyTypePtr /* into */,
456
+ int /* num_types */
457
+ );
458
+
459
+ extern Status XkbResizeKeyType(
460
+ XkbDescPtr /* xkb */,
461
+ int /* type_ndx */,
462
+ int /* map_count */,
463
+ Bool /* want_preserve */,
464
+ int /* new_num_lvls */
465
+ );
466
+
467
+ extern void XkbFreeKeyboard(
468
+ XkbDescPtr /* xkb */,
469
+ unsigned int /* which */,
470
+ Bool /* freeDesc */
471
+ );
472
+
473
+ extern void XkbSetActionKeyMods(
474
+ XkbDescPtr /* xkb */,
475
+ XkbAction * /* act */,
476
+ unsigned int /* mods */
477
+ );
478
+
479
+ extern Bool XkbCheckActionVMods(
480
+ XkbDescPtr /* xkb */,
481
+ XkbAction * /* act */,
482
+ unsigned int /* changed */
483
+ );
484
+
485
+ extern Bool XkbApplyVModChanges(
486
+ XkbSrvInfoPtr /* xkbi */,
487
+ unsigned int /* changed */,
488
+ XkbChangesPtr /* pChanges */,
489
+ unsigned int * /* needChecksRtrn */,
490
+ XkbEventCausePtr /* cause */
491
+ );
492
+
493
+ extern void XkbApplyVModChangesToAllDevices(
494
+ DeviceIntPtr /* dev */,
495
+ XkbDescPtr /* xkb */,
496
+ unsigned int /* changed */,
497
+ XkbEventCausePtr /* cause */
498
+ );
499
+
500
+ extern unsigned int XkbMaskForVMask(
501
+ XkbDescPtr /* xkb */,
502
+ unsigned int /* vmask */
503
+ );
504
+
505
+ extern Bool XkbVirtualModsToReal(
506
+ XkbDescPtr /* xkb */,
507
+ unsigned int /* virtua_mask */,
508
+ unsigned int * /* mask_rtrn */
509
+ );
510
+
511
+ extern unsigned int XkbAdjustGroup(
512
+ int /* group */,
513
+ XkbControlsPtr /* ctrls */
514
+ );
515
+
516
+ extern KeySym *XkbResizeKeySyms(
517
+ XkbDescPtr /* xkb */,
518
+ int /* key */,
519
+ int /* needed */
520
+ );
521
+
522
+ extern XkbAction *XkbResizeKeyActions(
523
+ XkbDescPtr /* xkb */,
524
+ int /* key */,
525
+ int /* needed */
526
+ );
527
+
528
+ extern void XkbUpdateKeyTypesFromCore(
529
+ DeviceIntPtr /* pXDev */,
530
+ KeyCode /* first */,
531
+ CARD8 /* num */,
532
+ XkbChangesPtr /* pChanges */
533
+ );
534
+
535
+ extern void XkbUpdateDescActions(
536
+ XkbDescPtr /* xkb */,
537
+ KeyCode /* first */,
538
+ CARD8 /* num */,
539
+ XkbChangesPtr /* changes */
540
+ );
541
+
542
+ extern void XkbUpdateActions(
543
+ DeviceIntPtr /* pXDev */,
544
+ KeyCode /* first */,
545
+ CARD8 /* num */,
546
+ XkbChangesPtr /* pChanges */,
547
+ unsigned int * /* needChecksRtrn */,
548
+ XkbEventCausePtr /* cause */
549
+ );
550
+
551
+ extern void XkbUpdateCoreDescription(
552
+ DeviceIntPtr /* keybd */,
553
+ Bool /* resize */
554
+ );
555
+
556
+ extern void XkbApplyMappingChange(
557
+ DeviceIntPtr /* pXDev */,
558
+ CARD8 /* request */,
559
+ KeyCode /* firstKey */,
560
+ CARD8 /* num */,
561
+ ClientPtr /* client */
562
+ );
563
+
564
+ extern void XkbSetIndicators(
565
+ DeviceIntPtr /* pXDev */,
566
+ CARD32 /* affect */,
567
+ CARD32 /* values */,
568
+ XkbEventCausePtr /* cause */
569
+ );
570
+
571
+ extern void XkbUpdateIndicators(
572
+ DeviceIntPtr /* keybd */,
573
+ CARD32 /* changed */,
574
+ Bool /* check_edevs */,
575
+ XkbChangesPtr /* pChanges */,
576
+ XkbEventCausePtr /* cause */
577
+ );
578
+
579
+ extern XkbSrvLedInfoPtr XkbAllocSrvLedInfo(
580
+ DeviceIntPtr /* dev */,
581
+ KbdFeedbackPtr /* kf */,
582
+ LedFeedbackPtr /* lf */,
583
+ unsigned int /* needed_parts */
584
+ );
585
+
586
+ extern XkbSrvLedInfoPtr XkbFindSrvLedInfo(
587
+ DeviceIntPtr /* dev */,
588
+ unsigned int /* class */,
589
+ unsigned int /* id */,
590
+ unsigned int /* needed_parts */
591
+ );
592
+
593
+ extern void XkbApplyLedNameChanges(
594
+ DeviceIntPtr /* dev */,
595
+ XkbSrvLedInfoPtr /* sli */,
596
+ unsigned int /* changed_names */,
597
+ xkbExtensionDeviceNotify * /* ed */,
598
+ XkbChangesPtr /* changes */,
599
+ XkbEventCausePtr /* cause */
600
+ );
601
+
602
+ extern void XkbApplyLedMapChanges(
603
+ DeviceIntPtr /* dev */,
604
+ XkbSrvLedInfoPtr /* sli */,
605
+ unsigned int /* changed_maps */,
606
+ xkbExtensionDeviceNotify * /* ed */,
607
+ XkbChangesPtr /* changes */,
608
+ XkbEventCausePtr /* cause */
609
+ );
610
+
611
+ extern void XkbApplyLedStateChanges(
612
+ DeviceIntPtr /* dev */,
613
+ XkbSrvLedInfoPtr /* sli */,
614
+ unsigned int /* changed_leds */,
615
+ xkbExtensionDeviceNotify * /* ed */,
616
+ XkbChangesPtr /* changes */,
617
+ XkbEventCausePtr /* cause */
618
+ );
619
+
620
+ extern void XkbUpdateLedAutoState(
621
+ DeviceIntPtr /* dev */,
622
+ XkbSrvLedInfoPtr /* sli */,
623
+ unsigned int /* maps_to_check */,
624
+ xkbExtensionDeviceNotify * /* ed */,
625
+ XkbChangesPtr /* changes */,
626
+ XkbEventCausePtr /* cause */
627
+ );
628
+
629
+ extern void XkbFlushLedEvents(
630
+ DeviceIntPtr /* dev */,
631
+ DeviceIntPtr /* kbd */,
632
+ XkbSrvLedInfoPtr /* sli */,
633
+ xkbExtensionDeviceNotify * /* ed */,
634
+ XkbChangesPtr /* changes */,
635
+ XkbEventCausePtr /* cause */
636
+ );
637
+
638
+ extern void XkbUpdateAllDeviceIndicators(
639
+ XkbChangesPtr /* changes */,
640
+ XkbEventCausePtr /* cause */
641
+ );
642
+
643
+ extern unsigned int XkbIndicatorsToUpdate(
644
+ DeviceIntPtr /* dev */,
645
+ unsigned long /* state_changes */,
646
+ Bool /* enabled_ctrl_changes */
647
+ );
648
+
649
+ extern void XkbComputeDerivedState(
650
+ XkbSrvInfoPtr /* xkbi */
651
+ );
652
+
653
+ extern void XkbCheckSecondaryEffects(
654
+ XkbSrvInfoPtr /* xkbi */,
655
+ unsigned int /* which */,
656
+ XkbChangesPtr /* changes */,
657
+ XkbEventCausePtr /* cause */
658
+ );
659
+
660
+ extern void XkbCheckIndicatorMaps(
661
+ DeviceIntPtr /* dev */,
662
+ XkbSrvLedInfoPtr /* sli */,
663
+ unsigned int /* which */
664
+ );
665
+
666
+ extern unsigned int XkbStateChangedFlags(
667
+ XkbStatePtr /* old */,
668
+ XkbStatePtr /* new */
669
+ );
670
+
671
+ extern void XkbSendStateNotify(
672
+ DeviceIntPtr /* kbd */,
673
+ xkbStateNotify * /* pSN */
674
+ );
675
+
676
+ extern void XkbSendMapNotify(
677
+ DeviceIntPtr /* kbd */,
678
+ xkbMapNotify * /* ev */
679
+ );
680
+
681
+ extern int XkbComputeControlsNotify(
682
+ DeviceIntPtr /* kbd */,
683
+ XkbControlsPtr /* old */,
684
+ XkbControlsPtr /* new */,
685
+ xkbControlsNotify * /* pCN */,
686
+ Bool /* forceCtrlProc */
687
+ );
688
+
689
+ extern void XkbSendControlsNotify(
690
+ DeviceIntPtr /* kbd */,
691
+ xkbControlsNotify * /* ev */
692
+ );
693
+
694
+ extern void XkbSendCompatMapNotify(
695
+ DeviceIntPtr /* kbd */,
696
+ xkbCompatMapNotify * /* ev */
697
+ );
698
+
699
+ extern void XkbSendIndicatorNotify(
700
+ DeviceIntPtr /* kbd */,
701
+ int /* xkbType */,
702
+ xkbIndicatorNotify * /* ev */
703
+ );
704
+
705
+ extern void XkbHandleBell(
706
+ BOOL /* force */,
707
+ BOOL /* eventOnly */,
708
+ DeviceIntPtr /* kbd */,
709
+ CARD8 /* percent */,
710
+ pointer /* ctrl */,
711
+ CARD8 /* class */,
712
+ Atom /* name */,
713
+ WindowPtr /* pWin */,
714
+ ClientPtr /* pClient */
715
+ );
716
+
717
+ extern void XkbSendAccessXNotify(
718
+ DeviceIntPtr /* kbd */,
719
+ xkbAccessXNotify * /* pEv */
720
+ );
721
+
722
+ extern void XkbSendNamesNotify(
723
+ DeviceIntPtr /* kbd */,
724
+ xkbNamesNotify * /* ev */
725
+ );
726
+
727
+ extern void XkbSendCompatNotify(
728
+ DeviceIntPtr /* kbd */,
729
+ xkbCompatMapNotify * /* ev */
730
+ );
731
+
732
+ extern void XkbSendActionMessage(
733
+ DeviceIntPtr /* kbd */,
734
+ xkbActionMessage * /* ev */
735
+ );
736
+
737
+ extern void XkbSendExtensionDeviceNotify(
738
+ DeviceIntPtr /* kbd */,
739
+ ClientPtr /* client */,
740
+ xkbExtensionDeviceNotify * /* ev */
741
+ );
742
+
743
+ extern void XkbSendNotification(
744
+ DeviceIntPtr /* kbd */,
745
+ XkbChangesPtr /* pChanges */,
746
+ XkbEventCausePtr /* cause */
747
+ );
748
+
749
+ extern void XkbProcessKeyboardEvent(
750
+ struct _xEvent * /* xE */,
751
+ DeviceIntPtr /* keybd */,
752
+ int /* count */
753
+ );
754
+
755
+ extern void XkbProcessOtherEvent(
756
+ struct _xEvent * /* xE */,
757
+ DeviceIntPtr /* keybd */,
758
+ int /* count */
759
+ );
760
+
761
+ extern void XkbHandleActions(
762
+ DeviceIntPtr /* dev */,
763
+ DeviceIntPtr /* kbd */,
764
+ struct _xEvent * /* xE */,
765
+ int /* count */
766
+ );
767
+
768
+ extern Bool XkbEnableDisableControls(
769
+ XkbSrvInfoPtr /* xkbi */,
770
+ unsigned long /* change */,
771
+ unsigned long /* newValues */,
772
+ XkbChangesPtr /* changes */,
773
+ XkbEventCausePtr /* cause */
774
+ );
775
+
776
+ extern void AccessXInit(
777
+ DeviceIntPtr /* dev */
778
+ );
779
+
780
+ extern Bool AccessXFilterPressEvent(
781
+ register struct _xEvent * /* xE */,
782
+ register DeviceIntPtr /* keybd */,
783
+ int /* count */
784
+ );
785
+
786
+ extern Bool AccessXFilterReleaseEvent(
787
+ register struct _xEvent * /* xE */,
788
+ register DeviceIntPtr /* keybd */,
789
+ int /* count */
790
+ );
791
+
792
+ extern void AccessXCancelRepeatKey(
793
+ XkbSrvInfoPtr /* xkbi */,
794
+ KeyCode /* key */
795
+ );
796
+
797
+ extern void AccessXComputeCurveFactor(
798
+ XkbSrvInfoPtr /* xkbi */,
799
+ XkbControlsPtr /* ctrls */
800
+ );
801
+
802
+ extern XkbDeviceLedInfoPtr XkbAddDeviceLedInfo(
803
+ XkbDeviceInfoPtr /* devi */,
804
+ unsigned int /* ledClass */,
805
+ unsigned int /* ledId */
806
+ );
807
+
808
+ extern XkbDeviceInfoPtr XkbAllocDeviceInfo(
809
+ unsigned int /* deviceSpec */,
810
+ unsigned int /* nButtons */,
811
+ unsigned int /* szLeds */
812
+ );
813
+
814
+ extern void XkbFreeDeviceInfo(
815
+ XkbDeviceInfoPtr /* devi */,
816
+ unsigned int /* which */,
817
+ Bool /* freeDevI */
818
+ );
819
+
820
+ extern Status XkbResizeDeviceButtonActions(
821
+ XkbDeviceInfoPtr /* devi */,
822
+ unsigned int /* newTotal */
823
+ );
824
+
825
+ extern XkbInterestPtr XkbFindClientResource(
826
+ DevicePtr /* inDev */,
827
+ ClientPtr /* client */
828
+ );
829
+
830
+ extern XkbInterestPtr XkbAddClientResource(
831
+ DevicePtr /* inDev */,
832
+ ClientPtr /* client */,
833
+ XID /* id */
834
+ );
835
+
836
+ extern int XkbRemoveClient(
837
+ DevicePtr /* inDev */,
838
+ ClientPtr /* client */
839
+ );
840
+
841
+ extern int XkbRemoveResourceClient(
842
+ DevicePtr /* inDev */,
843
+ XID /* id */
844
+ );
845
+
846
+ extern int XkbDDXInitDevice(
847
+ DeviceIntPtr /* dev */
848
+ );
849
+
850
+ extern int XkbDDXAccessXBeep(
851
+ DeviceIntPtr /* dev */,
852
+ unsigned int /* what */,
853
+ unsigned int /* which */
854
+ );
855
+
856
+ extern void XkbDDXKeyClick(
857
+ DeviceIntPtr /* dev */,
858
+ int /* keycode */,
859
+ int /* synthetic */
860
+ );
861
+
862
+ extern int XkbDDXUsesSoftRepeat(
863
+ DeviceIntPtr /* dev */
864
+ );
865
+
866
+ extern void XkbDDXKeybdCtrlProc(
867
+ DeviceIntPtr /* dev */,
868
+ KeybdCtrl * /* ctrl */
869
+ );
870
+
871
+ extern void XkbDDXChangeControls(
872
+ DeviceIntPtr /* dev */,
873
+ XkbControlsPtr /* old */,
874
+ XkbControlsPtr /* new */
875
+ );
876
+
877
+ extern void XkbDDXUpdateIndicators(
878
+ DeviceIntPtr /* keybd */,
879
+ CARD32 /* newState */
880
+ );
881
+
882
+ extern void XkbDDXUpdateDeviceIndicators(
883
+ DeviceIntPtr /* dev */,
884
+ XkbSrvLedInfoPtr /* sli */,
885
+ CARD32 /* newState */
886
+ );
887
+
888
+ extern void XkbDDXFakePointerButton(
889
+ int /* event */,
890
+ int /* button */
891
+ );
892
+
893
+ extern void XkbDDXFakePointerMotion(
894
+ unsigned int /* flags */,
895
+ int /* x */,
896
+ int /* y */
897
+ );
898
+
899
+ extern void XkbDDXFakeDeviceButton(
900
+ DeviceIntPtr /* dev */,
901
+ Bool /* press */,
902
+ int /* button */
903
+ );
904
+
905
+ extern int XkbDDXTerminateServer(
906
+ DeviceIntPtr /* dev */,
907
+ KeyCode /* key */,
908
+ XkbAction * /* act */
909
+ );
910
+
911
+ extern int XkbDDXSwitchScreen(
912
+ DeviceIntPtr /* dev */,
913
+ KeyCode /* key */,
914
+ XkbAction * /* act */
915
+ );
916
+
917
+ extern int XkbDDXPrivate(
918
+ DeviceIntPtr /* dev */,
919
+ KeyCode /* key */,
920
+ XkbAction * /* act */
921
+ );
922
+
923
+ extern void XkbDisableComputedAutoRepeats(
924
+ DeviceIntPtr /* pXDev */,
925
+ unsigned int /* key */
926
+ );
927
+
928
+ extern void XkbSetRepeatKeys(
929
+ DeviceIntPtr /* pXDev */,
930
+ int /* key */,
931
+ int /* onoff */
932
+ );
933
+
934
+ extern int XkbLatchModifiers(
935
+ DeviceIntPtr /* pXDev */,
936
+ CARD8 /* mask */,
937
+ CARD8 /* latches */
938
+ );
939
+
940
+ extern int XkbLatchGroup(
941
+ DeviceIntPtr /* pXDev */,
942
+ int /* group */
943
+ );
944
+
945
+ extern void XkbClearAllLatchesAndLocks(
946
+ DeviceIntPtr /* dev */,
947
+ XkbSrvInfoPtr /* xkbi */,
948
+ Bool /* genEv */,
949
+ XkbEventCausePtr /* cause */
950
+ );
951
+
952
+ extern void XkbSetRulesDflts(
953
+ char * /* rulesFile */,
954
+ char * /* model */,
955
+ char * /* layout */,
956
+ char * /* variant */,
957
+ char * /* options */
958
+ );
959
+
960
+ extern void XkbInitDevice(
961
+ DeviceIntPtr /* pXDev */
962
+ );
963
+
964
+ extern Bool XkbInitKeyboardDeviceStruct(
965
+ DeviceIntPtr /* pXDev */,
966
+ XkbComponentNamesPtr /* pNames */,
967
+ KeySymsPtr /* pSyms */,
968
+ CARD8 /* pMods */[],
969
+ BellProcPtr /* bellProc */,
970
+ KbdCtrlProcPtr /* ctrlProc */
971
+ );
972
+
973
+ extern int SProcXkbDispatch(
974
+ ClientPtr /* client */
975
+ );
976
+
977
+ extern XkbGeometryPtr XkbLookupNamedGeometry(
978
+ DeviceIntPtr /* dev */,
979
+ Atom /* name */,
980
+ Bool * /* shouldFree */
981
+ );
982
+
983
+ extern char * _XkbDupString(
984
+ char * /* str */
985
+ );
986
+
987
+ extern void XkbConvertCase(
988
+ KeySym /* sym */,
989
+ KeySym * /* lower */,
990
+ KeySym * /* upper */
991
+ );
992
+
993
+ extern Status XkbChangeKeycodeRange(
994
+ XkbDescPtr /* xkb */,
995
+ int /* minKC */,
996
+ int /* maxKC */,
997
+ XkbChangesPtr /* changes */
998
+ );
999
+
1000
+ extern int XkbFinishDeviceInit(
1001
+ DeviceIntPtr /* pXDev */
1002
+ );
1003
+
1004
+ extern void XkbFreeSrvLedInfo(
1005
+ XkbSrvLedInfoPtr /* sli */
1006
+ );
1007
+
1008
+ extern void XkbFreeInfo(
1009
+ XkbSrvInfoPtr /* xkbi */
1010
+ );
1011
+
1012
+ extern Status XkbChangeTypesOfKey(
1013
+ XkbDescPtr /* xkb */,
1014
+ int /* key */,
1015
+ int /* nGroups */,
1016
+ unsigned int /* groups */,
1017
+ int * /* newTypesIn */,
1018
+ XkbMapChangesPtr /* changes */
1019
+ );
1020
+
1021
+ extern XkbKeyTypePtr XkbAddKeyType(
1022
+ XkbDescPtr /* xkb */,
1023
+ Atom /* name */,
1024
+ int /* map_count */,
1025
+ Bool /* want_preserve */,
1026
+ int /* num_lvls */
1027
+ );
1028
+
1029
+ extern Status XkbInitCanonicalKeyTypes(
1030
+ XkbDescPtr /* xkb */,
1031
+ unsigned int /* which */,
1032
+ int /* keypadVMod */
1033
+ );
1034
+
1035
+ extern int XkbKeyTypesForCoreSymbols(
1036
+ XkbDescPtr /* xkb */,
1037
+ int /* map_width */,
1038
+ KeySym * /* core_syms */,
1039
+ unsigned int /* protected */,
1040
+ int * /* types_inout */,
1041
+ KeySym * /* xkb_syms_rtrn */
1042
+ );
1043
+
1044
+ extern Bool XkbApplyCompatMapToKey(
1045
+ XkbDescPtr /* xkb */,
1046
+ KeyCode /* key */,
1047
+ XkbChangesPtr /* changes */
1048
+ );
1049
+
1050
+ extern Bool XkbUpdateMapFromCore(
1051
+ XkbDescPtr /* xkb */,
1052
+ KeyCode /* first_key */,
1053
+ int /* num_keys */,
1054
+ int /* map_width */,
1055
+ KeySym * /* core_keysyms */,
1056
+ XkbChangesPtr /* changes */
1057
+ );
1058
+
1059
+ extern void XkbFreeControls(
1060
+ XkbDescPtr /* xkb */,
1061
+ unsigned int /* which */,
1062
+ Bool /* freeMap */
1063
+ );
1064
+
1065
+ extern void XkbFreeIndicatorMaps(
1066
+ XkbDescPtr /* xkb */
1067
+ );
1068
+
1069
+ extern Bool XkbApplyVirtualModChanges(
1070
+ XkbDescPtr /* xkb */,
1071
+ unsigned int /* changed */,
1072
+ XkbChangesPtr /* changes */
1073
+ );
1074
+
1075
+ extern Bool XkbUpdateActionVirtualMods(
1076
+ XkbDescPtr /* xkb */,
1077
+ XkbAction * /* act */,
1078
+ unsigned int /* changed */
1079
+ );
1080
+
1081
+ extern void XkbUpdateKeyTypeVirtualMods(
1082
+ XkbDescPtr /* xkb */,
1083
+ XkbKeyTypePtr /* type */,
1084
+ unsigned int /* changed */,
1085
+ XkbChangesPtr /* changes */
1086
+ );
1087
+
1088
+ extern void XkbSendNewKeyboardNotify(
1089
+ DeviceIntPtr /* kbd */,
1090
+ xkbNewKeyboardNotify * /* pNKN */
1091
+ );
1092
+
1093
+ #ifdef XKBSRV_NEED_FILE_FUNCS
1094
+
1095
+ #include <X11/extensions/XKMformat.h>
1096
+ #include <X11/extensions/XKBfile.h>
1097
+ #include <X11/extensions/XKBrules.h>
1098
+
1099
+ #define _XkbListKeymaps 0
1100
+ #define _XkbListKeycodes 1
1101
+ #define _XkbListTypes 2
1102
+ #define _XkbListCompat 3
1103
+ #define _XkbListSymbols 4
1104
+ #define _XkbListGeometry 5
1105
+ #define _XkbListNumComponents 6
1106
+
1107
+ typedef struct _XkbSrvListInfo {
1108
+ int szPool;
1109
+ int nPool;
1110
+ char * pool;
1111
+
1112
+ int maxRtrn;
1113
+ int nTotal;
1114
+
1115
+ char * pattern[_XkbListNumComponents];
1116
+ int nFound[_XkbListNumComponents];
1117
+ } XkbSrvListInfoRec,*XkbSrvListInfoPtr;
1118
+
1119
+ char *
1120
+ XkbGetRulesDflts(
1121
+ XkbRF_VarDefsPtr /* defs */
1122
+ );
1123
+
1124
+ extern void XkbSetRulesUsed(
1125
+ XkbRF_VarDefsPtr /* defs */
1126
+ );
1127
+
1128
+
1129
+ extern Status XkbDDXList(
1130
+ DeviceIntPtr /* dev */,
1131
+ XkbSrvListInfoPtr /* listing */,
1132
+ ClientPtr /* client */
1133
+ );
1134
+
1135
+ extern unsigned int XkbDDXLoadKeymapByNames(
1136
+ DeviceIntPtr /* keybd */,
1137
+ XkbComponentNamesPtr /* names */,
1138
+ unsigned int /* want */,
1139
+ unsigned int /* need */,
1140
+ XkbFileInfoPtr /* finfoRtrn */,
1141
+ char * /* keymapNameRtrn */,
1142
+ int /* keymapNameRtrnLen */
1143
+ );
1144
+
1145
+ extern Bool XkbDDXNamesFromRules(
1146
+ DeviceIntPtr /* keybd */,
1147
+ char * /* rules */,
1148
+ XkbRF_VarDefsPtr /* defs */,
1149
+ XkbComponentNamesPtr /* names */
1150
+ );
1151
+
1152
+ extern FILE *XkbDDXOpenConfigFile(
1153
+ char * /* mapName */,
1154
+ char * /* fileNameRtrn */,
1155
+ int /* fileNameRtrnLen */
1156
+ );
1157
+
1158
+ extern Bool XkbDDXApplyConfig(
1159
+ XPointer /* cfg_in */,
1160
+ XkbSrvInfoPtr /* xkbi */
1161
+ );
1162
+
1163
+ extern XPointer XkbDDXPreloadConfig(
1164
+ char ** /* rulesFileRtrn */,
1165
+ XkbRF_VarDefsPtr /* defs */,
1166
+ XkbComponentNamesPtr /* names */,
1167
+ DeviceIntPtr /* dev */
1168
+ );
1169
+
1170
+ extern int _XkbStrCaseCmp(
1171
+ char * /* str1 */,
1172
+ char * /* str2 */
1173
+ );
1174
+
1175
+ #endif /* XKBSRV_NEED_FILE_FUNCS */
1176
+
1177
+
1178
+ _XFUNCPROTOEND
1179
+
1180
+ #define XkbAtomGetString(d,s) NameForAtom(s)
1181
+
1182
+ #endif /* _XKBSRV_H_ */
1183
+
1184
+
data/miniconda3/include/X11/extensions/XLbx.h ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright 1992 Network Computing Devices
3
+ *
4
+ * Permission to use, copy, modify, distribute, and sell this software and its
5
+ * documentation for any purpose is hereby granted without fee, provided that
6
+ * the above copyright notice appear in all copies and that both that
7
+ * copyright notice and this permission notice appear in supporting
8
+ * documentation, and that the name of NCD. not be used in advertising or
9
+ * publicity pertaining to distribution of the software without specific,
10
+ * written prior permission. NCD. makes no representations about the
11
+ * suitability of this software for any purpose. It is provided "as is"
12
+ * without express or implied warranty.
13
+ *
14
+ * NCD. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
15
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NCD.
16
+ * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
18
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
19
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20
+ *
21
+ */
22
+
23
+ #ifndef _XLBX_H_
24
+ #define _XLBX_H_
25
+
26
+ #include <X11/Xfuncproto.h>
27
+ #include <X11/Xdefs.h>
28
+ #include <X11/Xlib.h>
29
+ #include <X11/extensions/lbx.h>
30
+
31
+ _XFUNCPROTOBEGIN
32
+
33
+ Bool XLbxQueryExtension(
34
+ Display* /* dpy */,
35
+ int* /* requestp */,
36
+ int* /* event_basep */,
37
+ int* /* error_basep */
38
+ );
39
+
40
+ Bool XLbxQueryVersion(
41
+ Display* /* dpy */,
42
+ int* /* majorVersion */,
43
+ int* /* minorVersion */
44
+ );
45
+
46
+ int XLbxGetEventBase(Display *dpy);
47
+
48
+ _XFUNCPROTOEND
49
+
50
+ #endif
data/miniconda3/include/X11/extensions/XResproto.h ADDED
@@ -0,0 +1,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Copyright (c) 2002 XFree86 Inc
3
+ */
4
+
5
+ #ifndef _XRESPROTO_H
6
+ #define _XRESPROTO_H
7
+
8
+ #define XRES_MAJOR_VERSION 1
9
+ #define XRES_MINOR_VERSION 2
10
+
11
+ #define XRES_NAME "X-Resource"
12
+
13
+ /* v1.0 */
14
+ #define X_XResQueryVersion 0
15
+ #define X_XResQueryClients 1
16
+ #define X_XResQueryClientResources 2
17
+ #define X_XResQueryClientPixmapBytes 3
18
+
19
+ /* Version 1.1 has been accidentally released from the version */
20
+ /* control and while it doesn't have differences to version 1.0, the */
21
+ /* next version is labeled 1.2 in order to remove the risk of confusion. */
22
+
23
+ /* v1.2 */
24
+ #define X_XResQueryClientIds 4
25
+ #define X_XResQueryResourceBytes 5
26
+
27
+ typedef struct {
28
+ CARD32 resource_base;
29
+ CARD32 resource_mask;
30
+ } xXResClient;
31
+ #define sz_xXResClient 8
32
+
33
+ typedef struct {
34
+ CARD32 resource_type;
35
+ CARD32 count;
36
+ } xXResType;
37
+ #define sz_xXResType 8
38
+
39
+ /* XResQueryVersion */
40
+
41
+ typedef struct _XResQueryVersion {
42
+ CARD8 reqType;
43
+ CARD8 XResReqType;
44
+ CARD16 length;
45
+ CARD8 client_major;
46
+ CARD8 client_minor;
47
+ CARD16 unused;
48
+ } xXResQueryVersionReq;
49
+ #define sz_xXResQueryVersionReq 8
50
+
51
+ typedef struct {
52
+ CARD8 type;
53
+ CARD8 pad1;
54
+ CARD16 sequenceNumber;
55
+ CARD32 length;
56
+ CARD16 server_major;
57
+ CARD16 server_minor;
58
+ CARD32 pad2;
59
+ CARD32 pad3;
60
+ CARD32 pad4;
61
+ CARD32 pad5;
62
+ CARD32 pad6;
63
+ } xXResQueryVersionReply;
64
+ #define sz_xXResQueryVersionReply 32
65
+
66
+ /* XResQueryClients */
67
+
68
+ typedef struct _XResQueryClients {
69
+ CARD8 reqType;
70
+ CARD8 XResReqType;
71
+ CARD16 length;
72
+ } xXResQueryClientsReq;
73
+ #define sz_xXResQueryClientsReq 4
74
+
75
+ typedef struct {
76
+ CARD8 type;
77
+ CARD8 pad1;
78
+ CARD16 sequenceNumber;
79
+ CARD32 length;
80
+ CARD32 num_clients;
81
+ CARD32 pad2;
82
+ CARD32 pad3;
83
+ CARD32 pad4;
84
+ CARD32 pad5;
85
+ CARD32 pad6;
86
+ } xXResQueryClientsReply;
87
+ #define sz_xXResQueryClientsReply 32
88
+
89
+ /* XResQueryClientResources */
90
+
91
+ typedef struct _XResQueryClientResources {
92
+ CARD8 reqType;
93
+ CARD8 XResReqType;
94
+ CARD16 length;
95
+ CARD32 xid;
96
+ } xXResQueryClientResourcesReq;
97
+ #define sz_xXResQueryClientResourcesReq 8
98
+
99
+ typedef struct {
100
+ CARD8 type;
101
+ CARD8 pad1;
102
+ CARD16 sequenceNumber;
103
+ CARD32 length;
104
+ CARD32 num_types;
105
+ CARD32 pad2;
106
+ CARD32 pad3;
107
+ CARD32 pad4;
108
+ CARD32 pad5;
109
+ CARD32 pad6;
110
+ } xXResQueryClientResourcesReply;
111
+ #define sz_xXResQueryClientResourcesReply 32
112
+
113
+ /* XResQueryClientPixmapBytes */
114
+
115
+ typedef struct _XResQueryClientPixmapBytes {
116
+ CARD8 reqType;
117
+ CARD8 XResReqType;
118
+ CARD16 length;
119
+ CARD32 xid;
120
+ } xXResQueryClientPixmapBytesReq;
121
+ #define sz_xXResQueryClientPixmapBytesReq 8
122
+
123
+ typedef struct {
124
+ CARD8 type;
125
+ CARD8 pad1;
126
+ CARD16 sequenceNumber;
127
+ CARD32 length;
128
+ CARD32 bytes;
129
+ CARD32 bytes_overflow;
130
+ CARD32 pad2;
131
+ CARD32 pad3;
132
+ CARD32 pad4;
133
+ CARD32 pad5;
134
+ } xXResQueryClientPixmapBytesReply;
135
+ #define sz_xXResQueryClientPixmapBytesReply 32
136
+
137
+ /* v1.2 XResQueryClientIds */
138
+
139
+ #define X_XResClientXIDMask 0x01
140
+ #define X_XResLocalClientPIDMask 0x02
141
+
142
+ typedef struct _XResClientIdSpec {
143
+ CARD32 client;
144
+ CARD32 mask;
145
+ } xXResClientIdSpec;
146
+ #define sz_xXResClientIdSpec 8
147
+
148
+ typedef struct _XResClientIdValue {
149
+ xXResClientIdSpec spec;
150
+ CARD32 length;
151
+ // followed by length CARD32s
152
+ } xXResClientIdValue;
153
+ #define sz_xResClientIdValue (sz_xXResClientIdSpec + 4)
154
+
155
+ typedef struct _XResQueryClientIds {
156
+ CARD8 reqType;
157
+ CARD8 XResReqType;
158
+ CARD16 length;
159
+ CARD32 numSpecs;
160
+ // followed by numSpecs times XResClientIdSpec
161
+ } xXResQueryClientIdsReq;
162
+ #define sz_xXResQueryClientIdsReq 8
163
+
164
+ typedef struct {
165
+ CARD8 type;
166
+ CARD8 pad1;
167
+ CARD16 sequenceNumber;
168
+ CARD32 length;
169
+ CARD32 numIds;
170
+ CARD32 pad2;
171
+ CARD32 pad3;
172
+ CARD32 pad4;
173
+ CARD32 pad5;
174
+ CARD32 pad6;
175
+ // followed by numIds times XResClientIdValue
176
+ } xXResQueryClientIdsReply;
177
+ #define sz_xXResQueryClientIdsReply 32
178
+
179
+ /* v1.2 XResQueryResourceBytes */
180
+
181
+ typedef struct _XResResourceIdSpec {
182
+ CARD32 resource;
183
+ CARD32 type;
184
+ } xXResResourceIdSpec;
185
+ #define sz_xXResResourceIdSpec 8
186
+
187
+ typedef struct _XResQueryResourceBytes {
188
+ CARD8 reqType;
189
+ CARD8 XResReqType;
190
+ CARD16 length;
191
+ CARD32 client;
192
+ CARD32 numSpecs;
193
+ // followed by numSpecs times XResResourceIdSpec
194
+ } xXResQueryResourceBytesReq;
195
+ #define sz_xXResQueryResourceBytesReq 12
196
+
197
+ typedef struct _XResResourceSizeSpec {
198
+ xXResResourceIdSpec spec;
199
+ CARD32 bytes;
200
+ CARD32 refCount;
201
+ CARD32 useCount;
202
+ } xXResResourceSizeSpec;
203
+ #define sz_xXResResourceSizeSpec (sz_xXResResourceIdSpec + 12)
204
+
205
+ typedef struct _XResResourceSizeValue {
206
+ xXResResourceSizeSpec size;
207
+ CARD32 numCrossReferences;
208
+ // followed by numCrossReferences times XResResourceSizeSpec
209
+ } xXResResourceSizeValue;
210
+ #define sz_xXResResourceSizeValue (sz_xXResResourceSizeSpec + 4)
211
+
212
+ typedef struct {
213
+ CARD8 type;
214
+ CARD8 pad1;
215
+ CARD16 sequenceNumber;
216
+ CARD32 length;
217
+ CARD32 numSizes;
218
+ CARD32 pad2;
219
+ CARD32 pad3;
220
+ CARD32 pad4;
221
+ CARD32 pad5;
222
+ CARD32 pad6;
223
+ // followed by numSizes times XResResourceSizeValue
224
+ } xXResQueryResourceBytesReply;
225
+ #define sz_xXResQueryResourceBytesReply 32
226
+
227
+ #endif /* _XRESPROTO_H */
data/miniconda3/include/X11/extensions/XShm.h ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /************************************************************
2
+
3
+ Copyright 1989, 1998 The Open Group
4
+
5
+ Permission to use, copy, modify, distribute, and sell this software and its
6
+ documentation for any purpose is hereby granted without fee, provided that
7
+ the above copyright notice appear in all copies and that both that
8
+ copyright notice and this permission notice appear in supporting
9
+ documentation.
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 THE
17
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ Except as contained in this notice, the name of The Open Group shall not be
22
+ used in advertising or otherwise to promote the sale, use or other dealings
23
+ in this Software without prior written authorization from The Open Group.
24
+
25
+ ********************************************************/
26
+
27
+ /* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */
28
+
29
+ #ifndef _XSHM_H_
30
+ #define _XSHM_H_
31
+
32
+ #include <X11/Xfuncproto.h>
33
+ #include <X11/extensions/shm.h>
34
+
35
+ #ifndef _XSHM_SERVER_
36
+ typedef unsigned long ShmSeg;
37
+
38
+ typedef struct {
39
+ int type; /* of event */
40
+ unsigned long serial; /* # of last request processed by server */
41
+ Bool send_event; /* true if this came from a SendEvent request */
42
+ Display *display; /* Display the event was read from */
43
+ Drawable drawable; /* drawable of request */
44
+ int major_code; /* ShmReqCode */
45
+ int minor_code; /* X_ShmPutImage */
46
+ ShmSeg shmseg; /* the ShmSeg used in the request */
47
+ unsigned long offset; /* the offset into ShmSeg used in the request */
48
+ } XShmCompletionEvent;
49
+
50
+ typedef struct {
51
+ ShmSeg shmseg; /* resource id */
52
+ int shmid; /* kernel id */
53
+ char *shmaddr; /* address in client */
54
+ Bool readOnly; /* how the server should attach it */
55
+ } XShmSegmentInfo;
56
+
57
+ _XFUNCPROTOBEGIN
58
+
59
+ Bool XShmQueryExtension(
60
+ Display* /* dpy */
61
+ );
62
+
63
+ int XShmGetEventBase(
64
+ Display* /* dpy */
65
+ );
66
+
67
+ Bool XShmQueryVersion(
68
+ Display* /* dpy */,
69
+ int* /* majorVersion */,
70
+ int* /* minorVersion */,
71
+ Bool* /* sharedPixmaps */
72
+ );
73
+
74
+ int XShmPixmapFormat(
75
+ Display* /* dpy */
76
+ );
77
+
78
+ Bool XShmAttach(
79
+ Display* /* dpy */,
80
+ XShmSegmentInfo* /* shminfo */
81
+ );
82
+
83
+ Bool XShmDetach(
84
+ Display* /* dpy */,
85
+ XShmSegmentInfo* /* shminfo */
86
+ );
87
+
88
+ Bool XShmPutImage(
89
+ Display* /* dpy */,
90
+ Drawable /* d */,
91
+ GC /* gc */,
92
+ XImage* /* image */,
93
+ int /* src_x */,
94
+ int /* src_y */,
95
+ int /* dst_x */,
96
+ int /* dst_y */,
97
+ unsigned int /* src_width */,
98
+ unsigned int /* src_height */,
99
+ Bool /* send_event */
100
+ );
101
+
102
+ Bool XShmGetImage(
103
+ Display* /* dpy */,
104
+ Drawable /* d */,
105
+ XImage* /* image */,
106
+ int /* x */,
107
+ int /* y */,
108
+ unsigned long /* plane_mask */
109
+ );
110
+
111
+ XImage *XShmCreateImage(
112
+ Display* /* dpy */,
113
+ Visual* /* visual */,
114
+ unsigned int /* depth */,
115
+ int /* format */,
116
+ char* /* data */,
117
+ XShmSegmentInfo* /* shminfo */,
118
+ unsigned int /* width */,
119
+ unsigned int /* height */
120
+ );
121
+
122
+ Pixmap XShmCreatePixmap(
123
+ Display* /* dpy */,
124
+ Drawable /* d */,
125
+ char* /* data */,
126
+ XShmSegmentInfo* /* shminfo */,
127
+ unsigned int /* width */,
128
+ unsigned int /* height */,
129
+ unsigned int /* depth */
130
+ );
131
+
132
+ _XFUNCPROTOEND
133
+ #endif /* _XSHM_SERVER_ */
134
+
135
+ #endif
data/miniconda3/include/X11/extensions/XTest.h ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+
3
+ Copyright 1992, 1998 The Open Group
4
+
5
+ Permission to use, copy, modify, distribute, and sell this software and its
6
+ documentation for any purpose is hereby granted without fee, provided that
7
+ the above copyright notice appear in all copies and that both that
8
+ copyright notice and this permission notice appear in supporting
9
+ documentation.
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 THE
17
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ Except as contained in this notice, the name of The Open Group shall not be
22
+ used in advertising or otherwise to promote the sale, use or other dealings
23
+ in this Software without prior written authorization from The Open Group.
24
+
25
+ */
26
+
27
+ #ifndef _XTEST_H_
28
+ #define _XTEST_H_
29
+
30
+ #include <X11/Xfuncproto.h>
31
+ #include <X11/extensions/xtestconst.h>
32
+ #include <X11/extensions/XInput.h>
33
+
34
+ _XFUNCPROTOBEGIN
35
+
36
+ Bool XTestQueryExtension(
37
+ Display* /* dpy */,
38
+ int* /* event_basep */,
39
+ int* /* error_basep */,
40
+ int* /* majorp */,
41
+ int* /* minorp */
42
+ );
43
+
44
+ Bool XTestCompareCursorWithWindow(
45
+ Display* /* dpy */,
46
+ Window /* window */,
47
+ Cursor /* cursor */
48
+ );
49
+
50
+ Bool XTestCompareCurrentCursorWithWindow(
51
+ Display* /* dpy */,
52
+ Window /* window */
53
+ );
54
+
55
+ extern int XTestFakeKeyEvent(
56
+ Display* /* dpy */,
57
+ unsigned int /* keycode */,
58
+ Bool /* is_press */,
59
+ unsigned long /* delay */
60
+ );
61
+
62
+ extern int XTestFakeButtonEvent(
63
+ Display* /* dpy */,
64
+ unsigned int /* button */,
65
+ Bool /* is_press */,
66
+ unsigned long /* delay */
67
+ );
68
+
69
+ extern int XTestFakeMotionEvent(
70
+ Display* /* dpy */,
71
+ int /* screen */,
72
+ int /* x */,
73
+ int /* y */,
74
+ unsigned long /* delay */
75
+ );
76
+
77
+ extern int XTestFakeRelativeMotionEvent(
78
+ Display* /* dpy */,
79
+ int /* x */,
80
+ int /* y */,
81
+ unsigned long /* delay */
82
+ );
83
+
84
+ extern int XTestFakeDeviceKeyEvent(
85
+ Display* /* dpy */,
86
+ XDevice* /* dev */,
87
+ unsigned int /* keycode */,
88
+ Bool /* is_press */,
89
+ int* /* axes */,
90
+ int /* n_axes */,
91
+ unsigned long /* delay */
92
+ );
93
+
94
+ extern int XTestFakeDeviceButtonEvent(
95
+ Display* /* dpy */,
96
+ XDevice* /* dev */,
97
+ unsigned int /* button */,
98
+ Bool /* is_press */,
99
+ int* /* axes */,
100
+ int /* n_axes */,
101
+ unsigned long /* delay */
102
+ );
103
+
104
+ extern int XTestFakeProximityEvent(
105
+ Display* /* dpy */,
106
+ XDevice* /* dev */,
107
+ Bool /* in_prox */,
108
+ int* /* axes */,
109
+ int /* n_axes */,
110
+ unsigned long /* delay */
111
+ );
112
+
113
+ extern int XTestFakeDeviceMotionEvent(
114
+ Display* /* dpy */,
115
+ XDevice* /* dev */,
116
+ Bool /* is_relative */,
117
+ int /* first_axis */,
118
+ int* /* axes */,
119
+ int /* n_axes */,
120
+ unsigned long /* delay */
121
+ );
122
+
123
+ extern int XTestGrabControl(
124
+ Display* /* dpy */,
125
+ Bool /* impervious */
126
+ );
127
+
128
+ void XTestSetGContextOfGC(
129
+ GC /* gc */,
130
+ GContext /* gid */
131
+ );
132
+
133
+ void XTestSetVisualIDOfVisual(
134
+ Visual* /* visual */,
135
+ VisualID /* visualid */
136
+ );
137
+
138
+ Status XTestDiscard(
139
+ Display* /* dpy */
140
+ );
141
+
142
+ _XFUNCPROTOEND
143
+
144
+ #endif
data/miniconda3/include/X11/extensions/Xag.h ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Copyright 1996, 1998 The Open Group
3
+
4
+ Permission to use, copy, modify, distribute, and sell this software and its
5
+ documentation for any purpose is hereby granted without fee, provided that
6
+ the above copyright notice appear in all copies and that both that
7
+ copyright notice and this permission notice appear in supporting
8
+ documentation.
9
+
10
+ The above copyright notice and this permission notice shall be included
11
+ in all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16
+ IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
17
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19
+ OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ Except as contained in this notice, the name of The Open Group shall
22
+ not be used in advertising or otherwise to promote the sale, use or
23
+ other dealings in this Software without prior written authorization
24
+ from The Open Group.
25
+ */
26
+
27
+ #ifndef _XAG_H_
28
+ #define _XAG_H_
29
+
30
+ #include <X11/extensions/ag.h>
31
+ #include <X11/Xfuncproto.h>
32
+
33
+ #include <stdarg.h>
34
+
35
+ _XFUNCPROTOBEGIN
36
+
37
+ typedef XID XAppGroup;
38
+
39
+ Bool XagQueryVersion(
40
+ Display* /* dpy */,
41
+ int* /* major_version */,
42
+ int* /* minor_version */
43
+ );
44
+
45
+ Status XagCreateEmbeddedApplicationGroup(
46
+ Display* /* dpy */,
47
+ VisualID /* root_visual */,
48
+ Colormap /* default_colormap */,
49
+ unsigned long /* black_pixel */,
50
+ unsigned long /* white_pixel */,
51
+ XAppGroup* /* app_group_return */
52
+ );
53
+
54
+ Status XagCreateNonembeddedApplicationGroup(
55
+ Display* /* dpy */,
56
+ XAppGroup* /* app_group_return */
57
+ );
58
+
59
+ Status XagDestroyApplicationGroup(
60
+ Display* /* dpy */,
61
+ XAppGroup /* app_group */
62
+ );
63
+
64
+ Status XagGetApplicationGroupAttributes(
65
+ Display* /* dpy */,
66
+ XAppGroup /* app_group */,
67
+ ...
68
+ );
69
+
70
+ Status XagQueryApplicationGroup(
71
+ Display* /* dpy */,
72
+ XID /* resource_base */,
73
+ XAppGroup* /* app_group_ret */
74
+ );
75
+
76
+ Status XagCreateAssociation(
77
+ Display* /* dpy */,
78
+ Window* /* window_ret */,
79
+ void* /* system_window */
80
+ );
81
+
82
+ Status XagDestroyAssociation(
83
+ Display* /* dpy */,
84
+ Window /* window */
85
+ );
86
+
87
+ _XFUNCPROTOEND
88
+
89
+ #endif /* _XAG_H_ */
90
+
data/miniconda3/include/X11/extensions/Xcup.h ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+
3
+ Copyright 1987, 1988, 1998 The Open Group
4
+
5
+ Permission to use, copy, modify, distribute, and sell this software and its
6
+ documentation for any purpose is hereby granted without fee, provided that
7
+ the above copyright notice appear in all copies and that both that
8
+ copyright notice and this permission notice appear in supporting
9
+ documentation.
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 THE
17
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ Except as contained in this notice, the name of The Open Group shall not be
22
+ used in advertising or otherwise to promote the sale, use or other dealings
23
+ in this Software without prior written authorization from The Open Group.
24
+
25
+ */
26
+
27
+ #ifndef _XCUP_H_
28
+ #define _XCUP_H_
29
+
30
+ #include <X11/Xfuncproto.h>
31
+ #include <X11/extensions/cup.h>
32
+
33
+ _XFUNCPROTOBEGIN
34
+
35
+ Bool XcupQueryVersion(
36
+ Display* /* dpy */,
37
+ int* /* major_version */,
38
+ int* /* minor_version */
39
+ );
40
+
41
+ Status XcupGetReservedColormapEntries(
42
+ Display* /* dpy */,
43
+ int /* screen */,
44
+ XColor** /* colors_out */,
45
+ int* /* ncolors */
46
+ );
47
+
48
+ Status XcupStoreColors(
49
+ Display* /* dpy */,
50
+ Colormap /* colormap */,
51
+ XColor* /* colors */,
52
+ int /* ncolors */
53
+ );
54
+
55
+ _XFUNCPROTOEND
56
+
57
+ #endif /* _XCUP_H_ */
58
+
data/miniconda3/include/X11/extensions/Xdbe.h ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /******************************************************************************
2
+ *
3
+ * Copyright (c) 1994, 1995 Hewlett-Packard Company
4
+ *
5
+ * Permission is hereby granted, free of charge, to any person obtaining
6
+ * a copy of this software and associated documentation files (the
7
+ * "Software"), to deal in the Software without restriction, including
8
+ * without limitation the rights to use, copy, modify, merge, publish,
9
+ * distribute, sublicense, and/or sell copies of the Software, and to
10
+ * permit persons to whom the Software is furnished to do so, subject to
11
+ * the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included
14
+ * in all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ * IN NO EVENT SHALL HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY CLAIM,
20
+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
21
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
22
+ * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+ *
24
+ * Except as contained in this notice, the name of the Hewlett-Packard
25
+ * Company shall not be used in advertising or otherwise to promote the
26
+ * sale, use or other dealings in this Software without prior written
27
+ * authorization from the Hewlett-Packard Company.
28
+ *
29
+ * Header file for Xlib-related DBE
30
+ *
31
+ *****************************************************************************/
32
+
33
+ #ifndef XDBE_H
34
+ #define XDBE_H
35
+
36
+ #include <X11/Xfuncproto.h>
37
+ #include <X11/extensions/dbe.h>
38
+
39
+ typedef struct
40
+ {
41
+ VisualID visual; /* one visual ID that supports double-buffering */
42
+ int depth; /* depth of visual in bits */
43
+ int perflevel; /* performance level of visual */
44
+ }
45
+ XdbeVisualInfo;
46
+
47
+ typedef struct
48
+ {
49
+ int count; /* number of items in visual_depth */
50
+ XdbeVisualInfo *visinfo; /* list of visuals & depths for scrn */
51
+ }
52
+ XdbeScreenVisualInfo;
53
+
54
+
55
+ typedef Drawable XdbeBackBuffer;
56
+
57
+ typedef unsigned char XdbeSwapAction;
58
+
59
+ typedef struct
60
+ {
61
+ Window swap_window; /* window for which to swap buffers */
62
+ XdbeSwapAction swap_action; /* swap action to use for swap_window */
63
+ }
64
+ XdbeSwapInfo;
65
+
66
+ typedef struct
67
+ {
68
+ Window window; /* window that buffer belongs to */
69
+ }
70
+ XdbeBackBufferAttributes;
71
+
72
+ typedef struct
73
+ {
74
+ int type;
75
+ Display *display; /* display the event was read from */
76
+ XdbeBackBuffer buffer; /* resource id */
77
+ unsigned long serial; /* serial number of failed request */
78
+ unsigned char error_code; /* error base + XdbeBadBuffer */
79
+ unsigned char request_code; /* major opcode of failed request */
80
+ unsigned char minor_code; /* minor opcode of failed request */
81
+ }
82
+ XdbeBufferError;
83
+
84
+ /* _XFUNCPROTOBEGIN and _XFUNCPROTOEND are defined as noops
85
+ * (for non-C++ builds) in X11/Xfuncproto.h.
86
+ */
87
+ _XFUNCPROTOBEGIN
88
+
89
+ extern Status XdbeQueryExtension(
90
+ Display* /* dpy */,
91
+ int* /* major_version_return */,
92
+ int* /* minor_version_return */
93
+ );
94
+
95
+ extern XdbeBackBuffer XdbeAllocateBackBufferName(
96
+ Display* /* dpy */,
97
+ Window /* window */,
98
+ XdbeSwapAction /* swap_action */
99
+ );
100
+
101
+ extern Status XdbeDeallocateBackBufferName(
102
+ Display* /* dpy */,
103
+ XdbeBackBuffer /* buffer */
104
+ );
105
+
106
+ extern Status XdbeSwapBuffers(
107
+ Display* /* dpy */,
108
+ XdbeSwapInfo* /* swap_info */,
109
+ int /* num_windows */
110
+ );
111
+
112
+ extern Status XdbeBeginIdiom(
113
+ Display* /* dpy */
114
+ );
115
+
116
+ extern Status XdbeEndIdiom(
117
+ Display* /* dpy */
118
+ );
119
+
120
+ extern XdbeScreenVisualInfo *XdbeGetVisualInfo(
121
+ Display* /* dpy */,
122
+ Drawable* /* screen_specifiers */,
123
+ int* /* num_screens */
124
+ );
125
+
126
+ extern void XdbeFreeVisualInfo(
127
+ XdbeScreenVisualInfo* /* visual_info */
128
+ );
129
+
130
+ extern XdbeBackBufferAttributes *XdbeGetBackBufferAttributes(
131
+ Display* /* dpy */,
132
+ XdbeBackBuffer /* buffer */
133
+ );
134
+
135
+ _XFUNCPROTOEND
136
+
137
+ #endif /* XDBE_H */
138
+
data/miniconda3/include/X11/extensions/Xge.h ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright © 2007-2008 Peter Hutterer
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 (including the next
12
+ * paragraph) shall be included in all copies or substantial portions of the
13
+ * 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
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ * Authors: Peter Hutterer, University of South Australia, NICTA
24
+ *
25
+ */
26
+
27
+
28
+ /* XGE Client interfaces */
29
+
30
+ #ifndef _XGE_H_
31
+ #define _XGE_H_
32
+
33
+ #include <X11/Xlib.h>
34
+ #include <X11/Xfuncproto.h>
35
+
36
+ _XFUNCPROTOBEGIN
37
+
38
+ /**
39
+ * Generic Event mask.
40
+ * To be used whenever a list of masks per extension has to be provided.
41
+ *
42
+ * But, don't actually use the CARD{8,16,32} types. We can't get them them
43
+ * defined here without polluting the namespace.
44
+ */
45
+ typedef struct {
46
+ unsigned char extension;
47
+ unsigned char pad0;
48
+ unsigned short pad1;
49
+ unsigned int evmask;
50
+ } XGenericEventMask;
51
+
52
+ Bool XGEQueryExtension(Display* dpy, int *event_basep, int *err_basep);
53
+ Bool XGEQueryVersion(Display* dpy, int *major, int* minor);
54
+
55
+ _XFUNCPROTOEND
56
+
57
+ #endif /* _XGE_H_ */
data/miniconda3/include/X11/extensions/Xinerama.h ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+
3
+ Copyright 2003 The Open Group
4
+
5
+ Permission to use, copy, modify, distribute, and sell this software and its
6
+ documentation for any purpose is hereby granted without fee, provided that
7
+ the above copyright notice appear in all copies and that both that
8
+ copyright notice and this permission notice appear in supporting
9
+ documentation.
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 THE
17
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ Except as contained in this notice, the name of The Open Group shall not be
22
+ used in advertising or otherwise to promote the sale, use or other dealings
23
+ in this Software without prior written authorization from The Open Group.
24
+
25
+ */
26
+
27
+ #ifndef _Xinerama_h
28
+ #define _Xinerama_h
29
+
30
+ #include <X11/Xlib.h>
31
+
32
+ typedef struct {
33
+ int screen_number;
34
+ short x_org;
35
+ short y_org;
36
+ short width;
37
+ short height;
38
+ } XineramaScreenInfo;
39
+
40
+ _XFUNCPROTOBEGIN
41
+
42
+ Bool XineramaQueryExtension (
43
+ Display *dpy,
44
+ int *event_base,
45
+ int *error_base
46
+ );
47
+
48
+ Status XineramaQueryVersion(
49
+ Display *dpy,
50
+ int *major_versionp,
51
+ int *minor_versionp
52
+ );
53
+
54
+ Bool XineramaIsActive(Display *dpy);
55
+
56
+
57
+ /*
58
+ Returns the number of heads and a pointer to an array of
59
+ structures describing the position and size of the individual
60
+ heads. Returns NULL and number = 0 if Xinerama is not active.
61
+
62
+ Returned array should be freed with XFree().
63
+ */
64
+
65
+ XineramaScreenInfo *
66
+ XineramaQueryScreens(
67
+ Display *dpy,
68
+ int *number
69
+ );
70
+
71
+ _XFUNCPROTOEND
72
+
73
+ #endif /* _Xinerama_h */
74
+
data/miniconda3/include/X11/extensions/Xrender.h ADDED
@@ -0,0 +1,1058 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ *
3
+ * Copyright © 2000 SuSE, Inc.
4
+ *
5
+ * Permission to use, copy, modify, distribute, and sell this software and its
6
+ * documentation for any purpose is hereby granted without fee, provided that
7
+ * the above copyright notice appear in all copies and that both that
8
+ * copyright notice and this permission notice appear in supporting
9
+ * documentation, and that the name of SuSE not be used in advertising or
10
+ * publicity pertaining to distribution of the software without specific,
11
+ * written prior permission. SuSE makes no representations about the
12
+ * suitability of this software for any purpose. It is provided "as is"
13
+ * without express or implied warranty.
14
+ *
15
+ * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
16
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
17
+ * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
19
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
20
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21
+ *
22
+ * Author: Keith Packard, SuSE, Inc.
23
+ */
24
+
25
+ /**
26
+ * @file Xrender.h
27
+ * @brief XRender library API.
28
+ */
29
+
30
+ #ifndef _XRENDER_H_
31
+ #define _XRENDER_H_
32
+
33
+ #include <X11/Xfuncproto.h>
34
+ #include <X11/Xlib.h>
35
+ #include <X11/Xosdefs.h>
36
+ #include <X11/Xutil.h>
37
+
38
+ #include <X11/extensions/render.h>
39
+
40
+ /**
41
+ * @mainpage libXrender API Documentation.
42
+ *
43
+ * Dummy text down here.
44
+ */
45
+
46
+ /**
47
+ * The direct component of a PictFormat.
48
+ *
49
+ * It contains a binary description of the color format used by the Picture.
50
+ *
51
+ * * A Zero bit alphaMask is declared to have an opaque alpha everywhere.
52
+ * * A Zero bit redMask, greenMask and blueMask is declared to have red, green,
53
+ * blue == 0 everywhere.
54
+ * * If any of redMask, greenMask or blueMask are zero, all other masks are
55
+ * zero.
56
+ */
57
+ typedef struct {
58
+ /** Red component binary displacement. */
59
+ short red;
60
+ /** Red component bit mask. */
61
+ short redMask;
62
+ /** Green component binary displacement. */
63
+ short green;
64
+ /** Green component bit mask. */
65
+ short greenMask;
66
+ /** Blue component binary displacement. */
67
+ short blue;
68
+ /** Blue component bit mask. */
69
+ short blueMask;
70
+ /** Alpha component binary displacement. */
71
+ short alpha;
72
+ /** Alpha component bit mask. */
73
+ short alphaMask;
74
+ } XRenderDirectFormat;
75
+
76
+ /**
77
+ * A Picture pixel format description.
78
+ *
79
+ * It describes the format used by the server to display colors.
80
+ *
81
+ * There are two types:
82
+ * * Direct: Doesn't have a Colormap and the DirectFormat structure describes
83
+ * the pixel format.
84
+ * * Indexed: Has a Colormap and it's DirectFormat structure is filled with
85
+ * zeros.
86
+ */
87
+ typedef struct {
88
+ /** XID of this structure server instance. */
89
+ PictFormat id;
90
+ /** Color management type. */
91
+ int type;
92
+ /** Pixel bit depth. */
93
+ int depth;
94
+ /** Color component description. */
95
+ XRenderDirectFormat direct;
96
+ /** XID of the map of indexed colors on the server. */
97
+ Colormap colormap;
98
+ } XRenderPictFormat;
99
+
100
+ /*< XRenderPictFormat template field masks.
101
+ * @{
102
+ */
103
+ /** Include ID field. @hideinitializer */
104
+ #define PictFormatID (1 << 0)
105
+ /** Include Type field. @hideinitializer */
106
+ #define PictFormatType (1 << 1)
107
+ /** Include Depth field. @hideinitializer */
108
+ #define PictFormatDepth (1 << 2)
109
+
110
+ /*<--- XRenderPictFormat->direct fields. */
111
+ /** Include Direct->Red field. @hideinitializer */
112
+ #define PictFormatRed (1 << 3)
113
+ /** Include Direct->RedMask field. @hideinitializer */
114
+ #define PictFormatRedMask (1 << 4)
115
+ /** Include Direct->Green field. @hideinitializer */
116
+ #define PictFormatGreen (1 << 5)
117
+ /** Include Direct->GreenMask field. @hideinitializer */
118
+ #define PictFormatGreenMask (1 << 6)
119
+ /** Include Direct->Blue field. @hideinitializer */
120
+ #define PictFormatBlue (1 << 7)
121
+ /** Include Direct->BlueMask field. @hideinitializer */
122
+ #define PictFormatBlueMask (1 << 8)
123
+ /** Include Direct->Alpha field. @hideinitializer */
124
+ #define PictFormatAlpha (1 << 9)
125
+ /** Include Direct->AlphaMask field. @hideinitializer */
126
+ #define PictFormatAlphaMask (1 << 10)
127
+
128
+ /** Include Colormap field. @hideinitializer */
129
+ #define PictFormatColormap (1 << 11)
130
+ /** @} */
131
+
132
+ /**
133
+ * Picture rendering attributes.
134
+ */
135
+ typedef struct _XRenderPictureAttributes {
136
+ /** How to repeat the picture. */
137
+ int repeat;
138
+
139
+ /** A replacement alpha-map. Must be a pixmap-containing Picture. */
140
+ Picture alpha_map;
141
+ /** Horizontal displacement of the replacement alpha-map. */
142
+ int alpha_x_origin;
143
+ /** Vertical displacement of the replacement alpha-map. */
144
+ int alpha_y_origin;
145
+
146
+ /** Horizontal displacement of the clip mask. */
147
+ int clip_x_origin;
148
+ /** Vertical displacement of the clip mask. */
149
+ int clip_y_origin;
150
+ /** A r/w restriction to the drawable. */
151
+ Pixmap clip_mask;
152
+
153
+ /** Whether to receive GraphicsExpose events. @note Ignored field. */
154
+ Bool graphics_exposures;
155
+ /** How to clip pixels on subwindow overlap. */
156
+ int subwindow_mode;
157
+ /** Alpha mask generation mode. */
158
+ int poly_edge;
159
+ /** Alpha value rasterization mode. */
160
+ int poly_mode;
161
+ /** Dithering mode. @note Ignored field. */
162
+ Atom dither;
163
+ /** Treat alpha channels independently. */
164
+ Bool component_alpha;
165
+ } XRenderPictureAttributes;
166
+
167
+ /** An alpha-blended color with premultiplied components.
168
+ *
169
+ * Values are in the range from 0 to 65535 inclusive, scaled down to the right
170
+ * hardware values by the server. Colors must be premultiplied by alpha by the
171
+ * client in all cases but gradient operations.
172
+ */
173
+ typedef struct {
174
+ /** Red color channel. */
175
+ unsigned short red;
176
+ /** Green color channel. */
177
+ unsigned short green;
178
+ /** Blue color channel. */
179
+ unsigned short blue;
180
+ /** Alpha color channel. */
181
+ unsigned short alpha;
182
+ } XRenderColor;
183
+
184
+ /**
185
+ * Glyph positioning and sizing information.
186
+ *
187
+ * A glyph is positioned by taking the requested position and substracting the
188
+ * center offset.
189
+ */
190
+ typedef struct _XGlyphInfo {
191
+ /** Glyph width. */
192
+ unsigned short width;
193
+ /** Glyph height. */
194
+ unsigned short height;
195
+
196
+ /** Horizontal Glyph center offset relative to the upper-left corner. */
197
+ short x;
198
+ /** Vertical Glyph center offset relative to the upper-left corner. */
199
+ short y;
200
+
201
+ /** Horizontal margin to the next Glyph. */
202
+ short xOff;
203
+ /** Vertical margin to the next Glyph. */
204
+ short yOff;
205
+ } XGlyphInfo;
206
+
207
+ /*< Glyph Elements.
208
+ * Group of glyphs to be rendered.
209
+ * While selecting the right element type, you should use as a reference the
210
+ * largest identifier in Elt->glyphset.
211
+ */
212
+ /** @{ */
213
+
214
+ /**
215
+ * 8-bit Glyph Element.
216
+ */
217
+ typedef struct _XGlyphElt8 {
218
+ /** Set of available glyphs. */
219
+ GlyphSet glyphset;
220
+
221
+ /** 8-bit glyph id array. */
222
+ _Xconst char *chars;
223
+ /** Glyph array size. */
224
+ int nchars;
225
+
226
+ /** Horizontal offset. */
227
+ int xOff;
228
+ /** Vertical offset. */
229
+ int yOff;
230
+ } XGlyphElt8;
231
+
232
+ /**
233
+ * 16-bit Glyph Element.
234
+ */
235
+ typedef struct _XGlyphElt16 {
236
+ /** Set of available glyphs. */
237
+ GlyphSet glyphset;
238
+
239
+ /** 16-bit glyph id array. */
240
+ _Xconst unsigned short *chars;
241
+ /** Glyph array size. */
242
+ int nchars;
243
+
244
+ /** Horizontal offset. */
245
+ int xOff;
246
+ /** Vertical offset. */
247
+ int yOff;
248
+ } XGlyphElt16;
249
+
250
+ /**
251
+ * 32-bit Glyph Element.
252
+ */
253
+ typedef struct _XGlyphElt32 {
254
+ /** Set of available glyphs. */
255
+ GlyphSet glyphset;
256
+
257
+ /** 32-bit glyph id array. */
258
+ _Xconst unsigned int *chars;
259
+ /** Glyph array size. */
260
+ int nchars;
261
+
262
+ /** Horizontal offset. */
263
+ int xOff;
264
+ /** Vertical offset. */
265
+ int yOff;
266
+ } XGlyphElt32;
267
+ /**@} */
268
+
269
+ /*< Utility number types.
270
+ *
271
+ */
272
+ /**@{ */
273
+
274
+ /**
275
+ * Floating-point number.
276
+ */
277
+ typedef double XDouble;
278
+
279
+ /**
280
+ * Fixed-point number.
281
+ */
282
+ typedef int XFixed;
283
+
284
+ /** Turn XDouble into XFixed. @hideinitializer */
285
+ #define XDoubleToFixed(f) ((XFixed)((f)*65536))
286
+ /** Turn XFixed into XDouble. @hideinitializer */
287
+ #define XFixedToDouble(f) (((XDouble)(f)) / 65536)
288
+ /** @} */
289
+
290
+ /**
291
+ * Point coordinates stored as floats.
292
+ */
293
+ typedef struct _XPointDouble {
294
+ XDouble x, y;
295
+ } XPointDouble;
296
+
297
+ /**
298
+ * Point coordinates as integers.
299
+ */
300
+ typedef struct _XPointFixed {
301
+ XFixed x, y;
302
+ } XPointFixed;
303
+
304
+ /**
305
+ * Line described by two points.
306
+ */
307
+ typedef struct _XLineFixed {
308
+ XPointFixed p1, p2;
309
+ } XLineFixed;
310
+
311
+ /**
312
+ * Triangle described by it's vertices.
313
+ * @see XTrap
314
+ */
315
+ typedef struct _XTriangle {
316
+ XPointFixed p1, p2, p3;
317
+ } XTriangle;
318
+
319
+ /**
320
+ * Circle described by it's center point and a radius.
321
+ */
322
+ typedef struct _XCircle {
323
+ XFixed x;
324
+ XFixed y;
325
+ XFixed radius;
326
+ } XCircle;
327
+
328
+ /** A trapezoid.
329
+ *
330
+ * @deprecated Use XTrap instead
331
+ * @see
332
+ * * XTriangle
333
+ * * XTrap
334
+ */
335
+ typedef struct _XTrapezoid {
336
+ XFixed top, bottom;
337
+ XLineFixed left, right;
338
+ } XTrapezoid;
339
+
340
+ /**
341
+ * A transform matrix.
342
+ */
343
+ typedef struct _XTransform {
344
+ XFixed matrix[3][3];
345
+ } XTransform;
346
+
347
+ /**
348
+ * Group filters and filter aliases.
349
+ */
350
+ typedef struct _XFilters {
351
+ /** Filter names count. */
352
+ int nfilter;
353
+ /** Filter names array. */
354
+ char **filter;
355
+ /** Aliases array count. */
356
+ int nalias;
357
+ /** Array of «Index in .filter of the aliased filter or 0xffff». */
358
+ short *alias;
359
+ } XFilters;
360
+
361
+ /**
362
+ * The value of an indexed color.
363
+ */
364
+ typedef struct _XIndexValue {
365
+ /** Index ID. */
366
+ unsigned long pixel;
367
+ /** Color components. */
368
+ unsigned short red, green, blue, alpha;
369
+ } XIndexValue;
370
+
371
+ /**
372
+ * A single cursor frame.
373
+ */
374
+ typedef struct _XAnimCursor {
375
+ /** Existing cursor. */
376
+ Cursor cursor;
377
+ /** Animation delay. */
378
+ unsigned long delay;
379
+ } XAnimCursor;
380
+
381
+ /**
382
+ * An horizontal line.
383
+ */
384
+ typedef struct _XSpanFix {
385
+ XFixed left, right, y;
386
+ } XSpanFix;
387
+
388
+ /**
389
+ * A trapezoid defined by two lines.
390
+ * @see XTriangle
391
+ */
392
+ typedef struct _XTrap {
393
+ XSpanFix top, bottom;
394
+ } XTrap;
395
+
396
+ /**
397
+ * Linear gradient shape.
398
+ */
399
+ typedef struct _XLinearGradient {
400
+ XPointFixed p1;
401
+ XPointFixed p2;
402
+ } XLinearGradient;
403
+
404
+ /**
405
+ * Radial gradient shape.
406
+ */
407
+ typedef struct _XRadialGradient {
408
+ XCircle inner;
409
+ XCircle outer;
410
+ } XRadialGradient;
411
+
412
+ /**
413
+ * Conical gradient shape.
414
+ */
415
+ typedef struct _XConicalGradient {
416
+ XPointFixed center;
417
+ XFixed angle; /* in degrees */
418
+ } XConicalGradient;
419
+
420
+ _XFUNCPROTOBEGIN
421
+
422
+ /** @defgroup queries Early check queries.
423
+ * @{
424
+ */
425
+
426
+ /**
427
+ * Ask for the Render extension presence and its base numbers.
428
+ *
429
+ * @param dpy Connection to the X server.
430
+ * @param[out] event_basep first event number for the extension.
431
+ * @param[out] error_basep first error number for the extension.
432
+ * @return True if Render is present.
433
+ */
434
+ Bool XRenderQueryExtension(Display *dpy, int *event_basep, int *error_basep);
435
+
436
+ /**
437
+ * Ask for the extension version.
438
+ *
439
+ * @param dpy Connection to the X server.
440
+ * @param[out] major_versionp Extension's major version.
441
+ * @param[out] minor_versionp Extension's major version.
442
+ * @return Status «1» on success.
443
+ */
444
+ Status XRenderQueryVersion(Display *dpy, int *major_versionp,
445
+ int *minor_versionp);
446
+
447
+ /**
448
+ * Check for and cache compatible picture formats.
449
+ *
450
+ * @param dpy Connection to the X server.
451
+ * @return Status «1» on success.
452
+ */
453
+ Status XRenderQueryFormats(Display *dpy);
454
+
455
+ /**
456
+ * Ask for the current subpixel order of a screen.
457
+ *
458
+ * @param dpy Connection to the X server.
459
+ * @param[in] screen Target screen number.
460
+ * @return SubPixelUnknown on error, else a subpixel order.
461
+ */
462
+ int XRenderQuerySubpixelOrder(Display *dpy, int screen);
463
+
464
+ /**
465
+ * Change the subpixel order of a screen.
466
+ *
467
+ * @param dpy Connection to the X server
468
+ * @param[in] screen Target screen number.
469
+ * @param[in] subpixel Requested subpixel order.
470
+ * @return True if the operation was successful.
471
+ */
472
+ Bool XRenderSetSubpixelOrder(Display *dpy, int screen, int subpixel);
473
+ /** @} */
474
+
475
+ /**
476
+ * Ask for the Picture format for a Visual.
477
+ *
478
+ * @param dpy Connection to the X server.
479
+ * @param[in] visual Reference Visual object.
480
+ * @return The requested Picture format.
481
+ */
482
+ XRenderPictFormat *XRenderFindVisualFormat(Display *dpy,
483
+ _Xconst Visual *visual);
484
+
485
+ /**
486
+ * Ask for matching Picture formats from a template.
487
+ *
488
+ * @param dpy Connection to the X server.
489
+ * @param[in] mask `templ` fields mask to use.
490
+ * @param[in] templ Requested Picture format template.
491
+ * @param[in] count Skip `count` formats.
492
+ * @return NULL if no matching format found, else a Picture format.
493
+ */
494
+ XRenderPictFormat *XRenderFindFormat(Display *dpy, unsigned long mask,
495
+ _Xconst XRenderPictFormat *templ,
496
+ int count);
497
+
498
+ /** Standard format specifiers.
499
+ * @{
500
+ */
501
+ /** 8-bit RGB with Alpha. @hideinitializer */
502
+ #define PictStandardARGB32 0
503
+ /** 8-bit RGB. @hideinitializer */
504
+ #define PictStandardRGB24 1
505
+ /** 8-bit Alpha map. @hideinitializer */
506
+ #define PictStandardA8 2
507
+ /** 4-bit Alpha map. @hideinitializer */
508
+ #define PictStandardA4 3
509
+ /** 1-bit Alpha map. @hideinitializer */
510
+ #define PictStandardA1 4
511
+ /** Supported standard formats count. @hideinitializer */
512
+ #define PictStandardNUM 5
513
+ /** @} */
514
+
515
+ /**
516
+ * Ask for a predefined standard picture format.
517
+ *
518
+ * This is a shorthand to XRenderFindFormat for finding common formats.
519
+ *
520
+ * @param dpy Connection to the X server.
521
+ * @param[in] format Desired format specifier.
522
+ * @return NULL if no matching format found, else a Picture format.
523
+ */
524
+ XRenderPictFormat *XRenderFindStandardFormat(Display *dpy, int format);
525
+
526
+ /**
527
+ * Ask for the indexed colors of a Picture format.
528
+ *
529
+ * @param dpy Connection to the X server.
530
+ * @param[in] format Queried picture format.
531
+ * @param[out] num Size of the output array.
532
+ * @return An array of XIndexValue.
533
+ */
534
+ XIndexValue *XRenderQueryPictIndexValues(Display *dpy,
535
+ _Xconst XRenderPictFormat *format,
536
+ int *num);
537
+
538
+ /**
539
+ * Creates a Picture for a drawable.
540
+ *
541
+ * @param dpy Connection to the X server.
542
+ * @param[in] drawable Target Drawable.
543
+ * @param[in] format Format for the Picture.
544
+ * @param[in] valuemask `attributes` fields mask to use.
545
+ * @param[in] attributes Desired attributes for the Picture.
546
+ * @return A Picture tied to the drawable.
547
+ */
548
+ Picture XRenderCreatePicture(Display *dpy, Drawable drawable,
549
+ _Xconst XRenderPictFormat *format,
550
+ unsigned long valuemask,
551
+ _Xconst XRenderPictureAttributes *attributes);
552
+
553
+ /**
554
+ * Free allocated structures for a Picture.
555
+ *
556
+ * @warning A freed Picture shouldn't be used again.
557
+ *
558
+ * @param dpy Connection to the X server.
559
+ * @param[in] picture Target Picture.
560
+ */
561
+ void XRenderFreePicture(Display *dpy, Picture picture);
562
+
563
+ /**
564
+ * Change a Picture's attributes structure.
565
+ *
566
+ * @param dpy Connection to the X server.
567
+ * @param[in] picture Target Picture.
568
+ * @param[in] valuemask `attributes` fields mask to use.
569
+ * @param[in] attributes Desired attributes for the Picture.
570
+ */
571
+ void XRenderChangePicture(Display *dpy, Picture picture,
572
+ unsigned long valuemask,
573
+ _Xconst XRenderPictureAttributes *attributes);
574
+
575
+ /**
576
+ * Change a Picture's clip mask to the specified rectangles.
577
+ *
578
+ * @param dpy Connection to the X server.
579
+ * @param[in] picture Target Picture.
580
+ * @param[in] xOrigin Horizontal mask origin.
581
+ * @param[in] yOrigin Vertical mask origin.
582
+ * @param[in] rects Array of rectangles to clip with.
583
+ * @param[in] n `rects` array size.
584
+ */
585
+ void XRenderSetPictureClipRectangles(Display *dpy, Picture picture, int xOrigin,
586
+ int yOrigin, _Xconst XRectangle *rects,
587
+ int n);
588
+
589
+ /**
590
+ * Change a Picture's clip mask to the specified Region.
591
+ *
592
+ * @param dpy Connection to the X server.
593
+ * @param[in] picture Target Picture.
594
+ * @param[in] r Region to clip with.
595
+ */
596
+ void XRenderSetPictureClipRegion(Display *dpy, Picture picture, Region r);
597
+
598
+ /**
599
+ * Change a Picture's Transform matrix.
600
+ *
601
+ * @param dpy Connection to the X server
602
+ * @param[in] picture Target Picture.
603
+ * @param[in] transform Transform matrix to use.
604
+ */
605
+ void XRenderSetPictureTransform(Display *dpy, Picture picture,
606
+ XTransform *transform);
607
+
608
+ /**
609
+ * Combines two Pictures with the specified compositing operation.
610
+ *
611
+ * @param dpy Connection to the X server.
612
+ * @param[in] op Compositing operation to perform.
613
+ * @param[in] src Picture to combine with.
614
+ * @param[in] mask Composition mask.
615
+ * @param[in] dst Picture to combine into.
616
+ * @param[in] src_x Horizontal `src` origin offset.
617
+ * @param[in] src_y Vertical `src` origin offset
618
+ * @param[in] mask_x Horizontal `mask` origin offset.
619
+ * @param[in] mask_y Vertical `mask` origin offset.
620
+ * @param[in] dst_x Horizontal `dst` origin offset.
621
+ * @param[in] dst_y Vertical `dst` origin offset.
622
+ * @param[in] width Maximum composition width.
623
+ * @param[in] height Maximum composition height.
624
+ */
625
+ void XRenderComposite(Display *dpy, int op, Picture src, Picture mask,
626
+ Picture dst, int src_x, int src_y, int mask_x, int mask_y,
627
+ int dst_x, int dst_y, unsigned int width,
628
+ unsigned int height);
629
+
630
+ /**
631
+ * Create a Glyph Set.
632
+ *
633
+ * @param dpy Connection to the X server.
634
+ * @param[in] format Desired format for the Glyphs Picture.
635
+ * @return A GlyphSet.
636
+ */
637
+ GlyphSet XRenderCreateGlyphSet(Display *dpy, _Xconst XRenderPictFormat *format);
638
+
639
+ /**
640
+ * Generate a new reference for an existing Glyph Set.
641
+ *
642
+ * @param dpy Connection to the X server.
643
+ * @param[in] existing Target Glyph Set.
644
+ * @return A GlyphSet identical to `existing`.
645
+ */
646
+ GlyphSet XRenderReferenceGlyphSet(Display *dpy, GlyphSet existing);
647
+
648
+ /**
649
+ * Free allocated structures for a GlyphSet.
650
+ *
651
+ * If there's more references to the underlying GlyphSet structures, this will
652
+ * remove only the specified GlyphSet reference.
653
+ *
654
+ * @warning A freed GlyphSet shouldn't be used again.
655
+ *
656
+ * @param dpy Connection to the X server.
657
+ * @param[in] glyphset Target GlyphSet.
658
+ */
659
+ void XRenderFreeGlyphSet(Display *dpy, GlyphSet glyphset);
660
+
661
+ /**
662
+ * Add new Glyphs to a GlyphSet.
663
+ *
664
+ * @param dpy Connection to the X server.
665
+ * @param[in] glyphset Glyph storage destination.
666
+ * @param[in] gids Array of ids for the new Glyphs.
667
+ * @param[in] glyphs Array of new Glyphs info.
668
+ * @param[in] nglyphs Number of Glyphs to add.
669
+ * @param[in] images Byte array containing the Glyphs graphics.
670
+ * @param[in] nbyte_images Size of the `images` byte array.
671
+ */
672
+ void XRenderAddGlyphs(Display *dpy, GlyphSet glyphset, _Xconst Glyph *gids,
673
+ _Xconst XGlyphInfo *glyphs, int nglyphs,
674
+ _Xconst char *images, int nbyte_images);
675
+
676
+ /**
677
+ * Free allocated Glyphs.
678
+ *
679
+ * @param dpy Connection to the X server.
680
+ * @param[in] glyphset GlyphSet storing the Glyphs.
681
+ * @param[in] gids Identifier array of the Glyphs to dellocate.
682
+ * @param[in] nglyphs Glyph count.
683
+ */
684
+ void XRenderFreeGlyphs(Display *dpy, GlyphSet glyphset, _Xconst Glyph *gids,
685
+ int nglyphs);
686
+
687
+ /**
688
+ * Draw a 8-bit character string into a Picture.
689
+ *
690
+ * @param dpy Connection to the X server.
691
+ * @param[in] op Compositing operation to perform.
692
+ * @param[in] src Picture to combine with.
693
+ * @param[in] dst Picture to combine into.
694
+ * @param[in] maskFormat Picture format of the generated Picture mask.
695
+ * @param[in] glyphset Glyph Source.
696
+ * @param[in] xSrc Horizontal `src` origin offset.
697
+ * @param[in] ySrc Vertical `src` origin offset.
698
+ * @param[in] xDst Horizontal `dst` origin offset.
699
+ * @param[in] yDst Vertical `dst` origin offset.
700
+ * @param[in] string String to clip to.
701
+ * @param[in] nchar String length.
702
+ */
703
+ void XRenderCompositeString8(Display *dpy, int op, Picture src, Picture dst,
704
+ _Xconst XRenderPictFormat *maskFormat,
705
+ GlyphSet glyphset, int xSrc, int ySrc, int xDst,
706
+ int yDst, _Xconst char *string, int nchar);
707
+
708
+ /**
709
+ * Draw a 16-bit character string into a Picture.
710
+ *
711
+ * @param dpy Connection to the X server.
712
+ * @param[in] op Compositing operation to perform.
713
+ * @param[in] src Picture to combine with.
714
+ * @param[in] dst Picture to combine into.
715
+ * @param[in] maskFormat Picture format of the generated Picture mask.
716
+ * @param[in] glyphset Glyph Source.
717
+ * @param[in] xSrc Horizontal `src` origin offset.
718
+ * @param[in] ySrc Vertical `src` origin offset.
719
+ * @param[in] xDst Horizontal `dst` origin offset.
720
+ * @param[in] yDst Vertical `dst` origin offset.
721
+ * @param[in] string String to clip to.
722
+ * @param[in] nchar String length.
723
+ */
724
+ void XRenderCompositeString16(Display *dpy, int op, Picture src, Picture dst,
725
+ _Xconst XRenderPictFormat *maskFormat,
726
+ GlyphSet glyphset, int xSrc, int ySrc, int xDst,
727
+ int yDst, _Xconst unsigned short *string,
728
+ int nchar);
729
+
730
+ /**
731
+ * Draw a 32-bit character string into a Picture.
732
+ *
733
+ * @param dpy Connection to the X server.
734
+ * @param[in] op Compositing operation to perform.
735
+ * @param[in] src Picture to combine with.
736
+ * @param[in] dst Picture to combine into.
737
+ * @param[in] maskFormat Picture format of the generated Picture mask.
738
+ * @param[in] glyphset Glyph Source.
739
+ * @param[in] xSrc Horizontal `src` origin offset.
740
+ * @param[in] ySrc Vertical `src` origin offset.
741
+ * @param[in] xDst Horizontal `dst` origin offset.
742
+ * @param[in] yDst Vertical `dst` origin offset.
743
+ * @param[in] string String to clip to.
744
+ * @param[in] nchar String length.
745
+ */
746
+ void XRenderCompositeString32(Display *dpy, int op, Picture src, Picture dst,
747
+ _Xconst XRenderPictFormat *maskFormat,
748
+ GlyphSet glyphset, int xSrc, int ySrc, int xDst,
749
+ int yDst, _Xconst unsigned int *string,
750
+ int nchar);
751
+
752
+ /**
753
+ * Draw several 8-bit Glyph Elements into a Picture.
754
+ *
755
+ * @param dpy Connection to the X server.
756
+ * @param[in] op Compositing operation to perform.
757
+ * @param[in] src Picture to combine with.
758
+ * @param[in] dst Picture to combine into.
759
+ * @param[in] maskFormat Picture format of the generated Picture mask.
760
+ * @param[in] xSrc Horizontal `src` origin offset.
761
+ * @param[in] ySrc Vertical `src` origin offset.
762
+ * @param[in] xDst Horizontal `dst` origin offset.
763
+ * @param[in] yDst Vertical `dst` origin offset.
764
+ * @param[in] elts Glyph Elements array to clip with.
765
+ * @param[in] nelt Glyph Elements array size.
766
+ */
767
+ void XRenderCompositeText8(Display *dpy, int op, Picture src, Picture dst,
768
+ _Xconst XRenderPictFormat *maskFormat, int xSrc,
769
+ int ySrc, int xDst, int yDst,
770
+ _Xconst XGlyphElt8 *elts, int nelt);
771
+
772
+ /**
773
+ * Draw several 16-bit Glyph Elements into a Picture.
774
+ *
775
+ * @param dpy Connection to the X server.
776
+ * @param[in] op Compositing operation to perform.
777
+ * @param[in] src Picture to combine with.
778
+ * @param[in] dst Picture to combine into.
779
+ * @param[in] maskFormat Picture format of the generated Picture mask.
780
+ * @param[in] xSrc Horizontal `src` origin offset.
781
+ * @param[in] ySrc Vertical `src` origin offset.
782
+ * @param[in] xDst Horizontal `dst` origin offset.
783
+ * @param[in] yDst Vertical `dst` origin offset.
784
+ * @param[in] elts Glyph Elements array to clip with.
785
+ * @param[in] nelt Glyph Elements array size.
786
+ */
787
+ void XRenderCompositeText16(Display *dpy, int op, Picture src, Picture dst,
788
+ _Xconst XRenderPictFormat *maskFormat, int xSrc,
789
+ int ySrc, int xDst, int yDst,
790
+ _Xconst XGlyphElt16 *elts, int nelt);
791
+
792
+ /**
793
+ * Draw several 32-bit Glyph Elements into a Picture.
794
+ *
795
+ * @param dpy Connection to the X server.
796
+ * @param[in] op Compositing operation to perform.
797
+ * @param[in] src Picture to combine with.
798
+ * @param[in] dst Picture to combine into.
799
+ * @param[in] maskFormat Picture format of the generated Picture mask.
800
+ * @param[in] xSrc Horizontal `src` origin offset.
801
+ * @param[in] ySrc Vertical `src` origin offset.
802
+ * @param[in] xDst Horizontal `dst` origin offset.
803
+ * @param[in] yDst Vertical `dst` origin offset.
804
+ * @param[in] elts Glyph Elements to clip with.
805
+ * @param[in] nelt Glyph Elements array size.
806
+ */
807
+ void XRenderCompositeText32(Display *dpy, int op, Picture src, Picture dst,
808
+ _Xconst XRenderPictFormat *maskFormat, int xSrc,
809
+ int ySrc, int xDst, int yDst,
810
+ _Xconst XGlyphElt32 *elts, int nelt);
811
+
812
+ /**
813
+ * Fill a Rectangle with the given color.
814
+ *
815
+ * @param dpy Connection to the X server.
816
+ * @param[in] op Compositing operation to perform.
817
+ * @param[in] dst Picture to draw into.
818
+ * @param[in] color Color to fill with.
819
+ * @param[in] x Horizontal offset.
820
+ * @param[in] y Vertical offset.
821
+ * @param[in] width Rectangle width.
822
+ * @param[in] height Rectangle height.
823
+ */
824
+ void XRenderFillRectangle(Display *dpy, int op, Picture dst,
825
+ _Xconst XRenderColor *color, int x, int y,
826
+ unsigned int width, unsigned int height);
827
+
828
+ /**
829
+ * Fill a bunch of Rectangle with the given color.
830
+ *
831
+ * @param dpy Connection to the X server.
832
+ * @param[in] op Compositing operation to perform.
833
+ * @param[in] dst Picture to draw into.
834
+ * @param[in] color Color to fill with.
835
+ * @param[in] rectangles Array of Rectangles to fill.
836
+ * @param[in] n_rects `rectangles` array size.
837
+ */
838
+ void XRenderFillRectangles(Display *dpy, int op, Picture dst,
839
+ _Xconst XRenderColor *color,
840
+ _Xconst XRectangle *rectangles, int n_rects);
841
+
842
+ /**
843
+ * Combine two Pictures using a bunch of Trapezoids as the mask.
844
+ *
845
+ * @param dpy Connection to the X server.
846
+ * @param[in] op Compositing operation to perform.
847
+ * @param[in] src Picture to combine with.
848
+ * @param[in] dst Picture to combine into.
849
+ * @param[in] maskFormat Picture format of the generated Picture mask.
850
+ * @param[in] xSrc Horizontal `src` origin offset.
851
+ * @param[in] ySrc Vertical `src` origin offset.
852
+ * @param[in] traps Array of Trapezoids to clip with.
853
+ * @param[in] ntrap `traps` Array size.
854
+ */
855
+ void XRenderCompositeTrapezoids(Display *dpy, int op, Picture src, Picture dst,
856
+ _Xconst XRenderPictFormat *maskFormat, int xSrc,
857
+ int ySrc, _Xconst XTrapezoid *traps, int ntrap);
858
+
859
+ /**
860
+ * Combine two Pictures using a bunch of Triangles as the mask.
861
+ *
862
+ * @param dpy Connection to the X server.
863
+ * @param[in] op Compositing operation to perform.
864
+ * @param[in] src Picture to combine with.
865
+ * @param[in] dst Picture to combine into.
866
+ * @param[in] maskFormat Picture format of the generated Picture mask.
867
+ * @param[in] xSrc Horizontal `src` origin offset.
868
+ * @param[in] ySrc Vertical `src` origin offset.
869
+ * @param[in] triangles Array of Triangles to clip with.
870
+ * @param[in] ntriangle `triangles` array size.
871
+ */
872
+ void XRenderCompositeTriangles(Display *dpy, int op, Picture src, Picture dst,
873
+ _Xconst XRenderPictFormat *maskFormat, int xSrc,
874
+ int ySrc, _Xconst XTriangle *triangles,
875
+ int ntriangle);
876
+
877
+ /**
878
+ * Combine two Pictures using a Triangle Strip as the mask.
879
+ *
880
+ * @param dpy Connection to the X server.
881
+ * @param[in] op Compositing operation to perform.
882
+ * @param[in] src Picture to combine with.
883
+ * @param[in] dst Picture to combine into.
884
+ * @param[in] maskFormat Picture format of the generated Picture mask.
885
+ * @param[in] xSrc Horizontal `src` origin offset.
886
+ * @param[in] ySrc Vertical `src` origin offset.
887
+ * @param[in] points Array of Points to create Triangles with.
888
+ * @param[in] npoint `points` array size.
889
+ */
890
+ void XRenderCompositeTriStrip(Display *dpy, int op, Picture src, Picture dst,
891
+ _Xconst XRenderPictFormat *maskFormat, int xSrc,
892
+ int ySrc, _Xconst XPointFixed *points,
893
+ int npoint);
894
+
895
+ /**
896
+ * Combine two Pictures using a Triangle Fan as the mask.
897
+ *
898
+ * @param dpy Connection to the X server.
899
+ * @param[in] op Compositing operation to perform.
900
+ * @param[in] src Picture to combine with.
901
+ * @param[in] dst Picture to combine into.
902
+ * @param[in] maskFormat Picture format of the generated Picture mask.
903
+ * @param[in] xSrc Horizontal `src` origin offset.
904
+ * @param[in] ySrc Vertical `src` origin offset.
905
+ * @param[in] points Array of Points to create Triangles with.
906
+ * @param[in] npoint `points` array size.
907
+ */
908
+ void XRenderCompositeTriFan(Display *dpy, int op, Picture src, Picture dst,
909
+ _Xconst XRenderPictFormat *maskFormat, int xSrc,
910
+ int ySrc, _Xconst XPointFixed *points, int npoint);
911
+
912
+ /**
913
+ * Combine two Pictures using a Polygon as the mask.
914
+ *
915
+ * @param dpy Connection to the X server.
916
+ * @param[in] op Compositing operation to perform.
917
+ * @param[in] src Picture to combine with.
918
+ * @param[in] dst Picture to combine into.
919
+ * @param[in] maskFormat Picture format of the generated Picture mask.
920
+ * @param[in] xSrc Horizontal `src` origin offset.
921
+ * @param[in] ySrc Vertical `src` origin offset.
922
+ * @param[in] xDst Horizontal `dst` origin offset.
923
+ * @param[in] yDst Vertical `dst` origin offset.
924
+ * @param[in] fpoints Array of DoublePoints to create a Polygon with.
925
+ * @param[in] npoints `points` array size.
926
+ * @param winding Unused.
927
+ */
928
+ void XRenderCompositeDoublePoly(Display *dpy, int op, Picture src, Picture dst,
929
+ _Xconst XRenderPictFormat *maskFormat, int xSrc,
930
+ int ySrc, int xDst, int yDst,
931
+ _Xconst XPointDouble *fpoints, int npoints,
932
+ int winding);
933
+
934
+ /**
935
+ * Parse a color string.
936
+ *
937
+ * @param dpy Connection to the X server.
938
+ * @param[in] spec Null-terminated string.
939
+ * @param[out] def Parsing result.
940
+ * @return Status «1» on success.
941
+ */
942
+ Status XRenderParseColor(Display *dpy, char *spec, XRenderColor *def);
943
+
944
+ /**
945
+ * Creates a cursor looking like a Picture.
946
+ *
947
+ * @param dpy Connection to the X server.
948
+ * @param[in] source Picture defining the cursor look.
949
+ * @param[in] x Horizontal offset.
950
+ * @param[in] y Vertical offset.
951
+ * @return A Cursor.
952
+ */
953
+ Cursor XRenderCreateCursor(Display *dpy, Picture source, unsigned int x,
954
+ unsigned int y);
955
+
956
+ /**
957
+ * Ask for Filters applicable to some Drawable.
958
+ *
959
+ * @param dpy Connection to the X server.
960
+ * @param[in] drawable Target Drawable.
961
+ * @return Available Filters and Aliases.
962
+ */
963
+ XFilters *XRenderQueryFilters(Display *dpy, Drawable drawable);
964
+
965
+ /**
966
+ * Set the current filter of a Picture.
967
+ *
968
+ * @note On Picture creation, the «Nearest» filter is set by default.
969
+ *
970
+ * @param dpy Connection to the X server.
971
+ * @param[in] picture Target.
972
+ * @param[in] filter Filter name.
973
+ * @param[in] params Filter parameters array.
974
+ * @param[in] nparams `params` array size.
975
+ */
976
+ void XRenderSetPictureFilter(Display *dpy, Picture picture, const char *filter,
977
+ XFixed *params, int nparams);
978
+
979
+ /**
980
+ * Create an animated Cursor from the given Cursor frames.
981
+ *
982
+ * @param dpy Connection to the X server.
983
+ * @param[in] ncursor Cursor frames count.
984
+ * @param[in] cursors Cursor frames array.
985
+ * @return An animated Cursor.
986
+ */
987
+ Cursor XRenderCreateAnimCursor(Display *dpy, int ncursor, XAnimCursor *cursors);
988
+
989
+ /**
990
+ * Add the given Trapezoids to a single-channel Picture.
991
+ *
992
+ * @param dpy Connection to the X server.
993
+ * @param[in] picture An alpha-only Picture.
994
+ * @param[in] xOff Horizontal offset.
995
+ * @param[in] yOff Vertical offset.
996
+ * @param[in] traps Array of trapezoids.
997
+ * @param[in] ntrap `traps` array size.
998
+ */
999
+ void XRenderAddTraps(Display *dpy, Picture picture, int xOff, int yOff,
1000
+ _Xconst XTrap *traps, int ntrap);
1001
+
1002
+ /**
1003
+ * Create a Picture filled with a single Color.
1004
+ *
1005
+ * @param dpy Connection to the X server.
1006
+ * @param[in] color Desired filling.
1007
+ * @return A single Color Picture.
1008
+ */
1009
+ Picture XRenderCreateSolidFill(Display *dpy, const XRenderColor *color);
1010
+
1011
+ /**
1012
+ * Create a Picture filled with a Linear Gradient.
1013
+ *
1014
+ * @param dpy Connection to the X server.
1015
+ * @param[in] gradient Gradient geometry.
1016
+ * @param[in] stops Stop sections.
1017
+ * @param[in] colors Stop colors.
1018
+ * @param[in] nstops Stops count.
1019
+ * @return A Picture filled with a Linear Gradient.
1020
+ */
1021
+ Picture XRenderCreateLinearGradient(Display *dpy,
1022
+ const XLinearGradient *gradient,
1023
+ const XFixed *stops,
1024
+ const XRenderColor *colors, int nstops);
1025
+
1026
+ /**
1027
+ * Create a Picture filled with a Radial Gradient.
1028
+ *
1029
+ * @param dpy Connection to the X server.
1030
+ * @param[in] gradient Gradient geometry.
1031
+ * @param[in] stops Stop sections.
1032
+ * @param[in] colors Stop colors.
1033
+ * @param[in] nstops Stops count.
1034
+ * @return A Picture filled with a Radial Gradient.
1035
+ */
1036
+ Picture XRenderCreateRadialGradient(Display *dpy,
1037
+ const XRadialGradient *gradient,
1038
+ const XFixed *stops,
1039
+ const XRenderColor *colors, int nstops);
1040
+
1041
+ /**
1042
+ * Create a Picture filled with a Conical Gradient.
1043
+ *
1044
+ * @param dpy Connection to the X server.
1045
+ * @param[in] gradient Gradient geometry.
1046
+ * @param[in] stops Stop sections.
1047
+ * @param[in] colors Stop colors.
1048
+ * @param[in] nstops Stops count.
1049
+ * @return A Picture filled with a Conical Gradient.
1050
+ */
1051
+ Picture XRenderCreateConicalGradient(Display *dpy,
1052
+ const XConicalGradient *gradient,
1053
+ const XFixed *stops,
1054
+ const XRenderColor *colors, int nstops);
1055
+
1056
+ _XFUNCPROTOEND
1057
+
1058
+ #endif /* _XRENDER_H_ */
data/miniconda3/include/X11/extensions/Xv.h ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /***********************************************************
2
+ Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts,
3
+ and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
4
+
5
+ All Rights Reserved
6
+
7
+ Permission to use, copy, modify, and distribute this software and its
8
+ documentation for any purpose and without fee is hereby granted,
9
+ provided that the above copyright notice appear in all copies and that
10
+ both that copyright notice and this permission notice appear in
11
+ supporting documentation, and that the names of Digital or MIT not be
12
+ used in advertising or publicity pertaining to distribution of the
13
+ software without specific, written prior permission.
14
+
15
+ DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
16
+ ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
17
+ DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
18
+ ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
19
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
20
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
21
+ SOFTWARE.
22
+
23
+ ******************************************************************/
24
+
25
+ #ifndef XV_H
26
+ #define XV_H
27
+ /*
28
+ ** File:
29
+ **
30
+ ** Xv.h --- Xv shared library and server header file
31
+ **
32
+ ** Author:
33
+ **
34
+ ** David Carver (Digital Workstation Engineering/Project Athena)
35
+ **
36
+ ** Revisions:
37
+ **
38
+ ** 05.15.91 Carver
39
+ ** - version 2.0 upgrade
40
+ **
41
+ ** 01.24.91 Carver
42
+ ** - version 1.4 upgrade
43
+ **
44
+ */
45
+
46
+ #include <X11/X.h>
47
+
48
+ #define XvName "XVideo"
49
+ #define XvVersion 2
50
+ #define XvRevision 2
51
+
52
+ /* Symbols */
53
+
54
+ typedef XID XvPortID;
55
+ typedef XID XvEncodingID;
56
+
57
+ #define XvNone 0
58
+
59
+ #define XvInput 0
60
+ #define XvOutput 1
61
+
62
+ #define XvInputMask (1<<XvInput)
63
+ #define XvOutputMask (1<<XvOutput)
64
+ #define XvVideoMask 0x00000004
65
+ #define XvStillMask 0x00000008
66
+ #define XvImageMask 0x00000010
67
+
68
+ /* These two are not client viewable */
69
+ #define XvPixmapMask 0x00010000
70
+ #define XvWindowMask 0x00020000
71
+
72
+
73
+ #define XvGettable 0x01
74
+ #define XvSettable 0x02
75
+
76
+ #define XvRGB 0
77
+ #define XvYUV 1
78
+
79
+ #define XvPacked 0
80
+ #define XvPlanar 1
81
+
82
+ #define XvTopToBottom 0
83
+ #define XvBottomToTop 1
84
+
85
+
86
+ /* Events */
87
+
88
+ #define XvVideoNotify 0
89
+ #define XvPortNotify 1
90
+ #define XvNumEvents 2
91
+
92
+ /* Video Notify Reasons */
93
+
94
+ #define XvStarted 0
95
+ #define XvStopped 1
96
+ #define XvBusy 2
97
+ #define XvPreempted 3
98
+ #define XvHardError 4
99
+ #define XvLastReason 4
100
+
101
+ #define XvNumReasons (XvLastReason + 1)
102
+
103
+ #define XvStartedMask (1<<XvStarted)
104
+ #define XvStoppedMask (1<<XvStopped)
105
+ #define XvBusyMask (1<<XvBusy)
106
+ #define XvPreemptedMask (1<<XvPreempted)
107
+ #define XvHardErrorMask (1<<XvHardError)
108
+
109
+ #define XvAnyReasonMask ((1<<XvNumReasons) - 1)
110
+ #define XvNoReasonMask 0
111
+
112
+ /* Errors */
113
+
114
+ #define XvBadPort 0
115
+ #define XvBadEncoding 1
116
+ #define XvBadControl 2
117
+ #define XvNumErrors 3
118
+
119
+ /* Status */
120
+
121
+ #define XvBadExtension 1
122
+ #define XvAlreadyGrabbed 2
123
+ #define XvInvalidTime 3
124
+ #define XvBadReply 4
125
+ #define XvBadAlloc 5
126
+
127
+ #endif /* XV_H */
128
+
data/miniconda3/include/X11/extensions/XvMC.h ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef _XVMC_H_
2
+ #define _XVMC_H_
3
+
4
+ #include <X11/X.h>
5
+ #include <X11/extensions/Xv.h>
6
+
7
+ #define XvMCName "XVideo-MotionCompensation"
8
+ #define XvMCNumEvents 0
9
+ #define XvMCNumErrors 3
10
+ #define XvMCVersion 1
11
+ #define XvMCRevision 1
12
+
13
+ #define XvMCBadContext 0
14
+ #define XvMCBadSurface 1
15
+ #define XvMCBadSubpicture 2
16
+
17
+ /* Chroma formats */
18
+ #define XVMC_CHROMA_FORMAT_420 0x00000001
19
+ #define XVMC_CHROMA_FORMAT_422 0x00000002
20
+ #define XVMC_CHROMA_FORMAT_444 0x00000003
21
+
22
+ /* XvMCSurfaceInfo Flags */
23
+ #define XVMC_OVERLAID_SURFACE 0x00000001
24
+ #define XVMC_BACKEND_SUBPICTURE 0x00000002
25
+ #define XVMC_SUBPICTURE_INDEPENDENT_SCALING 0x00000004
26
+ #define XVMC_INTRA_UNSIGNED 0x00000008
27
+
28
+ /* Motion Compensation types */
29
+ #define XVMC_MOCOMP 0x00000000
30
+ #define XVMC_IDCT 0x00010000
31
+
32
+ #define XVMC_MPEG_1 0x00000001
33
+ #define XVMC_MPEG_2 0x00000002
34
+ #define XVMC_H263 0x00000003
35
+ #define XVMC_MPEG_4 0x00000004
36
+
37
+ #define XVMC_MB_TYPE_MOTION_FORWARD 0x02
38
+ #define XVMC_MB_TYPE_MOTION_BACKWARD 0x04
39
+ #define XVMC_MB_TYPE_PATTERN 0x08
40
+ #define XVMC_MB_TYPE_INTRA 0x10
41
+
42
+ #define XVMC_PREDICTION_FIELD 0x01
43
+ #define XVMC_PREDICTION_FRAME 0x02
44
+ #define XVMC_PREDICTION_DUAL_PRIME 0x03
45
+ #define XVMC_PREDICTION_16x8 0x02
46
+ #define XVMC_PREDICTION_4MV 0x04
47
+
48
+ #define XVMC_SELECT_FIRST_FORWARD 0x01
49
+ #define XVMC_SELECT_FIRST_BACKWARD 0x02
50
+ #define XVMC_SELECT_SECOND_FORWARD 0x04
51
+ #define XVMC_SELECT_SECOND_BACKWARD 0x08
52
+
53
+ #define XVMC_DCT_TYPE_FRAME 0x00
54
+ #define XVMC_DCT_TYPE_FIELD 0x01
55
+
56
+ #define XVMC_TOP_FIELD 0x00000001
57
+ #define XVMC_BOTTOM_FIELD 0x00000002
58
+ #define XVMC_FRAME_PICTURE (XVMC_TOP_FIELD | XVMC_BOTTOM_FIELD)
59
+
60
+ #define XVMC_SECOND_FIELD 0x00000004
61
+
62
+ #define XVMC_DIRECT 0x00000001
63
+
64
+ #define XVMC_RENDERING 0x00000001
65
+ #define XVMC_DISPLAYING 0x00000002
66
+
67
+
68
+ typedef struct {
69
+ int surface_type_id;
70
+ int chroma_format;
71
+ unsigned short max_width;
72
+ unsigned short max_height;
73
+ unsigned short subpicture_max_width;
74
+ unsigned short subpicture_max_height;
75
+ int mc_type;
76
+ int flags;
77
+ } XvMCSurfaceInfo;
78
+
79
+ typedef struct {
80
+ XID context_id;
81
+ int surface_type_id;
82
+ unsigned short width;
83
+ unsigned short height;
84
+ XvPortID port;
85
+ int flags;
86
+ void * privData; /* private to the library */
87
+ } XvMCContext;
88
+
89
+ typedef struct {
90
+ XID surface_id;
91
+ XID context_id;
92
+ int surface_type_id;
93
+ unsigned short width;
94
+ unsigned short height;
95
+ void *privData; /* private to the library */
96
+ } XvMCSurface;
97
+
98
+ typedef struct {
99
+ XID subpicture_id;
100
+ XID context_id;
101
+ int xvimage_id;
102
+ unsigned short width;
103
+ unsigned short height;
104
+ int num_palette_entries;
105
+ int entry_bytes;
106
+ char component_order[4];
107
+ void *privData; /* private to the library */
108
+ } XvMCSubpicture;
109
+
110
+ typedef struct {
111
+ unsigned int num_blocks;
112
+ XID context_id;
113
+ void *privData;
114
+ short *blocks;
115
+ } XvMCBlockArray;
116
+
117
+ typedef struct {
118
+ unsigned short x;
119
+ unsigned short y;
120
+ unsigned char macroblock_type;
121
+ unsigned char motion_type;
122
+ unsigned char motion_vertical_field_select;
123
+ unsigned char dct_type;
124
+ short PMV[2][2][2];
125
+ unsigned int index;
126
+ unsigned short coded_block_pattern;
127
+ unsigned short pad0;
128
+ } XvMCMacroBlock;
129
+
130
+
131
+ typedef struct {
132
+ unsigned int num_blocks;
133
+ XID context_id;
134
+ void *privData;
135
+ XvMCMacroBlock *macro_blocks;
136
+ } XvMCMacroBlockArray;
137
+
138
+ #endif
data/miniconda3/include/X11/extensions/XvMCproto.h ADDED
@@ -0,0 +1,226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef _XVMCPROTO_H_
2
+ #define _XVMCPROTO_H_
3
+
4
+ #define xvmc_QueryVersion 0
5
+ #define xvmc_ListSurfaceTypes 1
6
+ #define xvmc_CreateContext 2
7
+ #define xvmc_DestroyContext 3
8
+ #define xvmc_CreateSurface 4
9
+ #define xvmc_DestroySurface 5
10
+ #define xvmc_CreateSubpicture 6
11
+ #define xvmc_DestroySubpicture 7
12
+ #define xvmc_ListSubpictureTypes 8
13
+ #define xvmc_GetDRInfo 9
14
+ #define xvmc_LastRequest xvmc_GetDRInfo
15
+
16
+ #define xvmcNumRequest (xvmc_LastRequest + 1)
17
+
18
+
19
+ typedef struct {
20
+ CARD32 surface_type_id;
21
+ CARD16 chroma_format;
22
+ CARD16 pad0;
23
+ CARD16 max_width;
24
+ CARD16 max_height;
25
+ CARD16 subpicture_max_width;
26
+ CARD16 subpicture_max_height;
27
+ CARD32 mc_type;
28
+ CARD32 flags;
29
+ } xvmcSurfaceInfo;
30
+ #define sz_xvmcSurfaceInfo 24
31
+
32
+ typedef struct {
33
+ CARD8 reqType;
34
+ CARD8 xvmcReqType;
35
+ CARD16 length;
36
+ } xvmcQueryVersionReq;
37
+ #define sz_xvmcQueryVersionReq 4
38
+
39
+ typedef struct {
40
+ BYTE type; /* X_Reply */
41
+ BYTE padb1;
42
+ CARD16 sequenceNumber;
43
+ CARD32 length;
44
+ CARD32 major;
45
+ CARD32 minor;
46
+ CARD32 padl4;
47
+ CARD32 padl5;
48
+ CARD32 padl6;
49
+ CARD32 padl7;
50
+ } xvmcQueryVersionReply;
51
+ #define sz_xvmcQueryVersionReply 32
52
+
53
+ typedef struct {
54
+ CARD8 reqType;
55
+ CARD8 xvmcReqType;
56
+ CARD16 length;
57
+ CARD32 port;
58
+ } xvmcListSurfaceTypesReq;
59
+ #define sz_xvmcListSurfaceTypesReq 8
60
+
61
+ typedef struct {
62
+ BYTE type; /* X_Reply */
63
+ BYTE padb1;
64
+ CARD16 sequenceNumber;
65
+ CARD32 length;
66
+ CARD32 num;
67
+ CARD32 padl3;
68
+ CARD32 padl4;
69
+ CARD32 padl5;
70
+ CARD32 padl6;
71
+ CARD32 padl7;
72
+ } xvmcListSurfaceTypesReply;
73
+ #define sz_xvmcListSurfaceTypesReply 32
74
+
75
+ typedef struct {
76
+ CARD8 reqType;
77
+ CARD8 xvmcReqType;
78
+ CARD16 length;
79
+ CARD32 context_id;
80
+ CARD32 port;
81
+ CARD32 surface_type_id;
82
+ CARD16 width;
83
+ CARD16 height;
84
+ CARD32 flags;
85
+ } xvmcCreateContextReq;
86
+ #define sz_xvmcCreateContextReq 24
87
+
88
+ typedef struct {
89
+ BYTE type; /* X_Reply */
90
+ BYTE padb1;
91
+ CARD16 sequenceNumber;
92
+ CARD32 length;
93
+ CARD16 width_actual;
94
+ CARD16 height_actual;
95
+ CARD32 flags_return;
96
+ CARD32 padl4;
97
+ CARD32 padl5;
98
+ CARD32 padl6;
99
+ CARD32 padl7;
100
+ } xvmcCreateContextReply;
101
+ #define sz_xvmcCreateContextReply 32
102
+
103
+ typedef struct {
104
+ CARD8 reqType;
105
+ CARD8 xvmcReqType;
106
+ CARD16 length;
107
+ CARD32 context_id;
108
+ } xvmcDestroyContextReq;
109
+ #define sz_xvmcDestroyContextReq 8
110
+
111
+ typedef struct {
112
+ CARD8 reqType;
113
+ CARD8 xvmcReqType;
114
+ CARD16 length;
115
+ CARD32 surface_id;
116
+ CARD32 context_id;
117
+ } xvmcCreateSurfaceReq;
118
+ #define sz_xvmcCreateSurfaceReq 12
119
+
120
+ typedef struct {
121
+ BYTE type; /* X_Reply */
122
+ BYTE padb1;
123
+ CARD16 sequenceNumber;
124
+ CARD32 length;
125
+ CARD32 padl2;
126
+ CARD32 padl3;
127
+ CARD32 padl4;
128
+ CARD32 padl5;
129
+ CARD32 padl6;
130
+ CARD32 padl7;
131
+ } xvmcCreateSurfaceReply;
132
+ #define sz_xvmcCreateSurfaceReply 32
133
+
134
+ typedef struct {
135
+ CARD8 reqType;
136
+ CARD8 xvmcReqType;
137
+ CARD16 length;
138
+ CARD32 surface_id;
139
+ } xvmcDestroySurfaceReq;
140
+ #define sz_xvmcDestroySurfaceReq 8
141
+
142
+
143
+ typedef struct {
144
+ CARD8 reqType;
145
+ CARD8 xvmcReqType;
146
+ CARD16 length;
147
+ CARD32 subpicture_id;
148
+ CARD32 context_id;
149
+ CARD32 xvimage_id;
150
+ CARD16 width;
151
+ CARD16 height;
152
+ } xvmcCreateSubpictureReq;
153
+ #define sz_xvmcCreateSubpictureReq 20
154
+
155
+ typedef struct {
156
+ BYTE type; /* X_Reply */
157
+ BYTE padb1;
158
+ CARD16 sequenceNumber;
159
+ CARD32 length;
160
+ CARD16 width_actual;
161
+ CARD16 height_actual;
162
+ CARD16 num_palette_entries;
163
+ CARD16 entry_bytes;
164
+ CARD8 component_order[4];
165
+ CARD32 padl5;
166
+ CARD32 padl6;
167
+ CARD32 padl7;
168
+ } xvmcCreateSubpictureReply;
169
+ #define sz_xvmcCreateSubpictureReply 32
170
+
171
+ typedef struct {
172
+ CARD8 reqType;
173
+ CARD8 xvmcReqType;
174
+ CARD16 length;
175
+ CARD32 subpicture_id;
176
+ } xvmcDestroySubpictureReq;
177
+ #define sz_xvmcDestroySubpictureReq 8
178
+
179
+ typedef struct {
180
+ CARD8 reqType;
181
+ CARD8 xvmcReqType;
182
+ CARD16 length;
183
+ CARD32 port;
184
+ CARD32 surface_type_id;
185
+ } xvmcListSubpictureTypesReq;
186
+ #define sz_xvmcListSubpictureTypesReq 12
187
+
188
+ typedef struct {
189
+ BYTE type; /* X_Reply */
190
+ BYTE padb1;
191
+ CARD16 sequenceNumber;
192
+ CARD32 length;
193
+ CARD32 num;
194
+ CARD32 padl2;
195
+ CARD32 padl3;
196
+ CARD32 padl4;
197
+ CARD32 padl5;
198
+ CARD32 padl6;
199
+ } xvmcListSubpictureTypesReply;
200
+ #define sz_xvmcListSubpictureTypesReply 32
201
+
202
+ typedef struct {
203
+ CARD8 reqType;
204
+ CARD8 xvmcReqType;
205
+ CARD16 length;
206
+ CARD32 port;
207
+ CARD32 shmKey;
208
+ CARD32 magic;
209
+ } xvmcGetDRInfoReq;
210
+ #define sz_xvmcGetDRInfoReq 16
211
+
212
+ typedef struct {
213
+ BYTE type; /* X_Reply */
214
+ BYTE padb1;
215
+ CARD16 sequenceNumber;
216
+ CARD32 length;
217
+ CARD32 major;
218
+ CARD32 minor;
219
+ CARD32 patchLevel;
220
+ CARD32 nameLen;
221
+ CARD32 busIDLen;
222
+ CARD32 isLocal;
223
+ } xvmcGetDRInfoReply;
224
+ #define sz_xvmcGetDRInfoReply 32
225
+
226
+ #endif
data/miniconda3/include/X11/extensions/applewmconst.h ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**************************************************************************
2
+
3
+ Copyright (c) 2002 Apple Computer, Inc.
4
+ All Rights Reserved.
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a
7
+ copy of this software and associated documentation files (the
8
+ "Software"), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sub license, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ The above copyright notice and this permission notice (including the
15
+ next paragraph) shall be included in all copies or substantial portions
16
+ of the Software.
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 NON-INFRINGEMENT.
21
+ IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
22
+ ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
+
26
+ **************************************************************************/
27
+
28
+ #ifndef _APPLEWMCONST_H_
29
+ #define _APPLEWMCONST_H_
30
+
31
+ /* Events */
32
+ #define AppleWMControllerNotify 0
33
+ #define AppleWMActivationNotify 1
34
+ #define AppleWMPasteboardNotify 2
35
+ #define AppleWMNumberEvents 3
36
+
37
+ #define AppleWMControllerNotifyMask (1L << 0)
38
+ #define AppleWMActivationNotifyMask (1L << 1)
39
+ #define AppleWMPasteboardNotifyMask (1L << 2)
40
+
41
+ /* "Kinds" of ControllerNotify events */
42
+ #define AppleWMMinimizeWindow 0
43
+ #define AppleWMZoomWindow 1
44
+ #define AppleWMCloseWindow 2
45
+ #define AppleWMBringAllToFront 3
46
+ #define AppleWMHideWindow 4
47
+ #define AppleWMHideAll 5
48
+ #define AppleWMShowAll 6
49
+ #define AppleWMWindowMenuItem 9
50
+ #define AppleWMWindowMenuNotify 10
51
+ #define AppleWMNextWindow 11
52
+ #define AppleWMPreviousWindow 12
53
+
54
+ /* "Kinds" of ActivationNotify events */
55
+ #define AppleWMIsActive 0
56
+ #define AppleWMIsInactive 1
57
+ #define AppleWMReloadPreferences 2
58
+
59
+ /* "Kinds" of PasteboardNotify events */
60
+ #define AppleWMCopyToPasteboard 0
61
+
62
+ /* Errors */
63
+ #define AppleWMClientNotLocal 0
64
+ #define AppleWMOperationNotSupported 1
65
+ #define AppleWMNumberErrors (AppleWMOperationNotSupported + 1)
66
+
67
+ /* Window level ids */
68
+ #define AppleWMWindowLevelNormal 0
69
+ #define AppleWMWindowLevelFloating 1
70
+ #define AppleWMWindowLevelTornOff 2
71
+ #define AppleWMWindowLevelDock 3
72
+ #define AppleWMWindowLevelDesktop 4
73
+ #define AppleWMNumWindowLevels 5
74
+
75
+ /* Possible value for frame_rect argument to XAppleWMFrameGetRect() */
76
+ /* Use xp_frame_rect_enum from <Xplugin.h> */
77
+
78
+ /* Window frame classes */
79
+ /* Use xp_frame_class_enum from <Xplugin.h> */
80
+
81
+ /* Window frame attributes */
82
+ /* Use xp_frame_attr_enum from <Xplugin.h> */
83
+
84
+ #endif /* _APPLEWMCONST_H_ */
data/miniconda3/include/X11/extensions/applewmproto.h ADDED
@@ -0,0 +1,293 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**************************************************************************
2
+
3
+ Copyright (c) 2002 Apple Computer, Inc.
4
+ All Rights Reserved.
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a
7
+ copy of this software and associated documentation files (the
8
+ "Software"), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sub license, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ The above copyright notice and this permission notice (including the
15
+ next paragraph) shall be included in all copies or substantial portions
16
+ of the Software.
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 NON-INFRINGEMENT.
21
+ IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
22
+ ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
+
26
+ **************************************************************************/
27
+
28
+ #ifndef _APPLEWMPROTO_H_
29
+ #define _APPLEWMPROTO_H_
30
+
31
+ #include <X11/extensions/applewmconst.h>
32
+ #include <X11/X.h>
33
+ #include <X11/Xmd.h>
34
+
35
+ #define APPLEWMNAME "Apple-WM"
36
+
37
+ #define APPLE_WM_MAJOR_VERSION 1 /* current version numbers */
38
+ #define APPLE_WM_MINOR_VERSION 3
39
+ #define APPLE_WM_PATCH_VERSION 0
40
+
41
+ #define X_AppleWMQueryVersion 0
42
+ #define X_AppleWMFrameGetRect 1
43
+ #define X_AppleWMFrameHitTest 2
44
+ #define X_AppleWMFrameDraw 3
45
+ #define X_AppleWMDisableUpdate 4
46
+ #define X_AppleWMReenableUpdate 5
47
+ #define X_AppleWMSelectInput 6
48
+ #define X_AppleWMSetWindowMenuCheck 7
49
+ #define X_AppleWMSetFrontProcess 8
50
+ #define X_AppleWMSetWindowLevel 9
51
+ #define X_AppleWMSetCanQuit 10
52
+ #define X_AppleWMSetWindowMenu 11
53
+ #define X_AppleWMSendPSN 12
54
+ #define X_AppleWMAttachTransient 13
55
+
56
+ /* For the purpose of the structure definitions in this file,
57
+ we must redefine the following types in terms of Xmd.h's types, which may
58
+ include bit fields. All of these are #undef'd at the end of this file,
59
+ restoring the definitions in X.h. */
60
+
61
+ #define Window CARD32
62
+ #define Drawable CARD32
63
+ #define Font CARD32
64
+ #define Pixmap CARD32
65
+ #define Cursor CARD32
66
+ #define Colormap CARD32
67
+ #define GContext CARD32
68
+ #define Atom CARD32
69
+ #define VisualID CARD32
70
+ #define Time CARD32
71
+ #define KeyCode CARD8
72
+ #define KeySym CARD32
73
+
74
+ typedef struct _AppleWMQueryVersion {
75
+ CARD8 reqType; /* always WMReqCode */
76
+ CARD8 wmReqType; /* always X_AppleWMQueryVersion */
77
+ CARD16 length;
78
+ } xAppleWMQueryVersionReq;
79
+ #define sz_xAppleWMQueryVersionReq 4
80
+
81
+ typedef struct {
82
+ BYTE type; /* X_Reply */
83
+ BOOL pad1;
84
+ CARD16 sequenceNumber;
85
+ CARD32 length;
86
+ CARD16 majorVersion; /* major version of WM protocol */
87
+ CARD16 minorVersion; /* minor version of WM protocol */
88
+ CARD32 patchVersion; /* patch version of WM protocol */
89
+ CARD32 pad3;
90
+ CARD32 pad4;
91
+ CARD32 pad5;
92
+ CARD32 pad6;
93
+ } xAppleWMQueryVersionReply;
94
+ #define sz_xAppleWMQueryVersionReply 32
95
+
96
+ typedef struct _AppleWMDisableUpdate {
97
+ CARD8 reqType; /* always WMReqCode */
98
+ CARD8 wmReqType; /* always X_AppleWMDisableUpdate */
99
+ CARD16 length;
100
+ CARD32 screen;
101
+ } xAppleWMDisableUpdateReq;
102
+ #define sz_xAppleWMDisableUpdateReq 8
103
+
104
+ typedef struct _AppleWMReenableUpdate {
105
+ CARD8 reqType; /* always WMReqCode */
106
+ CARD8 wmReqType; /* always X_AppleWMReenableUpdate */
107
+ CARD16 length;
108
+ CARD32 screen;
109
+ } xAppleWMReenableUpdateReq;
110
+ #define sz_xAppleWMReenableUpdateReq 8
111
+
112
+ typedef struct _AppleWMSelectInput {
113
+ CARD8 reqType; /* always WMReqCode */
114
+ CARD8 wmReqType; /* always X_AppleWMSelectInput */
115
+ CARD16 length;
116
+ CARD32 mask;
117
+ } xAppleWMSelectInputReq;
118
+ #define sz_xAppleWMSelectInputReq 8
119
+
120
+ typedef struct _AppleWMNotify {
121
+ BYTE type; /* always eventBase + event type */
122
+ BYTE kind;
123
+ CARD16 sequenceNumber;
124
+ Time time; /* time of change */
125
+ CARD16 pad1;
126
+ CARD32 arg;
127
+ CARD32 pad3;
128
+ CARD32 pad4;
129
+ CARD32 pad5;
130
+ CARD32 pad6;
131
+ } xAppleWMNotifyEvent;
132
+ #define sz_xAppleWMNotifyEvent 32
133
+
134
+ typedef struct _AppleWMSetWindowMenu {
135
+ CARD8 reqType; /* always WMReqCode */
136
+ CARD8 wmReqType; /* always X_AppleWMSetWindowMenu */
137
+ CARD16 length;
138
+ CARD16 nitems;
139
+ CARD16 pad1;
140
+ } xAppleWMSetWindowMenuReq;
141
+ #define sz_xAppleWMSetWindowMenuReq 8
142
+
143
+ typedef struct _AppleWMSetWindowMenuCheck {
144
+ CARD8 reqType; /* always WMReqCode */
145
+ CARD8 wmReqType; /* always X_AppleWMSetWindowMenuCheck */
146
+ CARD16 length;
147
+ CARD32 index;
148
+ } xAppleWMSetWindowMenuCheckReq;
149
+ #define sz_xAppleWMSetWindowMenuCheckReq 8
150
+
151
+ typedef struct _AppleWMSetFrontProcess {
152
+ CARD8 reqType; /* always WMReqCode */
153
+ CARD8 wmReqType; /* always X_AppleWMSetFrontProcess */
154
+ CARD16 length;
155
+ } xAppleWMSetFrontProcessReq;
156
+ #define sz_xAppleWMSetFrontProcessReq 4
157
+
158
+ typedef struct _AppleWMSetWindowLevel {
159
+ CARD8 reqType; /* always WMReqCode */
160
+ CARD8 wmReqType; /* always X_AppleWMSetWindowLevel */
161
+ CARD16 length;
162
+ CARD32 window;
163
+ CARD32 level;
164
+ } xAppleWMSetWindowLevelReq;
165
+ #define sz_xAppleWMSetWindowLevelReq 12
166
+
167
+ typedef struct _AppleWMSendPSN {
168
+ CARD8 reqType; /* always WMReqCode */
169
+ CARD8 wmReqType; /* always X_AppleWMSendPSN */
170
+ CARD16 length;
171
+ CARD32 psn_hi;
172
+ CARD32 psn_lo;
173
+ } xAppleWMSendPSNReq;
174
+ #define sz_xAppleWMSendPSNReq 12
175
+
176
+ typedef struct _AppleWMAttachTransient {
177
+ CARD8 reqType; /* always WMReqCode */
178
+ CARD8 wmReqType; /* always X_AppleWMAttachTransient */
179
+ CARD16 length;
180
+ CARD32 child;
181
+ CARD32 parent;
182
+ } xAppleWMAttachTransientReq;
183
+ #define sz_xAppleWMAttachTransientReq 12
184
+
185
+ typedef struct _AppleWMSetCanQuit {
186
+ CARD8 reqType; /* always WMReqCode */
187
+ CARD8 wmReqType; /* always X_AppleWMSetCanQuit */
188
+ CARD16 length;
189
+ CARD32 state;
190
+ } xAppleWMSetCanQuitReq;
191
+ #define sz_xAppleWMSetCanQuitReq 8
192
+
193
+ typedef struct _AppleWMFrameGetRect {
194
+ CARD8 reqType; /* always WMReqCode */
195
+ CARD8 wmReqType; /* always X_AppleWMFrameGetRect */
196
+ CARD16 length;
197
+ CARD16 frame_class;
198
+ CARD16 frame_rect;
199
+ CARD16 ix;
200
+ CARD16 iy;
201
+ CARD16 iw;
202
+ CARD16 ih;
203
+ CARD16 ox;
204
+ CARD16 oy;
205
+ CARD16 ow;
206
+ CARD16 oh;
207
+ } xAppleWMFrameGetRectReq;
208
+ #define sz_xAppleWMFrameGetRectReq 24
209
+
210
+ typedef struct {
211
+ BYTE type; /* X_Reply */
212
+ BOOL pad1;
213
+ CARD16 sequenceNumber;
214
+ CARD32 length;
215
+ CARD16 x;
216
+ CARD16 y;
217
+ CARD16 w;
218
+ CARD16 h;
219
+ CARD32 pad3;
220
+ CARD32 pad4;
221
+ CARD32 pad5;
222
+ CARD32 pad6;
223
+ } xAppleWMFrameGetRectReply;
224
+ #define sz_xAppleWMFrameGetRectReply 32
225
+
226
+ typedef struct _AppleWMFrameHitTest {
227
+ CARD8 reqType; /* always WMReqCode */
228
+ CARD8 wmReqType; /* always X_AppleWMFrameHitTest */
229
+ CARD16 length;
230
+ CARD16 frame_class;
231
+ CARD16 pad1;
232
+ CARD16 px;
233
+ CARD16 py;
234
+ CARD16 ix;
235
+ CARD16 iy;
236
+ CARD16 iw;
237
+ CARD16 ih;
238
+ CARD16 ox;
239
+ CARD16 oy;
240
+ CARD16 ow;
241
+ CARD16 oh;
242
+ } xAppleWMFrameHitTestReq;
243
+ #define sz_xAppleWMFrameHitTestReq 28
244
+
245
+ typedef struct {
246
+ BYTE type; /* X_Reply */
247
+ BOOL pad1;
248
+ CARD16 sequenceNumber;
249
+ CARD32 length;
250
+ CARD32 ret;
251
+ CARD32 pad2;
252
+ CARD32 pad3;
253
+ CARD32 pad4;
254
+ CARD32 pad5;
255
+ CARD32 pad6;
256
+ } xAppleWMFrameHitTestReply;
257
+ #define sz_xAppleWMFrameHitTestReply 32
258
+
259
+ typedef struct _AppleWMFrameDraw {
260
+ CARD8 reqType; /* always WMReqCode */
261
+ CARD8 wmReqType; /* always X_AppleWMFrameDraw */
262
+ CARD16 length;
263
+ CARD32 screen;
264
+ CARD32 window;
265
+ CARD16 frame_class;
266
+ CARD16 frame_attr;
267
+ CARD16 ix;
268
+ CARD16 iy;
269
+ CARD16 iw;
270
+ CARD16 ih;
271
+ CARD16 ox;
272
+ CARD16 oy;
273
+ CARD16 ow;
274
+ CARD16 oh;
275
+ CARD32 title_length;
276
+ } xAppleWMFrameDrawReq;
277
+ #define sz_xAppleWMFrameDrawReq 36
278
+
279
+ /* restore these definitions back to the typedefs in X.h */
280
+ #undef Window
281
+ #undef Drawable
282
+ #undef Font
283
+ #undef Pixmap
284
+ #undef Cursor
285
+ #undef Colormap
286
+ #undef GContext
287
+ #undef Atom
288
+ #undef VisualID
289
+ #undef Time
290
+ #undef KeyCode
291
+ #undef KeySym
292
+
293
+ #endif /* _APPLEWMPROTO_H_ */
data/miniconda3/include/X11/extensions/bigreqsproto.h ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+
3
+ Copyright 1992, 1998 The Open Group
4
+
5
+ Permission to use, copy, modify, distribute, and sell this software and its
6
+ documentation for any purpose is hereby granted without fee, provided that
7
+ the above copyright notice appear in all copies and that both that
8
+ copyright notice and this permission notice appear in supporting
9
+ documentation.
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 THE
17
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ Except as contained in this notice, the name of The Open Group shall not be
22
+ used in advertising or otherwise to promote the sale, use or other dealings
23
+ in this Software without prior written authorization from The Open Group.
24
+
25
+ */
26
+
27
+ #ifndef _BIGREQSPROTO_H_
28
+ #define _BIGREQSPROTO_H_
29
+
30
+ #define X_BigReqEnable 0
31
+
32
+ #define XBigReqNumberEvents 0
33
+
34
+ #define XBigReqNumberErrors 0
35
+
36
+ #define XBigReqExtensionName "BIG-REQUESTS"
37
+
38
+ typedef struct {
39
+ CARD8 reqType; /* always XBigReqCode */
40
+ CARD8 brReqType; /* always X_BigReqEnable */
41
+ CARD16 length;
42
+ } xBigReqEnableReq;
43
+ #define sz_xBigReqEnableReq 4
44
+
45
+ typedef struct {
46
+ BYTE type; /* X_Reply */
47
+ CARD8 pad0;
48
+ CARD16 sequenceNumber;
49
+ CARD32 length;
50
+ CARD32 max_request_size;
51
+ CARD32 pad1;
52
+ CARD32 pad2;
53
+ CARD32 pad3;
54
+ CARD32 pad4;
55
+ CARD32 pad5;
56
+ } xBigReqEnableReply;
57
+ #define sz_xBigReqEnableReply 32
58
+
59
+
60
+ typedef struct {
61
+ CARD8 reqType;
62
+ CARD8 data;
63
+ CARD16 zero;
64
+ CARD32 length;
65
+ } xBigReq;
66
+
67
+ #endif /* _BIGREQSPROTO_H_ */
data/miniconda3/include/X11/extensions/composite.h ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright (c) 2006, Oracle and/or its affiliates.
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 (including the next
12
+ * paragraph) shall be included in all copies or substantial portions of the
13
+ * 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
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ */
23
+ /*
24
+ * Copyright © 2003 Keith Packard
25
+ *
26
+ * Permission to use, copy, modify, distribute, and sell this software and its
27
+ * documentation for any purpose is hereby granted without fee, provided that
28
+ * the above copyright notice appear in all copies and that both that
29
+ * copyright notice and this permission notice appear in supporting
30
+ * documentation, and that the name of Keith Packard not be used in
31
+ * advertising or publicity pertaining to distribution of the software without
32
+ * specific, written prior permission. Keith Packard makes no
33
+ * representations about the suitability of this software for any purpose. It
34
+ * is provided "as is" without express or implied warranty.
35
+ *
36
+ * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
37
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
38
+ * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
39
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
40
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
41
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
42
+ * PERFORMANCE OF THIS SOFTWARE.
43
+ */
44
+
45
+ #ifndef _COMPOSITE_H_
46
+ #define _COMPOSITE_H_
47
+
48
+ #include <X11/extensions/xfixeswire.h>
49
+
50
+ #define COMPOSITE_NAME "Composite"
51
+ #define COMPOSITE_MAJOR 0
52
+ #define COMPOSITE_MINOR 4
53
+
54
+ #define CompositeRedirectAutomatic 0
55
+ #define CompositeRedirectManual 1
56
+
57
+ #define X_CompositeQueryVersion 0
58
+ #define X_CompositeRedirectWindow 1
59
+ #define X_CompositeRedirectSubwindows 2
60
+ #define X_CompositeUnredirectWindow 3
61
+ #define X_CompositeUnredirectSubwindows 4
62
+ #define X_CompositeCreateRegionFromBorderClip 5
63
+ #define X_CompositeNameWindowPixmap 6
64
+ #define X_CompositeGetOverlayWindow 7
65
+ #define X_CompositeReleaseOverlayWindow 8
66
+
67
+ #define CompositeNumberRequests (X_CompositeReleaseOverlayWindow + 1)
68
+
69
+ #define CompositeNumberEvents 0
70
+
71
+ #endif /* _COMPOSITE_H_ */
data/miniconda3/include/X11/extensions/cupproto.h ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+
3
+ Copyright 1987, 1988, 1998 The Open Group
4
+
5
+ Permission to use, copy, modify, distribute, and sell this software and its
6
+ documentation for any purpose is hereby granted without fee, provided that
7
+ the above copyright notice appear in all copies and that both that
8
+ copyright notice and this permission notice appear in supporting
9
+ documentation.
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 THE
17
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ Except as contained in this notice, the name of The Open Group shall not be
22
+ used in advertising or otherwise to promote the sale, use or other dealings
23
+ in this Software without prior written authorization from The Open Group.
24
+
25
+ */
26
+
27
+ #ifndef _XCUPPROTO_H_ /* { */
28
+ #define _XCUPPROTO_H_
29
+
30
+ #include <X11/extensions/cup.h>
31
+
32
+ #define X_XcupQueryVersion 0
33
+ #define X_XcupGetReservedColormapEntries 1
34
+ #define X_XcupStoreColors 2
35
+
36
+ typedef struct _XcupQueryVersion {
37
+ CARD8 reqType; /* always XcupReqCode */
38
+ CARD8 xcupReqType; /* always X_XcupQueryVersion */
39
+ CARD16 length;
40
+ CARD16 client_major_version;
41
+ CARD16 client_minor_version;
42
+ } xXcupQueryVersionReq;
43
+ #define sz_xXcupQueryVersionReq 8
44
+
45
+ typedef struct {
46
+ BYTE type; /* X_Reply */
47
+ BOOL pad1;
48
+ CARD16 sequence_number;
49
+ CARD32 length;
50
+ CARD16 server_major_version;
51
+ CARD16 server_minor_version;
52
+ CARD32 pad2;
53
+ CARD32 pad3;
54
+ CARD32 pad4;
55
+ CARD32 pad5;
56
+ CARD32 pad6;
57
+ } xXcupQueryVersionReply;
58
+ #define sz_xXcupQueryVersionReply 32
59
+
60
+ typedef struct _XcupGetReservedColormapEntries {
61
+ CARD8 reqType; /* always XcupReqCode */
62
+ CARD8 xcupReqType; /* always X_XcupGetReservedColormapEntries */
63
+ CARD16 length;
64
+ CARD32 screen;
65
+ } xXcupGetReservedColormapEntriesReq;
66
+ #define sz_xXcupGetReservedColormapEntriesReq 8
67
+
68
+ typedef struct {
69
+ BYTE type; /* X_Reply */
70
+ BOOL pad1;
71
+ CARD16 sequence_number;
72
+ CARD32 length;
73
+ CARD32 pad2;
74
+ CARD32 pad3;
75
+ CARD32 pad4;
76
+ CARD32 pad5;
77
+ CARD32 pad6;
78
+ CARD32 pad7;
79
+ } xXcupGetReservedColormapEntriesReply;
80
+ #define sz_xXcupGetReservedColormapEntriesReply 32
81
+
82
+ typedef struct _XcupStoreColors {
83
+ CARD8 reqType; /* always XcupReqCode */
84
+ CARD8 xcupReqType; /* always X_XcupStoreColors */
85
+ CARD16 length;
86
+ CARD32 cmap;
87
+ } xXcupStoreColorsReq;
88
+ #define sz_xXcupStoreColorsReq 8
89
+
90
+ typedef struct {
91
+ BYTE type; /* X_Reply */
92
+ BOOL pad1;
93
+ CARD16 sequence_number;
94
+ CARD32 length;
95
+ CARD32 pad2;
96
+ CARD32 pad3;
97
+ CARD32 pad4;
98
+ CARD32 pad5;
99
+ CARD32 pad6;
100
+ CARD32 pad7;
101
+ } xXcupStoreColorsReply;
102
+ #define sz_xXcupStoreColorsReply 32
103
+
104
+ #endif /* } _XCUPPROTO_H_ */
105
+
data/miniconda3/include/X11/extensions/dmx.h ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright 2002-2004 Red Hat Inc., Durham, North Carolina.
3
+ *
4
+ * All Rights Reserved.
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining
7
+ * a copy of this software and associated documentation files (the
8
+ * "Software"), to deal in the Software without restriction, including
9
+ * without limitation on the rights to use, copy, modify, merge,
10
+ * publish, distribute, sublicense, and/or sell copies of the Software,
11
+ * and to permit persons to whom the Software is furnished to do so,
12
+ * subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice (including the
15
+ * next paragraph) shall be included in all copies or substantial
16
+ * portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21
+ * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
22
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ * SOFTWARE.
26
+ */
27
+
28
+ /*
29
+ * Authors:
30
+ * Rickard E. (Rik) Faith <faith@redhat.com>
31
+ *
32
+ */
33
+
34
+ /** \file
35
+ * This file describes the interface to the client-side libdmx.a
36
+ * library. All DMX-aware client-side applications should include this
37
+ * file. */
38
+
39
+ #ifndef _DMX_H_
40
+ #define _DMX_H_
41
+
42
+ /* These values must be larger than LastExtensionError.
43
+ The values in dmxext.h and dmxproto.h *MUST* match. */
44
+ #define DmxBadXinerama 1001
45
+ #define DmxBadValue 1002
46
+ #define DmxBadReply 1003
47
+
48
+ #define DMXScreenWindowWidth (1L<<0)
49
+ #define DMXScreenWindowHeight (1L<<1)
50
+ #define DMXScreenWindowXoffset (1L<<2)
51
+ #define DMXScreenWindowYoffset (1L<<3)
52
+ #define DMXRootWindowWidth (1L<<4)
53
+ #define DMXRootWindowHeight (1L<<5)
54
+ #define DMXRootWindowXoffset (1L<<6)
55
+ #define DMXRootWindowYoffset (1L<<7)
56
+ #define DMXRootWindowXorigin (1L<<8)
57
+ #define DMXRootWindowYorigin (1L<<9)
58
+
59
+ #define DMXDesktopWidth (1L<<0)
60
+ #define DMXDesktopHeight (1L<<1)
61
+ #define DMXDesktopShiftX (1L<<2)
62
+ #define DMXDesktopShiftY (1L<<3)
63
+
64
+ #define DMXInputType (1L<<0)
65
+ #define DMXInputPhysicalScreen (1L<<1)
66
+ #define DMXInputSendsCore (1L<<2)
67
+
68
+ #endif
data/miniconda3/include/X11/extensions/dpmsconst.h ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*****************************************************************
2
+
3
+ Copyright (c) 1996 Digital Equipment Corporation, Maynard, Massachusetts.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software.
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
+ DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
18
+ BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
19
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
20
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
22
+ Except as contained in this notice, the name of Digital Equipment Corporation
23
+ shall not be used in advertising or otherwise to promote the sale, use or other
24
+ dealings in this Software without prior written authorization from Digital
25
+ Equipment Corporation.
26
+
27
+ ******************************************************************/
28
+
29
+ #ifndef _DPMSCONST_H
30
+ #define _DPMSCONST_H 1
31
+
32
+ #define DPMSMajorVersion 1
33
+ #define DPMSMinorVersion 2
34
+
35
+ #define DPMSExtensionName "DPMS"
36
+
37
+ #define DPMSModeOn 0
38
+ #define DPMSModeStandby 1
39
+ #define DPMSModeSuspend 2
40
+ #define DPMSModeOff 3
41
+
42
+ #define DPMSInfoNotifyMask (1L << 0)
43
+ #define DPMSInfoNotify 0
44
+
45
+ #endif /* !_DPMSCONST_H */
46
+
data/miniconda3/include/X11/extensions/dpmsproto.h ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*****************************************************************
2
+
3
+ Copyright (c) 1996 Digital Equipment Corporation, Maynard, Massachusetts.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software.
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
+ DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
18
+ BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
19
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
20
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
22
+ Except as contained in this notice, the name of Digital Equipment Corporation
23
+ shall not be used in advertising or otherwise to promote the sale, use or other
24
+ dealings in this Software without prior written authorization from Digital
25
+ Equipment Corporation.
26
+
27
+ ******************************************************************/
28
+
29
+ #ifndef _DPMSPROTO_H_
30
+ #define _DPMSPROTO_H_
31
+
32
+ #include <X11/extensions/dpmsconst.h>
33
+
34
+ #define X_DPMSGetVersion 0
35
+ #define X_DPMSCapable 1
36
+ #define X_DPMSGetTimeouts 2
37
+ #define X_DPMSSetTimeouts 3
38
+ #define X_DPMSEnable 4
39
+ #define X_DPMSDisable 5
40
+ #define X_DPMSForceLevel 6
41
+ #define X_DPMSInfo 7
42
+ #define X_DPMSSelectInput 8
43
+
44
+ #define DPMSNumberEvents 0
45
+
46
+ #define DPMSNumberErrors 0
47
+
48
+
49
+ typedef struct {
50
+ CARD8 reqType; /* always DPMSCode */
51
+ CARD8 dpmsReqType; /* always X_DPMSGetVersion */
52
+ CARD16 length;
53
+ CARD16 majorVersion;
54
+ CARD16 minorVersion;
55
+ } xDPMSGetVersionReq;
56
+ #define sz_xDPMSGetVersionReq 8
57
+
58
+ typedef struct {
59
+ BYTE type; /* X_Reply */
60
+ CARD8 pad0;
61
+ CARD16 sequenceNumber;
62
+ CARD32 length;
63
+ CARD16 majorVersion;
64
+ CARD16 minorVersion;
65
+ CARD32 pad1;
66
+ CARD32 pad2;
67
+ CARD32 pad3;
68
+ CARD32 pad4;
69
+ CARD32 pad5;
70
+ } xDPMSGetVersionReply;
71
+ #define sz_xDPMSGetVersionReply 32
72
+
73
+ typedef struct {
74
+ CARD8 reqType; /* always DPMSCode */
75
+ CARD8 dpmsReqType; /* always X_DPMSCapable */
76
+ CARD16 length;
77
+ } xDPMSCapableReq;
78
+ #define sz_xDPMSCapableReq 4
79
+
80
+ typedef struct {
81
+ BYTE type; /* X_Reply */
82
+ CARD8 pad0;
83
+ CARD16 sequenceNumber;
84
+ CARD32 length;
85
+ BOOL capable;
86
+ CARD8 pad1;
87
+ CARD16 pad2;
88
+ CARD32 pad3;
89
+ CARD32 pad4;
90
+ CARD32 pad5;
91
+ CARD32 pad6;
92
+ CARD32 pad7;
93
+ } xDPMSCapableReply;
94
+ #define sz_xDPMSCapableReply 32
95
+
96
+ typedef struct {
97
+ CARD8 reqType; /* always DPMSCode */
98
+ CARD8 dpmsReqType; /* always X_DPMSGetTimeouts */
99
+ CARD16 length;
100
+ } xDPMSGetTimeoutsReq;
101
+ #define sz_xDPMSGetTimeoutsReq 4
102
+
103
+ typedef struct {
104
+ BYTE type; /* X_Reply */
105
+ CARD8 pad0;
106
+ CARD16 sequenceNumber;
107
+ CARD32 length;
108
+ CARD16 standby;
109
+ CARD16 suspend;
110
+ CARD16 off;
111
+ CARD16 pad1;
112
+ CARD32 pad2;
113
+ CARD32 pad3;
114
+ CARD32 pad4;
115
+ CARD32 pad5;
116
+ } xDPMSGetTimeoutsReply;
117
+ #define sz_xDPMSGetTimeoutsReply 32
118
+
119
+ typedef struct {
120
+ CARD8 reqType; /* always DPMSCode */
121
+ CARD8 dpmsReqType; /* always X_DPMSSetTimeouts */
122
+ CARD16 length;
123
+ CARD16 standby;
124
+ CARD16 suspend;
125
+ CARD16 off;
126
+ CARD16 pad0;
127
+ } xDPMSSetTimeoutsReq;
128
+ #define sz_xDPMSSetTimeoutsReq 12
129
+
130
+ typedef struct {
131
+ CARD8 reqType; /* always DPMSCode */
132
+ CARD8 dpmsReqType; /* always X_DPMSEnable */
133
+ CARD16 length;
134
+ } xDPMSEnableReq;
135
+ #define sz_xDPMSEnableReq 4
136
+
137
+ typedef struct {
138
+ CARD8 reqType; /* always DPMSCode */
139
+ CARD8 dpmsReqType; /* always X_DPMSDisable */
140
+ CARD16 length;
141
+ } xDPMSDisableReq;
142
+ #define sz_xDPMSDisableReq 4
143
+
144
+ typedef struct {
145
+ CARD8 reqType; /* always DPMSCode */
146
+ CARD8 dpmsReqType; /* always X_DPMSForceLevel */
147
+ CARD16 length;
148
+ CARD16 level; /* power level requested */
149
+ CARD16 pad0;
150
+ } xDPMSForceLevelReq;
151
+ #define sz_xDPMSForceLevelReq 8
152
+
153
+ typedef struct {
154
+ CARD8 reqType; /* always DPMSCode */
155
+ CARD8 dpmsReqType; /* always X_DPMSInfo */
156
+ CARD16 length;
157
+ } xDPMSInfoReq;
158
+ #define sz_xDPMSInfoReq 4
159
+
160
+ typedef struct {
161
+ BYTE type; /* X_Reply */
162
+ CARD8 pad0;
163
+ CARD16 sequenceNumber;
164
+ CARD32 length;
165
+ CARD16 power_level;
166
+ BOOL state;
167
+ CARD8 pad1;
168
+ CARD32 pad2;
169
+ CARD32 pad3;
170
+ CARD32 pad4;
171
+ CARD32 pad5;
172
+ CARD32 pad6;
173
+ } xDPMSInfoReply;
174
+ #define sz_xDPMSInfoReply 32
175
+
176
+ typedef struct {
177
+ CARD8 reqType; /* always DPMSCode */
178
+ CARD8 dpmsReqType; /* always X_DPMSSelectInput */
179
+ CARD16 length B16;
180
+ CARD32 eventMask B32;
181
+ } xDPMSSelectInputReq;
182
+ #define sz_xDPMSSelectInputReq 8
183
+
184
+ typedef struct {
185
+ CARD8 type;
186
+ CARD8 extension;
187
+ CARD16 sequenceNumber B16;
188
+ CARD32 length;
189
+ CARD16 evtype B16;
190
+ CARD16 pad0 B16;
191
+ Time timestamp B32;
192
+ CARD16 power_level B16;
193
+ BOOL state;
194
+ CARD8 pad1;
195
+ CARD32 pad2 B32;
196
+ CARD32 pad3 B32;
197
+ CARD32 pad4 B32;
198
+ } xDPMSInfoNotifyEvent;
199
+ #define sz_xDPMSInfoNotifyEvent 32
200
+
201
+ #endif /* _DPMSPROTO_H_ */
data/miniconda3/include/X11/extensions/dri2proto.h ADDED
@@ -0,0 +1,357 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright © 2008 Red Hat, Inc.
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a
5
+ * copy of this software and associated documentation files (the "Soft-
6
+ * ware"), to deal in the Software without restriction, including without
7
+ * limitation the rights to use, copy, modify, merge, publish, distribute,
8
+ * and/or sell copies of the Software, and to permit persons to whom the
9
+ * Software is furnished to do so, provided that the above copyright
10
+ * notice(s) and this permission notice appear in all copies of the Soft-
11
+ * ware and that both the above copyright notice(s) and this permission
12
+ * notice appear in supporting documentation.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16
+ * ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY
17
+ * RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN
18
+ * THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSE-
19
+ * QUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFOR-
22
+ * MANCE OF THIS SOFTWARE.
23
+ *
24
+ * Except as contained in this notice, the name of a copyright holder shall
25
+ * not be used in advertising or otherwise to promote the sale, use or
26
+ * other dealings in this Software without prior written authorization of
27
+ * the copyright holder.
28
+ *
29
+ * Authors:
30
+ * Kristian Høgsberg (krh@redhat.com)
31
+ */
32
+
33
+ #ifndef _DRI2_PROTO_H_
34
+ #define _DRI2_PROTO_H_
35
+
36
+ #define DRI2_NAME "DRI2"
37
+ #define DRI2_MAJOR 1
38
+ #define DRI2_MINOR 4
39
+
40
+ #define DRI2NumberErrors 0
41
+ #define DRI2NumberEvents 2
42
+ #define DRI2NumberRequests 14
43
+
44
+ #define X_DRI2QueryVersion 0
45
+ #define X_DRI2Connect 1
46
+ #define X_DRI2Authenticate 2
47
+ #define X_DRI2CreateDrawable 3
48
+ #define X_DRI2DestroyDrawable 4
49
+ #define X_DRI2GetBuffers 5
50
+ #define X_DRI2CopyRegion 6
51
+ #define X_DRI2GetBuffersWithFormat 7
52
+ #define X_DRI2SwapBuffers 8
53
+ #define X_DRI2GetMSC 9
54
+ #define X_DRI2WaitMSC 10
55
+ #define X_DRI2WaitSBC 11
56
+ #define X_DRI2SwapInterval 12
57
+ #define X_DRI2GetParam 13
58
+
59
+ /*
60
+ * Events
61
+ */
62
+ #define DRI2_BufferSwapComplete 0
63
+ #define DRI2_InvalidateBuffers 1
64
+
65
+ typedef struct {
66
+ CARD32 attachment;
67
+ CARD32 name;
68
+ CARD32 pitch;
69
+ CARD32 cpp;
70
+ CARD32 flags;
71
+ } xDRI2Buffer;
72
+
73
+ typedef struct {
74
+ CARD8 reqType;
75
+ CARD8 dri2ReqType;
76
+ CARD16 length;
77
+ CARD32 majorVersion;
78
+ CARD32 minorVersion;
79
+ } xDRI2QueryVersionReq;
80
+ #define sz_xDRI2QueryVersionReq 12
81
+
82
+ typedef struct {
83
+ BYTE type; /* X_Reply */
84
+ BYTE pad1;
85
+ CARD16 sequenceNumber;
86
+ CARD32 length;
87
+ CARD32 majorVersion;
88
+ CARD32 minorVersion;
89
+ CARD32 pad2;
90
+ CARD32 pad3;
91
+ CARD32 pad4;
92
+ CARD32 pad5;
93
+ } xDRI2QueryVersionReply;
94
+ #define sz_xDRI2QueryVersionReply 32
95
+
96
+ typedef struct {
97
+ CARD8 reqType;
98
+ CARD8 dri2ReqType;
99
+ CARD16 length;
100
+ CARD32 window;
101
+ CARD32 driverType;
102
+ } xDRI2ConnectReq;
103
+ #define sz_xDRI2ConnectReq 12
104
+
105
+ typedef struct {
106
+ BYTE type; /* X_Reply */
107
+ BYTE pad1;
108
+ CARD16 sequenceNumber;
109
+ CARD32 length;
110
+ CARD32 driverNameLength;
111
+ CARD32 deviceNameLength;
112
+ CARD32 pad2;
113
+ CARD32 pad3;
114
+ CARD32 pad4;
115
+ CARD32 pad5;
116
+ } xDRI2ConnectReply;
117
+ #define sz_xDRI2ConnectReply 32
118
+
119
+ typedef struct {
120
+ CARD8 reqType;
121
+ CARD8 dri2ReqType;
122
+ CARD16 length;
123
+ CARD32 window;
124
+ CARD32 magic;
125
+ } xDRI2AuthenticateReq;
126
+ #define sz_xDRI2AuthenticateReq 12
127
+
128
+ typedef struct {
129
+ BYTE type; /* X_Reply */
130
+ BYTE pad1;
131
+ CARD16 sequenceNumber;
132
+ CARD32 length;
133
+ CARD32 authenticated;
134
+ CARD32 pad2;
135
+ CARD32 pad3;
136
+ CARD32 pad4;
137
+ CARD32 pad5;
138
+ CARD32 pad6;
139
+ } xDRI2AuthenticateReply;
140
+ #define sz_xDRI2AuthenticateReply 32
141
+
142
+ typedef struct {
143
+ CARD8 reqType;
144
+ CARD8 dri2ReqType;
145
+ CARD16 length;
146
+ CARD32 drawable;
147
+ } xDRI2CreateDrawableReq;
148
+ #define sz_xDRI2CreateDrawableReq 8
149
+
150
+ typedef struct {
151
+ CARD8 reqType;
152
+ CARD8 dri2ReqType;
153
+ CARD16 length;
154
+ CARD32 drawable;
155
+ } xDRI2DestroyDrawableReq;
156
+ #define sz_xDRI2DestroyDrawableReq 8
157
+
158
+ typedef struct {
159
+ CARD8 reqType;
160
+ CARD8 dri2ReqType;
161
+ CARD16 length;
162
+ CARD32 drawable;
163
+ CARD32 count;
164
+ } xDRI2GetBuffersReq;
165
+ #define sz_xDRI2GetBuffersReq 12
166
+
167
+ typedef struct {
168
+ BYTE type; /* X_Reply */
169
+ BYTE pad1;
170
+ CARD16 sequenceNumber;
171
+ CARD32 length;
172
+ CARD32 width;
173
+ CARD32 height;
174
+ CARD32 count;
175
+ CARD32 pad2;
176
+ CARD32 pad3;
177
+ CARD32 pad4;
178
+ } xDRI2GetBuffersReply;
179
+ #define sz_xDRI2GetBuffersReply 32
180
+
181
+ typedef struct {
182
+ CARD8 reqType;
183
+ CARD8 dri2ReqType;
184
+ CARD16 length;
185
+ CARD32 drawable;
186
+ CARD32 region;
187
+ CARD32 dest;
188
+ CARD32 src;
189
+ } xDRI2CopyRegionReq;
190
+ #define sz_xDRI2CopyRegionReq 20
191
+
192
+ typedef struct {
193
+ BYTE type; /* X_Reply */
194
+ BYTE pad1;
195
+ CARD16 sequenceNumber;
196
+ CARD32 length;
197
+ CARD32 pad2;
198
+ CARD32 pad3;
199
+ CARD32 pad4;
200
+ CARD32 pad5;
201
+ CARD32 pad6;
202
+ CARD32 pad7;
203
+ } xDRI2CopyRegionReply;
204
+ #define sz_xDRI2CopyRegionReply 32
205
+
206
+ typedef struct {
207
+ CARD8 reqType;
208
+ CARD8 dri2ReqType;
209
+ CARD16 length;
210
+ CARD32 drawable;
211
+ CARD32 target_msc_hi;
212
+ CARD32 target_msc_lo;
213
+ CARD32 divisor_hi;
214
+ CARD32 divisor_lo;
215
+ CARD32 remainder_hi;
216
+ CARD32 remainder_lo;
217
+ } xDRI2SwapBuffersReq;
218
+ #define sz_xDRI2SwapBuffersReq 32
219
+
220
+ typedef struct {
221
+ BYTE type; /* X_Reply */
222
+ BYTE pad1;
223
+ CARD16 sequenceNumber;
224
+ CARD32 length;
225
+ CARD32 swap_hi;
226
+ CARD32 swap_lo;
227
+ CARD32 pad2;
228
+ CARD32 pad3;
229
+ CARD32 pad4;
230
+ CARD32 pad5;
231
+ } xDRI2SwapBuffersReply;
232
+ #define sz_xDRI2SwapBuffersReply 32
233
+
234
+ typedef struct {
235
+ CARD8 reqType;
236
+ CARD8 dri2ReqType;
237
+ CARD16 length;
238
+ CARD32 drawable;
239
+ } xDRI2GetMSCReq;
240
+ #define sz_xDRI2GetMSCReq 8
241
+
242
+ typedef struct {
243
+ CARD8 reqType;
244
+ CARD8 dri2ReqType;
245
+ CARD16 length;
246
+ CARD32 drawable;
247
+ CARD32 target_msc_hi;
248
+ CARD32 target_msc_lo;
249
+ CARD32 divisor_hi;
250
+ CARD32 divisor_lo;
251
+ CARD32 remainder_hi;
252
+ CARD32 remainder_lo;
253
+ } xDRI2WaitMSCReq;
254
+ #define sz_xDRI2WaitMSCReq 32
255
+
256
+ typedef struct {
257
+ CARD8 reqType;
258
+ CARD8 dri2ReqType;
259
+ CARD16 length;
260
+ CARD32 drawable;
261
+ CARD32 target_sbc_hi;
262
+ CARD32 target_sbc_lo;
263
+ } xDRI2WaitSBCReq;
264
+ #define sz_xDRI2WaitSBCReq 16
265
+
266
+ typedef struct {
267
+ CARD8 type;
268
+ CARD8 pad1;
269
+ CARD16 sequenceNumber;
270
+ CARD32 length;
271
+ CARD32 ust_hi;
272
+ CARD32 ust_lo;
273
+ CARD32 msc_hi;
274
+ CARD32 msc_lo;
275
+ CARD32 sbc_hi;
276
+ CARD32 sbc_lo;
277
+ } xDRI2MSCReply;
278
+ #define sz_xDRI2MSCReply 32
279
+
280
+ typedef struct {
281
+ CARD8 reqType;
282
+ CARD8 dri2ReqType;
283
+ CARD16 length;
284
+ CARD32 drawable;
285
+ CARD32 interval;
286
+ } xDRI2SwapIntervalReq;
287
+ #define sz_xDRI2SwapIntervalReq 12
288
+
289
+ typedef struct {
290
+ CARD8 type;
291
+ CARD8 pad;
292
+ CARD16 sequenceNumber;
293
+ CARD16 event_type;
294
+ CARD16 pad2;
295
+ CARD32 drawable;
296
+ CARD32 ust_hi;
297
+ CARD32 ust_lo;
298
+ CARD32 msc_hi;
299
+ CARD32 msc_lo;
300
+ CARD32 sbc_hi;
301
+ CARD32 sbc_lo;
302
+ } xDRI2BufferSwapComplete;
303
+ #define sz_xDRI2BufferSwapComplete 32
304
+
305
+ typedef struct {
306
+ CARD8 type;
307
+ CARD8 pad;
308
+ CARD16 sequenceNumber;
309
+ CARD16 event_type;
310
+ CARD16 pad2;
311
+ CARD32 drawable;
312
+ CARD32 ust_hi;
313
+ CARD32 ust_lo;
314
+ CARD32 msc_hi;
315
+ CARD32 msc_lo;
316
+ CARD32 sbc;
317
+ } xDRI2BufferSwapComplete2;
318
+ #define sz_xDRI2BufferSwapComplete2 32
319
+
320
+ typedef struct {
321
+ CARD8 type;
322
+ CARD8 pad;
323
+ CARD16 sequenceNumber;
324
+ CARD32 drawable;
325
+ CARD32 pad1;
326
+ CARD32 pad2;
327
+ CARD32 pad3;
328
+ CARD32 pad4;
329
+ CARD32 pad5;
330
+ CARD32 pad6;
331
+ } xDRI2InvalidateBuffers;
332
+ #define sz_xDRI2InvalidateBuffers 32
333
+
334
+ typedef struct {
335
+ CARD8 reqType;
336
+ CARD8 dri2ReqType;
337
+ CARD16 length;
338
+ CARD32 drawable;
339
+ CARD32 param;
340
+ } xDRI2GetParamReq;
341
+ #define sz_xDRI2GetParamReq 12
342
+
343
+ typedef struct {
344
+ BYTE type; /*X_Reply*/
345
+ BOOL is_param_recognized;
346
+ CARD16 sequenceNumber;
347
+ CARD32 length;
348
+ CARD32 value_hi;
349
+ CARD32 value_lo;
350
+ CARD32 pad1;
351
+ CARD32 pad2;
352
+ CARD32 pad3;
353
+ CARD32 pad4;
354
+ } xDRI2GetParamReply;
355
+ #define sz_xDRI2GetParamReply 32
356
+
357
+ #endif
data/miniconda3/include/X11/extensions/geproto.h ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright © 2007-2008 Peter Hutterer
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 (including the next
12
+ * paragraph) shall be included in all copies or substantial portions of the
13
+ * 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
18
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ * DEALINGS IN THE SOFTWARE.
22
+ *
23
+ * Authors: Peter Hutterer, University of South Australia, NICTA
24
+ *
25
+ */
26
+
27
+ #ifndef _GEPROTO_H_
28
+ #define _GEPROTO_H_
29
+
30
+ #include<X11/Xproto.h>
31
+ #include<X11/X.h>
32
+ #include<X11/extensions/ge.h>
33
+
34
+
35
+ /*********************************************************
36
+ *
37
+ * Protocol request constants
38
+ *
39
+ */
40
+
41
+ #define X_GEGetExtensionVersion 1
42
+
43
+ /*********************************************************
44
+ *
45
+ * XGE protocol requests/replies
46
+ *
47
+ */
48
+
49
+ /* generic request */
50
+ typedef struct {
51
+ CARD8 reqType;
52
+ CARD8 ReqType;
53
+ CARD16 length;
54
+ } xGEReq;
55
+
56
+
57
+ /* QueryVersion */
58
+ typedef struct {
59
+ CARD8 reqType; /* input extension major code */
60
+ CARD8 ReqType; /* always X_GEQueryVersion */
61
+ CARD16 length;
62
+ CARD16 majorVersion;
63
+ CARD16 minorVersion;
64
+ } xGEQueryVersionReq;
65
+
66
+ #define sz_xGEQueryVersionReq 8
67
+
68
+ typedef struct {
69
+ CARD8 repType; /* X_Reply */
70
+ CARD8 RepType; /* always X_GEQueryVersion */
71
+ CARD16 sequenceNumber;
72
+ CARD32 length;
73
+ CARD16 majorVersion;
74
+ CARD16 minorVersion;
75
+ CARD32 pad00;
76
+ CARD32 pad01;
77
+ CARD32 pad02;
78
+ CARD32 pad03;
79
+ CARD32 pad04;
80
+ } xGEQueryVersionReply;
81
+
82
+ #define sz_xGEQueryVersionReply 32
83
+
84
+ #endif /* _GEPROTO_H_ */
85
+
data/miniconda3/include/X11/extensions/lbx.h ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright 1992 Network Computing Devices
3
+ *
4
+ * Permission to use, copy, modify, distribute, and sell this software and its
5
+ * documentation for any purpose is hereby granted without fee, provided that
6
+ * the above copyright notice appear in all copies and that both that
7
+ * copyright notice and this permission notice appear in supporting
8
+ * documentation, and that the name of NCD. not be used in advertising or
9
+ * publicity pertaining to distribution of the software without specific,
10
+ * written prior permission. NCD. makes no representations about the
11
+ * suitability of this software for any purpose. It is provided "as is"
12
+ * without express or implied warranty.
13
+ *
14
+ * NCD. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
15
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NCD.
16
+ * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
18
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
19
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20
+ *
21
+ */
22
+
23
+ #ifndef _LBX_H_
24
+ #define _LBX_H_
25
+
26
+ #define LBXNAME "LBX"
27
+
28
+ #define LBX_MAJOR_VERSION 1
29
+ #define LBX_MINOR_VERSION 0
30
+
31
+ #define LbxNumberReqs 44
32
+ #define LbxEvent 0
33
+ #define LbxQuickMotionDeltaEvent 1
34
+ #define LbxNumberEvents 2
35
+
36
+ /* This is always the master client */
37
+ #define LbxMasterClientIndex 0
38
+
39
+ /* LbxEvent lbxType sub-fields */
40
+ #define LbxSwitchEvent 0
41
+ #define LbxCloseEvent 1
42
+ #define LbxDeltaEvent 2
43
+ #define LbxInvalidateTagEvent 3
44
+ #define LbxSendTagDataEvent 4
45
+ #define LbxListenToOne 5
46
+ #define LbxListenToAll 6
47
+ #define LbxMotionDeltaEvent 7
48
+ #define LbxReleaseCmapEvent 8
49
+ #define LbxFreeCellsEvent 9
50
+
51
+ /*
52
+ * Lbx image compression methods
53
+ *
54
+ * No compression is always assigned the value of 0.
55
+ *
56
+ * The rest of the compression method opcodes are assigned dynamically
57
+ * at option negotiation time.
58
+ */
59
+
60
+ #define LbxImageCompressNone 0
61
+
62
+
63
+ #define BadLbxClient 0
64
+ #define LbxNumberErrors (BadLbxClient + 1)
65
+
66
+ /* tagged data types */
67
+ #define LbxTagTypeModmap 1
68
+ #define LbxTagTypeKeymap 2
69
+ #define LbxTagTypeProperty 3
70
+ #define LbxTagTypeFont 4
71
+ #define LbxTagTypeConnInfo 5
72
+
73
+ #endif
data/miniconda3/include/X11/extensions/lbxproto.h ADDED
@@ -0,0 +1,975 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright 1992 Network Computing Devices
3
+ *
4
+ * Permission to use, copy, modify, distribute, and sell this software and its
5
+ * documentation for any purpose is hereby granted without fee, provided that
6
+ * the above copyright notice appear in all copies and that both that
7
+ * copyright notice and this permission notice appear in supporting
8
+ * documentation, and that the name of NCD. not be used in advertising or
9
+ * publicity pertaining to distribution of the software without specific,
10
+ * written prior permission. NCD. makes no representations about the
11
+ * suitability of this software for any purpose. It is provided "as is"
12
+ * without express or implied warranty.
13
+ *
14
+ * NCD. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
15
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NCD.
16
+ * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
18
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
19
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20
+ *
21
+ */
22
+
23
+ #ifndef _LBXPROTO_H_
24
+ #define _LBXPROTO_H_
25
+
26
+ #include <X11/extensions/lbx.h>
27
+ /*
28
+ * NOTE: any changes or additions to the opcodes needs to be reflected
29
+ * in the lbxCacheable array in Xserver/lbx/lbxmain.c
30
+ */
31
+
32
+ #define X_LbxQueryVersion 0
33
+ #define X_LbxStartProxy 1
34
+ #define X_LbxStopProxy 2
35
+ #define X_LbxSwitch 3
36
+ #define X_LbxNewClient 4
37
+ #define X_LbxCloseClient 5
38
+ #define X_LbxModifySequence 6
39
+ #define X_LbxAllowMotion 7
40
+ #define X_LbxIncrementPixel 8
41
+ #define X_LbxDelta 9
42
+ #define X_LbxGetModifierMapping 10
43
+ #define X_LbxInvalidateTag 12
44
+ #define X_LbxPolyPoint 13
45
+ #define X_LbxPolyLine 14
46
+ #define X_LbxPolySegment 15
47
+ #define X_LbxPolyRectangle 16
48
+ #define X_LbxPolyArc 17
49
+ #define X_LbxFillPoly 18
50
+ #define X_LbxPolyFillRectangle 19
51
+ #define X_LbxPolyFillArc 20
52
+ #define X_LbxGetKeyboardMapping 21
53
+ #define X_LbxQueryFont 22
54
+ #define X_LbxChangeProperty 23
55
+ #define X_LbxGetProperty 24
56
+ #define X_LbxTagData 25
57
+
58
+ #define X_LbxCopyArea 26
59
+ #define X_LbxCopyPlane 27
60
+ #define X_LbxPolyText8 28
61
+ #define X_LbxPolyText16 29
62
+ #define X_LbxImageText8 30
63
+ #define X_LbxImageText16 31
64
+
65
+ #define X_LbxQueryExtension 32
66
+ #define X_LbxPutImage 33
67
+ #define X_LbxGetImage 34
68
+
69
+ #define X_LbxBeginLargeRequest 35
70
+ #define X_LbxLargeRequestData 36
71
+ #define X_LbxEndLargeRequest 37
72
+
73
+ #define X_LbxInternAtoms 38
74
+ #define X_LbxGetWinAttrAndGeom 39
75
+
76
+ #define X_LbxGrabCmap 40
77
+ #define X_LbxReleaseCmap 41
78
+ #define X_LbxAllocColor 42
79
+
80
+ #define X_LbxSync 43
81
+
82
+ /*
83
+ * Redefine some basic types used by structures defined herein. This removes
84
+ * any possibility on 64-bit architectures of one entity viewing communicated
85
+ * data as 32-bit quantities and another entity viewing the same data as 64-bit
86
+ * quantities.
87
+ */
88
+ #define XID CARD32
89
+ #define Atom CARD32
90
+ #define Colormap CARD32
91
+ #define Drawable CARD32
92
+ #define VisualID CARD32
93
+ #define Window CARD32
94
+
95
+ typedef struct {
96
+ BOOL success; /* TRUE */
97
+ BOOL changeType;
98
+ CARD16 majorVersion,
99
+ minorVersion;
100
+ CARD16 length; /* 1/4 additional bytes in setup info */
101
+ CARD32 tag;
102
+ } xLbxConnSetupPrefix;
103
+
104
+ typedef struct _LbxQueryVersion {
105
+ CARD8 reqType; /* always LbxReqCode */
106
+ CARD8 lbxReqType; /* always X_LbxQueryVersion */
107
+ CARD16 length;
108
+ } xLbxQueryVersionReq;
109
+ #define sz_xLbxQueryVersionReq 4
110
+
111
+ typedef struct {
112
+ BYTE type; /* X_Reply */
113
+ CARD8 unused;
114
+ CARD16 sequenceNumber;
115
+ CARD32 length;
116
+ CARD16 majorVersion; /* major version of LBX protocol */
117
+ CARD16 minorVersion; /* minor version of LBX protocol */
118
+ CARD32 pad0;
119
+ CARD32 pad1;
120
+ CARD32 pad2;
121
+ CARD32 pad3;
122
+ CARD32 pad4;
123
+ } xLbxQueryVersionReply;
124
+ #define sz_xLbxQueryVersionReply 32
125
+
126
+ typedef struct _LbxStartProxy {
127
+ CARD8 reqType; /* always LbxReqCode */
128
+ CARD8 lbxReqType; /* always X_LbxStartProxy */
129
+ CARD16 length;
130
+ } xLbxStartProxyReq;
131
+ #define sz_xLbxStartProxyReq 4
132
+
133
+ typedef struct _LbxStopProxy {
134
+ CARD8 reqType; /* always LbxReqCode */
135
+ CARD8 lbxReqType; /* always X_LbxStopProxy */
136
+ CARD16 length;
137
+ } xLbxStopProxyReq;
138
+ #define sz_xLbxStopProxyReq 4
139
+
140
+ typedef struct _LbxSwitch {
141
+ CARD8 reqType; /* always LbxReqCode */
142
+ CARD8 lbxReqType; /* always X_LbxSwitch */
143
+ CARD16 length;
144
+ CARD32 client; /* new client */
145
+ } xLbxSwitchReq;
146
+ #define sz_xLbxSwitchReq 8
147
+
148
+ typedef struct _LbxNewClient {
149
+ CARD8 reqType; /* always LbxReqCode */
150
+ CARD8 lbxReqType; /* always X_LbxNewClient */
151
+ CARD16 length;
152
+ CARD32 client; /* new client */
153
+ } xLbxNewClientReq;
154
+ #define sz_xLbxNewClientReq 8
155
+
156
+ typedef struct _LbxCloseClient {
157
+ CARD8 reqType; /* always LbxReqCode */
158
+ CARD8 lbxReqType; /* always X_LbxCloseClient */
159
+ CARD16 length;
160
+ CARD32 client; /* new client */
161
+ } xLbxCloseClientReq;
162
+ #define sz_xLbxCloseClientReq 8
163
+
164
+ typedef struct _LbxModifySequence {
165
+ CARD8 reqType; /* always LbxReqCode */
166
+ CARD8 lbxReqType; /* always X_LbxModifySequence */
167
+ CARD16 length;
168
+ CARD32 adjust;
169
+ } xLbxModifySequenceReq;
170
+ #define sz_xLbxModifySequenceReq 8
171
+
172
+ typedef struct _LbxAllowMotion {
173
+ CARD8 reqType; /* always LbxReqCode */
174
+ CARD8 lbxReqType; /* always X_LbxAllowMotion */
175
+ CARD16 length;
176
+ CARD32 num;
177
+ } xLbxAllowMotionReq;
178
+ #define sz_xLbxAllowMotionReq 8
179
+
180
+ typedef struct {
181
+ CARD8 reqType; /* always LbxReqCode */
182
+ CARD8 lbxReqType; /* always X_LbxGrabCmap */
183
+ CARD16 length;
184
+ Colormap cmap;
185
+ } xLbxGrabCmapReq;
186
+ #define sz_xLbxGrabCmapReq 8
187
+
188
+ #define LBX_SMART_GRAB 0x80
189
+ #define LBX_AUTO_RELEASE 0x40
190
+ #define LBX_3CHANNELS 0x20
191
+ #define LBX_2BYTE_PIXELS 0x10
192
+ #define LBX_RGB_BITS_MASK 0x0f
193
+
194
+ #define LBX_LIST_END 0
195
+ #define LBX_PIXEL_PRIVATE 1
196
+ #define LBX_PIXEL_SHARED 2
197
+ #define LBX_PIXEL_RANGE_PRIVATE 3
198
+ #define LBX_PIXEL_RANGE_SHARED 4
199
+ #define LBX_NEXT_CHANNEL 5
200
+
201
+ typedef struct {
202
+ BYTE type; /* X_Reply */
203
+ CARD8 flags;
204
+ CARD16 sequenceNumber;
205
+ CARD32 length;
206
+ CARD32 pad0;
207
+ CARD32 pad1;
208
+ CARD32 pad2;
209
+ CARD32 pad3;
210
+ CARD32 pad4;
211
+ CARD32 pad5;
212
+ } xLbxGrabCmapReply;
213
+ #define sz_xLbxGrabCmapReply 32
214
+ #define sz_xLbxGrabCmapReplyHdr 8
215
+
216
+
217
+ typedef struct {
218
+ CARD8 reqType; /* always LbxReqCode */
219
+ CARD8 lbxReqType; /* always X_LbxReleaseCmap */
220
+ CARD16 length;
221
+ Colormap cmap;
222
+ } xLbxReleaseCmapReq;
223
+ #define sz_xLbxReleaseCmapReq 8
224
+
225
+ typedef struct {
226
+ CARD8 reqType; /* always LbxReqCode */
227
+ CARD8 lbxReqType; /* always X_LbxAllocColor */
228
+ CARD16 length;
229
+ Colormap cmap;
230
+ CARD32 pixel;
231
+ CARD16 red, green, blue;
232
+ CARD16 pad;
233
+ } xLbxAllocColorReq;
234
+ #define sz_xLbxAllocColorReq 20
235
+
236
+ typedef struct _LbxIncrementPixel {
237
+ CARD8 reqType; /* always LbxReqCode */
238
+ CARD8 lbxReqType; /* always X_LbxIncrementPixel */
239
+ CARD16 length;
240
+ CARD32 cmap;
241
+ CARD32 pixel;
242
+ } xLbxIncrementPixelReq;
243
+ #define sz_xLbxIncrementPixelReq 12
244
+
245
+ typedef struct _LbxDelta {
246
+ CARD8 reqType; /* always LbxReqCode */
247
+ CARD8 lbxReqType; /* always X_LbxDelta */
248
+ CARD16 length;
249
+ CARD8 diffs; /* number of diffs */
250
+ CARD8 cindex; /* cache index */
251
+ /* list of diffs follows */
252
+ } xLbxDeltaReq;
253
+ #define sz_xLbxDeltaReq 6
254
+
255
+ typedef struct _LbxGetModifierMapping {
256
+ CARD8 reqType; /* always LbxReqCode */
257
+ CARD8 lbxReqType; /* always X_LbxGetModifierMapping */
258
+ CARD16 length;
259
+ } xLbxGetModifierMappingReq;
260
+ #define sz_xLbxGetModifierMappingReq 4
261
+
262
+ typedef struct {
263
+ BYTE type; /* X_Reply */
264
+ CARD8 keyspermod;
265
+ CARD16 sequenceNumber;
266
+ CARD32 length;
267
+ CARD32 tag;
268
+ CARD32 pad0;
269
+ CARD32 pad1;
270
+ CARD32 pad2;
271
+ CARD32 pad3;
272
+ CARD32 pad4;
273
+ } xLbxGetModifierMappingReply;
274
+ #define sz_xLbxGetModifierMappingReply 32
275
+
276
+ typedef struct _LbxGetKeyboardMapping {
277
+ CARD8 reqType; /* always LbxReqCode */
278
+ CARD8 lbxReqType; /* always X_LbxGetKeyboardMapping */
279
+ CARD16 length;
280
+ KeyCode firstKeyCode;
281
+ CARD8 count;
282
+ CARD16 pad1;
283
+ } xLbxGetKeyboardMappingReq;
284
+ #define sz_xLbxGetKeyboardMappingReq 8
285
+
286
+ typedef struct {
287
+ BYTE type; /* X_Reply */
288
+ CARD8 keysperkeycode;
289
+ CARD16 sequenceNumber;
290
+ CARD32 length;
291
+ CARD32 tag;
292
+ CARD32 pad0;
293
+ CARD32 pad1;
294
+ CARD32 pad2;
295
+ CARD32 pad3;
296
+ CARD32 pad4;
297
+ } xLbxGetKeyboardMappingReply;
298
+ #define sz_xLbxGetKeyboardMappingReply 32
299
+
300
+ typedef struct _LbxQueryFont {
301
+ CARD8 reqType; /* always LbxReqCode */
302
+ CARD8 lbxReqType; /* always X_LbxQueryFont */
303
+ CARD16 length;
304
+ CARD32 fid;
305
+ } xLbxQueryFontReq;
306
+ #define sz_xLbxQueryFontReq 8
307
+
308
+ typedef struct _LbxInternAtoms {
309
+ CARD8 reqType; /* always LbxReqCode */
310
+ CARD8 lbxReqType; /* always X_LbxInternAtoms */
311
+ CARD16 length;
312
+ CARD16 num;
313
+ } xLbxInternAtomsReq;
314
+ #define sz_xLbxInternAtomsReq 6
315
+
316
+ typedef struct {
317
+ BYTE type; /* X_Reply */
318
+ CARD8 unused;
319
+ CARD16 sequenceNumber;
320
+ CARD32 length;
321
+ CARD32 atomsStart;
322
+ CARD32 pad0;
323
+ CARD32 pad1;
324
+ CARD32 pad2;
325
+ CARD32 pad3;
326
+ CARD32 pad4;
327
+ } xLbxInternAtomsReply;
328
+ #define sz_xLbxInternAtomsReply 32
329
+ #define sz_xLbxInternAtomsReplyHdr 8
330
+
331
+
332
+ typedef struct _LbxGetWinAttrAndGeom {
333
+ CARD8 reqType; /* always LbxReqCode */
334
+ CARD8 lbxReqType; /* always X_LbxGetWinAttrAndGeom */
335
+ CARD16 length;
336
+ CARD32 id; /* window id */
337
+ } xLbxGetWinAttrAndGeomReq;
338
+ #define sz_xLbxGetWinAttrAndGeomReq 8
339
+
340
+ typedef struct {
341
+ BYTE type; /* X_Reply */
342
+ CARD8 backingStore;
343
+ CARD16 sequenceNumber;
344
+ CARD32 length; /* NOT 0; this is an extra-large reply */
345
+ VisualID visualID;
346
+ #if defined(__cplusplus) || defined(c_plusplus)
347
+ CARD16 c_class;
348
+ #else
349
+ CARD16 class;
350
+ #endif
351
+ CARD8 bitGravity;
352
+ CARD8 winGravity;
353
+ CARD32 backingBitPlanes;
354
+ CARD32 backingPixel;
355
+ BOOL saveUnder;
356
+ BOOL mapInstalled;
357
+ CARD8 mapState;
358
+ BOOL override;
359
+ Colormap colormap;
360
+ CARD32 allEventMasks;
361
+ CARD32 yourEventMask;
362
+ CARD16 doNotPropagateMask;
363
+ CARD16 pad1;
364
+ Window root;
365
+ INT16 x, y;
366
+ CARD16 width, height;
367
+ CARD16 borderWidth;
368
+ CARD8 depth;
369
+ CARD8 pad2;
370
+ } xLbxGetWinAttrAndGeomReply;
371
+ #define sz_xLbxGetWinAttrAndGeomReply 60
372
+
373
+
374
+ typedef struct {
375
+ CARD8 reqType; /* always LbxReqCode */
376
+ CARD8 lbxReqType; /* always X_LbxSync */
377
+ CARD16 length;
378
+ } xLbxSyncReq;
379
+ #define sz_xLbxSyncReq 4
380
+
381
+ typedef struct {
382
+ BYTE type; /* X_Reply */
383
+ CARD8 pad0;
384
+ CARD16 sequenceNumber;
385
+ CARD32 length;
386
+ CARD32 pad1;
387
+ CARD32 pad2;
388
+ CARD32 pad3;
389
+ CARD32 pad4;
390
+ CARD32 pad5;
391
+ CARD32 pad6;
392
+ } xLbxSyncReply;
393
+ #define sz_xLbxSyncReply 32
394
+
395
+
396
+ /* an LBX squished charinfo packs the data in a CARD32 as follows */
397
+ #define LBX_WIDTH_SHIFT 26
398
+ #define LBX_LEFT_SHIFT 20
399
+ #define LBX_RIGHT_SHIFT 13
400
+ #define LBX_ASCENT_SHIFT 7
401
+ #define LBX_DESCENT_SHIFT 0
402
+
403
+ #define LBX_WIDTH_BITS 6
404
+ #define LBX_LEFT_BITS 6
405
+ #define LBX_RIGHT_BITS 7
406
+ #define LBX_ASCENT_BITS 6
407
+ #define LBX_DESCENT_BITS 7
408
+
409
+ #define LBX_WIDTH_MASK 0xfc000000
410
+ #define LBX_LEFT_MASK 0x03f00000
411
+ #define LBX_RIGHT_MASK 0x000fe000
412
+ #define LBX_ASCENT_MASK 0x00001f80
413
+ #define LBX_DESCENT_MASK 0x0000007f
414
+
415
+ #define LBX_MASK_BITS(val, n) ((unsigned int) ((val) & ((1 << (n)) - 1)))
416
+
417
+ typedef struct {
418
+ CARD32 metrics;
419
+ } xLbxCharInfo;
420
+
421
+ /* note that this is identical to xQueryFontReply except for missing
422
+ * first 2 words
423
+ */
424
+ typedef struct {
425
+ xCharInfo minBounds;
426
+ /* XXX do we need to leave this gunk? */
427
+ #ifndef WORD64
428
+ CARD32 walign1;
429
+ #endif
430
+ xCharInfo maxBounds;
431
+ #ifndef WORD64
432
+ CARD32 walign2;
433
+ #endif
434
+ CARD16 minCharOrByte2, maxCharOrByte2;
435
+ CARD16 defaultChar;
436
+ CARD16 nFontProps; /* followed by this many xFontProp structures */
437
+ CARD8 drawDirection;
438
+ CARD8 minByte1, maxByte1;
439
+ BOOL allCharsExist;
440
+ INT16 fontAscent, fontDescent;
441
+ CARD32 nCharInfos; /* followed by this many xLbxCharInfo structures */
442
+ } xLbxFontInfo;
443
+
444
+ typedef struct {
445
+ BYTE type; /* X_Reply */
446
+ CARD8 compression;
447
+ CARD16 sequenceNumber;
448
+ CARD32 length;
449
+ CARD32 tag;
450
+ CARD32 pad0;
451
+ CARD32 pad1;
452
+ CARD32 pad2;
453
+ CARD32 pad3;
454
+ CARD32 pad4;
455
+ /* X_QueryFont sticks much of the data in the base reply packet,
456
+ * but we hope that it won't be needed, (and it won't fit in 32 bytes
457
+ * with the tag anyways)
458
+ *
459
+ * if any additional data is needed, its sent in a xLbxFontInfo
460
+ */
461
+ } xLbxQueryFontReply;
462
+ #define sz_xLbxQueryFontReply 32
463
+
464
+ typedef struct _LbxChangeProperty {
465
+ CARD8 reqType; /* always LbxReqCode */
466
+ CARD8 lbxReqType; /* always X_LbxChangeProperty */
467
+ CARD16 length;
468
+ Window window;
469
+ Atom property;
470
+ Atom type;
471
+ CARD8 format;
472
+ CARD8 mode;
473
+ BYTE pad[2];
474
+ CARD32 nUnits;
475
+ } xLbxChangePropertyReq;
476
+ #define sz_xLbxChangePropertyReq 24
477
+
478
+ typedef struct {
479
+ BYTE type; /* X_Reply */
480
+ CARD8 pad;
481
+ CARD16 sequenceNumber;
482
+ CARD32 length;
483
+ CARD32 tag;
484
+ CARD32 pad0;
485
+ CARD32 pad1;
486
+ CARD32 pad2;
487
+ CARD32 pad3;
488
+ CARD32 pad4;
489
+ } xLbxChangePropertyReply;
490
+ #define sz_xLbxChangePropertyReply 32
491
+
492
+ typedef struct _LbxGetProperty {
493
+ CARD8 reqType; /* always LbxReqCode */
494
+ CARD8 lbxReqType; /* always X_LbxGetProperty */
495
+ CARD16 length;
496
+ Window window;
497
+ Atom property;
498
+ Atom type;
499
+ CARD8 delete;
500
+ BYTE pad[3];
501
+ CARD32 longOffset;
502
+ CARD32 longLength;
503
+ } xLbxGetPropertyReq;
504
+ #define sz_xLbxGetPropertyReq 28
505
+
506
+ typedef struct {
507
+ BYTE type; /* X_Reply */
508
+ CARD8 format;
509
+ CARD16 sequenceNumber;
510
+ CARD32 length;
511
+ Atom propertyType;
512
+ CARD32 bytesAfter;
513
+ CARD32 nItems;
514
+ CARD32 tag;
515
+ CARD32 pad1;
516
+ CARD32 pad2;
517
+ } xLbxGetPropertyReply;
518
+ #define sz_xLbxGetPropertyReply 32
519
+
520
+ typedef struct _LbxTagData {
521
+ CARD8 reqType; /* always LbxReqCode */
522
+ CARD8 lbxReqType; /* always X_LbxTagData */
523
+ CARD16 length;
524
+ XID tag;
525
+ CARD32 real_length;
526
+ /* data */
527
+ } xLbxTagDataReq;
528
+ #define sz_xLbxTagDataReq 12
529
+
530
+ typedef struct _LbxInvalidateTag {
531
+ CARD8 reqType; /* always LbxReqCode */
532
+ CARD8 lbxReqType; /* always X_LbxInvalidateTag */
533
+ CARD16 length;
534
+ CARD32 tag;
535
+ } xLbxInvalidateTagReq;
536
+ #define sz_xLbxInvalidateTagReq 8
537
+
538
+ typedef struct _LbxPutImage {
539
+ CARD8 reqType; /* always LbxReqCode */
540
+ CARD8 lbxReqType; /* always X_LbxPutImage */
541
+ CARD16 length;
542
+ CARD8 compressionMethod;
543
+ CARD8 cacheEnts;
544
+ CARD8 bitPacked;
545
+ /* rest is variable */
546
+ } xLbxPutImageReq;
547
+ #define sz_xLbxPutImageReq 7
548
+
549
+ typedef struct {
550
+ CARD8 reqType; /* always LbxReqCode */
551
+ CARD8 lbxReqType; /* always X_LbxGetImage */
552
+ CARD16 length;
553
+ Drawable drawable;
554
+ INT16 x, y;
555
+ CARD16 width, height;
556
+ CARD32 planeMask;
557
+ CARD8 format;
558
+ CARD8 pad1;
559
+ CARD16 pad2;
560
+ } xLbxGetImageReq;
561
+
562
+ #define sz_xLbxGetImageReq 24
563
+
564
+ typedef struct {
565
+ BYTE type; /* X_Reply */
566
+ CARD8 depth;
567
+ CARD16 sequenceNumber;
568
+ CARD32 lbxLength;
569
+ CARD32 xLength;
570
+ VisualID visual;
571
+ CARD8 compressionMethod;
572
+ CARD8 pad1;
573
+ CARD16 pad2;
574
+ CARD32 pad3;
575
+ CARD32 pad4;
576
+ CARD32 pad5;
577
+ } xLbxGetImageReply;
578
+
579
+ #define sz_xLbxGetImageReply 32
580
+
581
+ /* Following used for LbxPolyPoint, LbxPolyLine, LbxPolySegment,
582
+ LbxPolyRectangle, LbxPolyArc, LbxPolyFillRectangle and LbxPolyFillArc */
583
+
584
+ #define GFX_CACHE_SIZE 15
585
+
586
+ #define GFXdCacheEnt(e) ((e) & 0xf)
587
+ #define GFXgCacheEnt(e) (((e) >> 4) & 0xf)
588
+ #define GFXCacheEnts(d,g) (((d) & 0xf) | (((g) & 0xf) << 4))
589
+
590
+ #define GFXCacheNone 0xf
591
+
592
+ typedef struct _LbxPolyPoint {
593
+ CARD8 reqType; /* always LbxReqCode */
594
+ CARD8 lbxReqType;
595
+ CARD16 length;
596
+ CARD8 cacheEnts;
597
+ CARD8 padBytes;
598
+ } xLbxPolyPointReq;
599
+
600
+ #define sz_xLbxPolyPointReq 6
601
+
602
+ typedef xLbxPolyPointReq xLbxPolyLineReq;
603
+ typedef xLbxPolyPointReq xLbxPolySegmentReq;
604
+ typedef xLbxPolyPointReq xLbxPolyRectangleReq;
605
+ typedef xLbxPolyPointReq xLbxPolyArcReq;
606
+ typedef xLbxPolyPointReq xLbxPolyFillRectangleReq;
607
+ typedef xLbxPolyPointReq xLbxPolyFillArcReq;
608
+
609
+ #define sz_xLbxPolyLineReq sz_xLbxPolyPointReq
610
+ #define sz_xLbxPolySegmentReq sz_xLbxPolyPointReq
611
+ #define sz_xLbxPolyRectangleReq sz_xLbxPolyPointReq
612
+ #define sz_xLbxPolyArcReq sz_xLbxPolyPointReq
613
+ #define sz_xLbxPolyFillRectangleReq sz_xLbxPolyPointReq
614
+ #define sz_xLbxPolyFillArc sz_xLbxPolyPointReq
615
+
616
+ typedef struct _LbxFillPoly {
617
+ CARD8 reqType; /* always LbxReqCode */
618
+ CARD8 lbxReqType;
619
+ CARD16 length;
620
+ CARD8 cacheEnts;
621
+ BYTE shape;
622
+ CARD8 padBytes;
623
+ } xLbxFillPolyReq;
624
+ #define sz_xLbxFillPolyReq 7
625
+
626
+ typedef struct _LbxCopyArea {
627
+ CARD8 reqType; /* always LbxReqCode */
628
+ CARD8 lbxReqType;
629
+ CARD16 length;
630
+ CARD8 srcCache; /* source drawable */
631
+ CARD8 cacheEnts; /* dest drawable and gc */
632
+ /* followed by encoded src x, src y, dst x, dst y, width, height */
633
+ } xLbxCopyAreaReq;
634
+
635
+ #define sz_xLbxCopyAreaReq 6
636
+
637
+ typedef struct _LbxCopyPlane {
638
+ CARD8 reqType; /* always LbxReqCode */
639
+ CARD8 lbxReqType;
640
+ CARD16 length;
641
+ CARD32 bitPlane;
642
+ CARD8 srcCache; /* source drawable */
643
+ CARD8 cacheEnts; /* dest drawable and gc */
644
+ /* followed by encoded src x, src y, dst x, dst y, width, height */
645
+ } xLbxCopyPlaneReq;
646
+
647
+ #define sz_xLbxCopyPlaneReq 10
648
+
649
+ typedef struct _LbxPolyText {
650
+ CARD8 reqType; /* always LbxReqCode */
651
+ CARD8 lbxReqType;
652
+ CARD16 length;
653
+ CARD8 cacheEnts;
654
+ /* followed by encoded src x, src y coordinates and text elts */
655
+ } xLbxPolyTextReq;
656
+
657
+ #define sz_xLbxPolyTextReq 5
658
+
659
+ typedef xLbxPolyTextReq xLbxPolyText8Req;
660
+ typedef xLbxPolyTextReq xLbxPolyText16Req;
661
+
662
+ #define sz_xLbxPolyTextReq 5
663
+ #define sz_xLbxPolyText8Req 5
664
+ #define sz_xLbxPolyText16Req 5
665
+
666
+ typedef struct _LbxImageText {
667
+ CARD8 reqType; /* always LbxReqCode */
668
+ CARD8 lbxReqType;
669
+ CARD16 length;
670
+ CARD8 cacheEnts;
671
+ CARD8 nChars;
672
+ /* followed by encoded src x, src y coordinates and string */
673
+ } xLbxImageTextReq;
674
+
675
+ typedef xLbxImageTextReq xLbxImageText8Req;
676
+ typedef xLbxImageTextReq xLbxImageText16Req;
677
+
678
+ #define sz_xLbxImageTextReq 6
679
+ #define sz_xLbxImageText8Req 6
680
+ #define sz_xLbxImageText16Req 6
681
+
682
+ typedef struct {
683
+ CARD8 offset;
684
+ CARD8 diff;
685
+ } xLbxDiffItem;
686
+ #define sz_xLbxDiffItem 2
687
+
688
+ typedef struct {
689
+ BYTE type; /* X_Reply */
690
+ CARD8 nOpts;
691
+ CARD16 sequenceNumber;
692
+ CARD32 length;
693
+ CARD32 optDataStart;
694
+ CARD32 pad0;
695
+ CARD32 pad1;
696
+ CARD32 pad2;
697
+ CARD32 pad3;
698
+ CARD32 pad4;
699
+ } xLbxStartReply;
700
+ #define sz_xLbxStartReply 32
701
+ #define sz_xLbxStartReplyHdr 8
702
+
703
+ typedef struct _LbxQueryExtension {
704
+ CARD8 reqType; /* always LbxReqCode */
705
+ CARD8 lbxReqType; /* always X_LbxQueryExtension */
706
+ CARD16 length;
707
+ CARD32 nbytes;
708
+ } xLbxQueryExtensionReq;
709
+ #define sz_xLbxQueryExtensionReq 8
710
+
711
+ typedef struct _LbxQueryExtensionReply {
712
+ BYTE type; /* X_Reply */
713
+ CARD8 numReqs;
714
+ CARD16 sequenceNumber;
715
+ CARD32 length;
716
+ BOOL present;
717
+ CARD8 major_opcode;
718
+ CARD8 first_event;
719
+ CARD8 first_error;
720
+ CARD32 pad0;
721
+ CARD32 pad1;
722
+ CARD32 pad2;
723
+ CARD32 pad3;
724
+ CARD32 pad4;
725
+
726
+ /* reply & event generating requests */
727
+ } xLbxQueryExtensionReply;
728
+ #define sz_xLbxQueryExtensionReply 32
729
+
730
+
731
+ typedef struct _LbxBeginLargeRequest {
732
+ CARD8 reqType; /* always LbxReqCode */
733
+ CARD8 lbxReqType; /* always X_LbxBeginLargeRequest */
734
+ CARD16 length;
735
+ CARD32 largeReqLength;
736
+ } xLbxBeginLargeRequestReq;
737
+ #define sz_BeginLargeRequestReq 8
738
+
739
+ typedef struct _LbxLargeRequestData {
740
+ CARD8 reqType; /* always LbxReqCode */
741
+ CARD8 lbxReqType; /* always X_LbxLargeRequestData */
742
+ CARD16 length;
743
+ /* followed by LISTofCARD8 data */
744
+ } xLbxLargeRequestDataReq;
745
+ #define sz_LargeRequestDataReq 4
746
+
747
+ typedef struct _LbxEndLargeRequest {
748
+ CARD8 reqType; /* always LbxReqCode */
749
+ CARD8 lbxReqType; /* always X_LbxEndLargeRequest */
750
+ CARD16 length;
751
+ } xLbxEndLargeRequestReq;
752
+ #define sz_EndLargeRequestReq 4
753
+
754
+
755
+
756
+ typedef struct _LbxSwitchEvent {
757
+ BYTE type; /* always eventBase + LbxEvent */
758
+ BYTE lbxType; /* LbxSwitchEvent */
759
+ CARD16 pad;
760
+ CARD32 client;
761
+ } xLbxSwitchEvent;
762
+ #define sz_xLbxSwitchEvent 8
763
+
764
+ typedef struct _LbxCloseEvent {
765
+ BYTE type; /* always eventBase + LbxEvent */
766
+ BYTE lbxType; /* LbxCloseEvent */
767
+ CARD16 sequenceNumber;
768
+ CARD32 client;
769
+ CARD32 pad1;
770
+ CARD32 pad2;
771
+ CARD32 pad3;
772
+ CARD32 pad4;
773
+ CARD32 pad5;
774
+ CARD32 pad6;
775
+ } xLbxCloseEvent;
776
+ #define sz_xLbxCloseEvent 32
777
+
778
+ typedef struct _LbxInvalidateTagEvent {
779
+ BYTE type; /* always eventBase + LbxEvent */
780
+ BYTE lbxType; /* LbxInvalidateTagEvent */
781
+ CARD16 sequenceNumber;
782
+ CARD32 tag;
783
+ CARD32 tagType;
784
+ CARD32 pad1;
785
+ CARD32 pad2;
786
+ CARD32 pad3;
787
+ CARD32 pad4;
788
+ CARD32 pad5;
789
+ } xLbxInvalidateTagEvent;
790
+ #define sz_xLbxInvalidateTagEvent 32
791
+
792
+ typedef struct _LbxSendTagDataEvent {
793
+ BYTE type; /* always eventBase + LbxEvent */
794
+ BYTE lbxType; /* LbxSendTagDataEvent */
795
+ CARD16 sequenceNumber;
796
+ CARD32 tag;
797
+ CARD32 tagType;
798
+ CARD32 pad1;
799
+ CARD32 pad2;
800
+ CARD32 pad3;
801
+ CARD32 pad4;
802
+ CARD32 pad5;
803
+ } xLbxSendTagDataEvent;
804
+ #define sz_xLbxSendTagDataEvent 32
805
+
806
+ typedef struct _LbxListenToOneEvent {
807
+ BYTE type; /* always eventBase + LbxEvent */
808
+ BYTE lbxType; /* LbxListenToOneEvent */
809
+ CARD16 sequenceNumber;
810
+ CARD32 client;
811
+ CARD32 pad1;
812
+ CARD32 pad2;
813
+ CARD32 pad3;
814
+ CARD32 pad4;
815
+ CARD32 pad5;
816
+ CARD32 pad6;
817
+ } xLbxListenToOneEvent;
818
+ #define sz_xLbxListenToOneEvent 32
819
+
820
+ typedef struct _LbxListenToAllEvent {
821
+ BYTE type; /* always eventBase + LbxEvent */
822
+ BYTE lbxType; /* LbxListenToAllEvent */
823
+ CARD16 sequenceNumber;
824
+ CARD32 pad1;
825
+ CARD32 pad2;
826
+ CARD32 pad3;
827
+ CARD32 pad4;
828
+ CARD32 pad5;
829
+ CARD32 pad6;
830
+ CARD32 pad7;
831
+ } xLbxListenToAllEvent;
832
+ #define sz_xLbxListenToOneEvent 32
833
+
834
+ typedef struct _LbxReleaseCmapEvent {
835
+ BYTE type; /* always eventBase + LbxEvent */
836
+ BYTE lbxType; /* LbxReleaseCmapEvent */
837
+ CARD16 sequenceNumber;
838
+ Colormap colormap;
839
+ CARD32 pad1;
840
+ CARD32 pad2;
841
+ CARD32 pad3;
842
+ CARD32 pad4;
843
+ CARD32 pad5;
844
+ CARD32 pad6;
845
+ } xLbxReleaseCmapEvent;
846
+ #define sz_xLbxReleaseCmapEvent 32
847
+
848
+
849
+ typedef struct _LbxFreeCellsEvent {
850
+ BYTE type; /* always eventBase + LbxEvent */
851
+ BYTE lbxType; /* LbxFreeCellsEvent */
852
+ CARD16 sequenceNumber;
853
+ Colormap colormap;
854
+ CARD32 pixelStart;
855
+ CARD32 pixelEnd;
856
+ CARD32 pad1;
857
+ CARD32 pad2;
858
+ CARD32 pad3;
859
+ CARD32 pad4;
860
+ } xLbxFreeCellsEvent;
861
+ #define sz_xLbxFreeCellsEvent 32
862
+
863
+
864
+ /*
865
+ * squished X event sizes. If these change, be sure to update lbxquish.c
866
+ * and unsquish.c appropriately
867
+ *
868
+ * lbxsz_* is the padded squished length
869
+ * lbxupsz_* is the unpadded squished length
870
+ */
871
+
872
+ #define lbxsz_KeyButtonEvent 32
873
+ #define lbxupsz_KeyButtonEvent 31
874
+
875
+ #define lbxsz_EnterLeaveEvent 32
876
+ #define lbxupsz_EnterLeaveEvent 32
877
+
878
+ #define lbxsz_FocusEvent 12
879
+ #define lbxupsz_FocusEvent 9
880
+
881
+ #define lbxsz_KeymapEvent 32
882
+ #define lbxupsz_KeymapEvent 32
883
+
884
+ #define lbxsz_ExposeEvent 20
885
+ #define lbxupsz_ExposeEvent 18
886
+
887
+ #define lbxsz_GfxExposeEvent 24
888
+ #define lbxupsz_GfxExposeEvent 21
889
+
890
+ #define lbxsz_NoExposeEvent 12
891
+ #define lbxupsz_NoExposeEvent 11
892
+
893
+ #define lbxsz_VisibilityEvent 12
894
+ #define lbxupsz_VisibilityEvent 9
895
+
896
+ #define lbxsz_CreateNotifyEvent 24
897
+ #define lbxupsz_CreateNotifyEvent 23
898
+
899
+ #define lbxsz_DestroyNotifyEvent 12
900
+ #define lbxupsz_DestroyNotifyEvent 12
901
+
902
+ #define lbxsz_UnmapNotifyEvent 16
903
+ #define lbxupsz_UnmapNotifyEvent 13
904
+
905
+ #define lbxsz_MapNotifyEvent 16
906
+ #define lbxupsz_MapNotifyEvent 13
907
+
908
+ #define lbxsz_MapRequestEvent 12
909
+ #define lbxupsz_MapRequestEvent 12
910
+
911
+ #define lbxsz_ReparentEvent 24
912
+ #define lbxupsz_ReparentEvent 21
913
+
914
+ #define lbxsz_ConfigureNotifyEvent 28
915
+ #define lbxupsz_ConfigureNotifyEvent 27
916
+
917
+ #define lbxsz_ConfigureRequestEvent 28
918
+ #define lbxupsz_ConfigureRequestEvent 28
919
+
920
+ #define lbxsz_GravityEvent 16
921
+ #define lbxupsz_GravityEvent 16
922
+
923
+ #define lbxsz_ResizeRequestEvent 12
924
+ #define lbxupsz_ResizeRequestEvent 12
925
+
926
+ #define lbxsz_CirculateEvent 20
927
+ #define lbxupsz_CirculateEvent 17
928
+
929
+ #define lbxsz_PropertyEvent 20
930
+ #define lbxupsz_PropertyEvent 17
931
+
932
+ #define lbxsz_SelectionClearEvent 16
933
+ #define lbxupsz_SelectionClearEvent 16
934
+
935
+ #define lbxsz_SelectionRequestEvent 28
936
+ #define lbxupsz_SelectionRequestEvent 28
937
+
938
+ #define lbxsz_SelectionNotifyEvent 24
939
+ #define lbxupsz_SelectionNotifyEvent 24
940
+
941
+ #define lbxsz_ColormapEvent 16
942
+ #define lbxupsz_ColormapEvent 14
943
+
944
+ #define lbxsz_MappingNotifyEvent 8
945
+ #define lbxupsz_MappingNotifyEvent 7
946
+
947
+ #define lbxsz_ClientMessageEvent 32
948
+ #define lbxupsz_ClientMessageEvent 32
949
+
950
+ #define lbxsz_UnknownEvent 32
951
+
952
+ #ifdef DEBUG
953
+
954
+ #define DBG_SWITCH 0x00000001
955
+ #define DBG_CLOSE 0x00000002
956
+ #define DBG_IO 0x00000004
957
+ #define DBG_READ_REQ 0x00000008
958
+ #define DBG_LEN 0x00000010
959
+ #define DBG_BLOCK 0x00000020
960
+ #define DBG_CLIENT 0x00000040
961
+ #define DBG_DELTA 0x00000080
962
+ #endif
963
+ /*
964
+ * Cancel the previous redefinition of the basic types, thus restoring their
965
+ * X.h definitions.
966
+ */
967
+
968
+ #undef XID
969
+ #undef Atom
970
+ #undef Colormap
971
+ #undef Drawable
972
+ #undef VisualID
973
+ #undef Window
974
+
975
+ #endif /* _LBXPROTO_H_ */
data/miniconda3/include/X11/extensions/mitmiscconst.h ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /************************************************************
2
+
3
+ Copyright 1989, 1998 The Open Group
4
+
5
+ Permission to use, copy, modify, distribute, and sell this software and its
6
+ documentation for any purpose is hereby granted without fee, provided that
7
+ the above copyright notice appear in all copies and that both that
8
+ copyright notice and this permission notice appear in supporting
9
+ documentation.
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 THE
17
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ Except as contained in this notice, the name of The Open Group shall not be
22
+ used in advertising or otherwise to promote the sale, use or other dealings
23
+ in this Software without prior written authorization from The Open Group.
24
+
25
+ ********************************************************/
26
+
27
+ /* RANDOM CRUFT! THIS HAS NO OFFICIAL X CONSORTIUM OR X PROJECT TEAM BLESSING */
28
+
29
+
30
+ #ifndef _MITMISCCONST_H_
31
+ #define _MITMISCCONST_H_
32
+
33
+ #define MITMiscNumberEvents 0
34
+ #define MITMiscNumberErrors 0
35
+
36
+ #define MITMISCNAME "MIT-SUNDRY-NONSTANDARD"
37
+
38
+ #endif
data/miniconda3/include/X11/extensions/mitmiscproto.h ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /************************************************************
2
+
3
+ Copyright 1989, 1998 The Open Group
4
+
5
+ Permission to use, copy, modify, distribute, and sell this software and its
6
+ documentation for any purpose is hereby granted without fee, provided that
7
+ the above copyright notice appear in all copies and that both that
8
+ copyright notice and this permission notice appear in supporting
9
+ documentation.
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 THE
17
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+
21
+ Except as contained in this notice, the name of The Open Group shall not be
22
+ used in advertising or otherwise to promote the sale, use or other dealings
23
+ in this Software without prior written authorization from The Open Group.
24
+
25
+ ********************************************************/
26
+
27
+ /* RANDOM CRUFT! THIS HAS NO OFFICIAL X CONSORTIUM OR X PROJECT TEAM BLESSING */
28
+
29
+ #ifndef _MITMISCPROTO_H_
30
+ #define _MITMISCPROTO_H_
31
+
32
+ #include <X11/extensions/mitmiscconst.h>
33
+
34
+ #define X_MITSetBugMode 0
35
+ #define X_MITGetBugMode 1
36
+
37
+ typedef struct _SetBugMode {
38
+ CARD8 reqType; /* always MITReqCode */
39
+ CARD8 mitReqType; /* always X_MITSetBugMode */
40
+ CARD16 length;
41
+ BOOL onOff;
42
+ BYTE pad0;
43
+ CARD16 pad1;
44
+ } xMITSetBugModeReq;
45
+ #define sz_xMITSetBugModeReq 8
46
+
47
+ typedef struct _GetBugMode {
48
+ CARD8 reqType; /* always MITReqCode */
49
+ CARD8 mitReqType; /* always X_MITGetBugMode */
50
+ CARD16 length;
51
+ } xMITGetBugModeReq;
52
+ #define sz_xMITGetBugModeReq 4
53
+
54
+ typedef struct {
55
+ BYTE type; /* X_Reply */
56
+ BOOL onOff;
57
+ CARD16 sequenceNumber;
58
+ CARD32 length;
59
+ CARD32 pad0;
60
+ CARD32 pad1;
61
+ CARD32 pad2;
62
+ CARD32 pad3;
63
+ CARD32 pad4;
64
+ CARD32 pad5;
65
+ } xMITGetBugModeReply;
66
+ #define sz_xMITGetBugModeReply 32
67
+
68
+ #endif /* _MITMISCPROTO_H_ */
data/miniconda3/include/X11/extensions/multibufconst.h ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Copyright 1989, 1998 The Open Group
3
+
4
+ Permission to use, copy, modify, distribute, and sell this software and its
5
+ documentation for any purpose is hereby granted without fee, provided that
6
+ the above copyright notice appear in all copies and that both that
7
+ copyright notice and this permission notice appear in supporting
8
+ documentation.
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
17
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
+
20
+ Except as contained in this notice, the name of The Open Group shall not be
21
+ used in advertising or otherwise to promote the sale, use or other dealings
22
+ in this Software without prior written authorization from The Open Group.
23
+ */
24
+
25
+ #ifndef _MULTIBUFCONST_H_
26
+ #define _MULTIBUFCONST_H_
27
+
28
+ #define MULTIBUFFER_PROTOCOL_NAME "Multi-Buffering"
29
+
30
+ #define MULTIBUFFER_MAJOR_VERSION 1 /* current version numbers */
31
+ #define MULTIBUFFER_MINOR_VERSION 1 /* has ClearImageBufferArea */
32
+
33
+ /*
34
+ * update_action field
35
+ */
36
+ #define MultibufferUpdateActionUndefined 0
37
+ #define MultibufferUpdateActionBackground 1
38
+ #define MultibufferUpdateActionUntouched 2
39
+ #define MultibufferUpdateActionCopied 3
40
+
41
+ /*
42
+ * update_hint field
43
+ */
44
+ #define MultibufferUpdateHintFrequent 0
45
+ #define MultibufferUpdateHintIntermittent 1
46
+ #define MultibufferUpdateHintStatic 2
47
+
48
+ /*
49
+ * valuemask fields
50
+ */
51
+ #define MultibufferWindowUpdateHint (1L << 0)
52
+ #define MultibufferBufferEventMask (1L << 0)
53
+
54
+ /*
55
+ * mono vs. stereo and left vs. right
56
+ */
57
+ #define MultibufferModeMono 0
58
+ #define MultibufferModeStereo 1
59
+ #define MultibufferSideMono 0
60
+ #define MultibufferSideLeft 1
61
+ #define MultibufferSideRight 2
62
+
63
+ /*
64
+ * clobber state
65
+ */
66
+ #define MultibufferUnclobbered 0
67
+ #define MultibufferPartiallyClobbered 1
68
+ #define MultibufferFullyClobbered 2
69
+
70
+ /*
71
+ * event stuff
72
+ */
73
+ #define MultibufferClobberNotifyMask 0x02000000
74
+ #define MultibufferUpdateNotifyMask 0x04000000
75
+
76
+ #define MultibufferClobberNotify 0
77
+ #define MultibufferUpdateNotify 1
78
+ #define MultibufferNumberEvents (MultibufferUpdateNotify + 1)
79
+
80
+ #define MultibufferBadBuffer 0
81
+ #define MultibufferNumberErrors (MultibufferBadBuffer + 1)
82
+
83
+ #endif /* _MULTIBUFCONST_H_ */
data/miniconda3/include/X11/extensions/multibufproto.h ADDED
@@ -0,0 +1,295 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Copyright 1989, 1998 The Open Group
3
+
4
+ Permission to use, copy, modify, distribute, and sell this software and its
5
+ documentation for any purpose is hereby granted without fee, provided that
6
+ the above copyright notice appear in all copies and that both that
7
+ copyright notice and this permission notice appear in supporting
8
+ documentation.
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
17
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
+
20
+ Except as contained in this notice, the name of The Open Group shall not be
21
+ used in advertising or otherwise to promote the sale, use or other dealings
22
+ in this Software without prior written authorization from The Open Group.
23
+ */
24
+
25
+ #ifndef _MULTIBUFPROTO_H_
26
+ #define _MULTIBUFPROTO_H_
27
+
28
+ #include <X11/extensions/multibufconst.h>
29
+
30
+ /*
31
+ * Protocol requests constants and alignment values
32
+ */
33
+
34
+ #define Window CARD32
35
+ #define Drawable CARD32
36
+ #define VisualID CARD32
37
+ #define Multibuffer CARD32
38
+
39
+ #define X_MbufGetBufferVersion 0
40
+ #define X_MbufCreateImageBuffers 1
41
+ #define X_MbufDestroyImageBuffers 2
42
+ #define X_MbufDisplayImageBuffers 3
43
+ #define X_MbufSetMBufferAttributes 4
44
+ #define X_MbufGetMBufferAttributes 5
45
+ #define X_MbufSetBufferAttributes 6
46
+ #define X_MbufGetBufferAttributes 7
47
+ #define X_MbufGetBufferInfo 8
48
+ #define X_MbufCreateStereoWindow 9
49
+ #define X_MbufClearImageBufferArea 10
50
+
51
+
52
+ typedef struct xMbufBufferInfo {
53
+ CARD32 visualID; /* associated visual */
54
+ CARD16 maxBuffers; /* maximum supported buffers */
55
+ CARD8 depth; /* depth of visual (redundant) */
56
+ CARD8 unused;
57
+ } xMbufBufferInfo;
58
+ #define sz_xMbufBufferInfo 8
59
+
60
+ typedef struct {
61
+ BYTE type;
62
+ BYTE unused;
63
+ CARD16 sequenceNumber;
64
+ CARD32 buffer; /* affected buffer */
65
+ BYTE state; /* current status */
66
+ CARD8 unused1;
67
+ CARD16 unused2;
68
+ CARD32 unused3;
69
+ CARD32 unused4;
70
+ CARD32 unused5;
71
+ CARD32 unused6;
72
+ CARD32 unused7;
73
+ } xMbufClobberNotifyEvent;
74
+
75
+ typedef struct {
76
+ BYTE type;
77
+ BYTE unused;
78
+ CARD16 sequenceNumber;
79
+ CARD32 buffer; /* affected buffer */
80
+ CARD32 timeStamp; /* update time */
81
+ CARD32 unused1;
82
+ CARD32 unused2;
83
+ CARD32 unused3;
84
+ CARD32 unused4;
85
+ CARD32 unused5;
86
+ CARD32 unused6;
87
+ } xMbufUpdateNotifyEvent;
88
+
89
+ typedef struct {
90
+ CARD8 reqType; /* always codes->major_opcode */
91
+ CARD8 mbufReqType; /* always X_MbufGetBufferVersion */
92
+ CARD16 length;
93
+ } xMbufGetBufferVersionReq;
94
+ #define sz_xMbufGetBufferVersionReq 4
95
+
96
+ typedef struct {
97
+ BYTE type; /* X_Reply */
98
+ CARD8 unused; /* not used */
99
+ CARD16 sequenceNumber;
100
+ CARD32 length;
101
+ CARD8 majorVersion; /* major version of Multi-Buffering protocol */
102
+ CARD8 minorVersion; /* minor version of Multi-Buffering protocol */
103
+ CARD16 pad1;
104
+ CARD32 pad2;
105
+ CARD32 pad3;
106
+ CARD32 pad4;
107
+ CARD32 pad5;
108
+ CARD32 pad6;
109
+ } xMbufGetBufferVersionReply;
110
+ #define sz_xMbufGetBufferVersionReply 32
111
+
112
+ typedef struct {
113
+ CARD8 reqType; /* always codes->major_opcode */
114
+ CARD8 mbufReqType; /* always X_MbufCreateImageBuffers */
115
+ CARD16 length;
116
+ CARD32 window; /* associated window */
117
+ CARD8 updateAction; /* action at update */
118
+ CARD8 updateHint; /* hint as to frequency of updates */
119
+ CARD16 unused;
120
+ } xMbufCreateImageBuffersReq; /* followed by buffer ids */
121
+ #define sz_xMbufCreateImageBuffersReq 12
122
+
123
+ typedef struct {
124
+ BYTE type; /* X_Reply */
125
+ CARD8 unused; /* not used */
126
+ CARD16 sequenceNumber;
127
+ CARD32 length;
128
+ CARD16 numberBuffer; /* number successfully allocated */
129
+ CARD16 unused1;
130
+ CARD32 unused2;
131
+ CARD32 unused3;
132
+ CARD32 unused4;
133
+ CARD32 unused5;
134
+ CARD32 unused6;
135
+ } xMbufCreateImageBuffersReply;
136
+ #define sz_xMbufCreateImageBuffersReply 32
137
+
138
+ typedef struct {
139
+ CARD8 reqType; /* always codes->major_opcode */
140
+ CARD8 mbufReqType; /* always X_MbufDestroyImageBuffers */
141
+ CARD16 length;
142
+ CARD32 window; /* associated window */
143
+ } xMbufDestroyImageBuffersReq;
144
+ #define sz_xMbufDestroyImageBuffersReq 8
145
+
146
+ typedef struct {
147
+ CARD8 reqType; /* always codes->major_opcode */
148
+ CARD8 mbufReqType; /* always X_MbufDisplayImageBuffers */
149
+ CARD16 length;
150
+ CARD16 minDelay; /* minimum time between last update and now */
151
+ CARD16 maxDelay; /* maximum time between last update and now */
152
+ } xMbufDisplayImageBuffersReq; /* followed by list of buffers */
153
+ #define sz_xMbufDisplayImageBuffersReq 8
154
+
155
+ typedef struct {
156
+ CARD8 reqType; /* always codes->major_opcode */
157
+ CARD8 mbufReqType; /* always X_MbufSetMBufferAttributes */
158
+ CARD16 length;
159
+ CARD32 window; /* associated window */
160
+ CARD32 valueMask; /* modified entries */
161
+ } xMbufSetMBufferAttributesReq; /* followed by values */
162
+ #define sz_xMbufSetMBufferAttributesReq 12
163
+
164
+ typedef struct {
165
+ CARD8 reqType; /* always codes->major_opcode */
166
+ CARD8 mbufReqType; /* always X_MbufGetMBufferAttributes */
167
+ CARD16 length;
168
+ CARD32 window; /* associated window */
169
+ } xMbufGetMBufferAttributesReq;
170
+ #define sz_xMbufGetMBufferAttributesReq 8
171
+
172
+ typedef struct {
173
+ BYTE type; /* X_Reply */
174
+ CARD8 unused; /* not used */
175
+ CARD16 sequenceNumber;
176
+ CARD32 length;
177
+ CARD16 displayedBuffer; /* currently visible buffer */
178
+ CARD8 updateAction;
179
+ CARD8 updateHint;
180
+ CARD8 windowMode;
181
+ CARD8 unused0;
182
+ CARD16 unused1;
183
+ CARD32 unused2;
184
+ CARD32 unused3;
185
+ CARD32 unused4;
186
+ CARD32 unused5;
187
+ } xMbufGetMBufferAttributesReply;
188
+ #define sz_xMbufGetMBufferAttributesReply 32
189
+
190
+ typedef struct {
191
+ CARD8 reqType; /* always codes->major_opcode */
192
+ CARD8 mbufReqType; /* always X_MbufSetBufferAttributes */
193
+ CARD16 length;
194
+ CARD32 buffer;
195
+ CARD32 valueMask;
196
+ } xMbufSetBufferAttributesReq; /* followed by values */
197
+ #define sz_xMbufSetBufferAttributesReq 12
198
+
199
+ typedef struct {
200
+ CARD8 reqType; /* always codes->major_opcode */
201
+ CARD8 mbufReqType; /* always X_MbufGetBufferAttributes */
202
+ CARD16 length;
203
+ CARD32 buffer;
204
+ } xMbufGetBufferAttributesReq;
205
+ #define sz_xMbufGetBufferAttributesReq 8
206
+
207
+ typedef struct {
208
+ BYTE type; /* X_Reply */
209
+ CARD8 unused; /* not used */
210
+ CARD16 sequenceNumber;
211
+ CARD32 length;
212
+ CARD32 window;
213
+ CARD32 eventMask;
214
+ CARD16 bufferIndex;
215
+ CARD8 side;
216
+ CARD8 unused0;
217
+ CARD32 unused1;
218
+ CARD32 unused2;
219
+ CARD32 unused3;
220
+ } xMbufGetBufferAttributesReply;
221
+ #define sz_xMbufGetBufferAttributesReply 32
222
+
223
+ typedef struct {
224
+ CARD8 reqType; /* always codes->major_opcode */
225
+ CARD8 mbufReqType; /* always X_MbufGetBufferInfo */
226
+ CARD16 length;
227
+ Drawable drawable;
228
+ } xMbufGetBufferInfoReq;
229
+ #define sz_xMbufGetBufferInfoReq 8
230
+
231
+ typedef struct {
232
+ BYTE type; /* X_Reply */
233
+ CARD8 unused; /* not used */
234
+ CARD16 sequenceNumber;
235
+ CARD32 length;
236
+ CARD16 normalInfo;
237
+ CARD16 stereoInfo;
238
+ CARD32 unused1;
239
+ CARD32 unused2;
240
+ CARD32 unused3;
241
+ CARD32 unused4;
242
+ CARD32 unused5;
243
+ } xMbufGetBufferInfoReply; /* followed by buffer infos */
244
+ #define sz_xMbufGetBufferInfoReply 32
245
+
246
+
247
+ typedef struct {
248
+ CARD8 reqType; /* always codes->major_opcode */
249
+ CARD8 mbufReqType; /* always X_MbufCreateStereoWindow */
250
+ CARD16 length;
251
+ CARD8 unused0;
252
+ CARD8 unused1;
253
+ CARD8 unused2;
254
+ CARD8 depth;
255
+ Window wid;
256
+ Window parent;
257
+ Multibuffer left; /* associated buffers */
258
+ Multibuffer right;
259
+ INT16 x;
260
+ INT16 y;
261
+ CARD16 width;
262
+ CARD16 height;
263
+ CARD16 borderWidth;
264
+ #if defined(__cplusplus) || defined(c_plusplus)
265
+ CARD16 c_class;
266
+ #else
267
+ CARD16 class;
268
+ #endif
269
+ VisualID visual;
270
+ CARD32 mask;
271
+ } xMbufCreateStereoWindowReq; /* followed by value list */
272
+ #define sz_xMbufCreateStereoWindowReq 44
273
+
274
+ typedef struct {
275
+ CARD8 reqType; /* always codes->major_opcode */
276
+ CARD8 mbufReqType; /* always X_MbufClearImageBufferArea */
277
+ CARD16 length;
278
+ Multibuffer buffer;
279
+ INT16 x;
280
+ INT16 y;
281
+ CARD16 width;
282
+ CARD16 height;
283
+ CARD8 unused0;
284
+ CARD8 unused1;
285
+ CARD8 unused2;
286
+ BOOL exposures;
287
+ } xMbufClearImageBufferAreaReq;
288
+ #define sz_xMbufClearImageBufferAreaReq 20
289
+
290
+ #undef Window
291
+ #undef Drawable
292
+ #undef VisualID
293
+ #undef Multibuffer
294
+
295
+ #endif /* _MULTIBUFPROTO_H_ */
data/miniconda3/include/X11/extensions/panoramiXext.h ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*****************************************************************
2
+ Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts.
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software.
8
+
9
+ The above copyright notice and this permission notice shall be included in
10
+ all copies or substantial portions of the Software.
11
+
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
15
+ DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
16
+ BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
17
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
18
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
+
20
+ Except as contained in this notice, the name of Digital Equipment Corporation
21
+ shall not be used in advertising or otherwise to promote the sale, use or other
22
+ dealings in this Software without prior written authorization from Digital
23
+ Equipment Corporation.
24
+ ******************************************************************/
25
+ /*
26
+ * PanoramiX definitions
27
+ */
28
+
29
+ /* THIS IS NOT AN X PROJECT TEAM SPECIFICATION */
30
+
31
+ #ifndef _panoramiXext_h
32
+ #define _panoramiXext_h
33
+
34
+ #include <X11/Xfuncproto.h>
35
+
36
+ typedef struct {
37
+ Window window; /* PanoramiX window - may not exist */
38
+ int screen;
39
+ int State; /* PanoramiXOff, PanoramiXOn */
40
+ int width; /* width of this screen */
41
+ int height; /* height of this screen */
42
+ int ScreenCount; /* real physical number of screens */
43
+ XID eventMask; /* selected events for this client */
44
+ } XPanoramiXInfo;
45
+
46
+ _XFUNCPROTOBEGIN
47
+
48
+ extern Bool XPanoramiXQueryExtension (
49
+ Display * /* dpy */,
50
+ int * /* event_base_return */,
51
+ int * /* error_base_return */
52
+ );
53
+
54
+ extern Status XPanoramiXQueryVersion(
55
+ Display * /* dpy */,
56
+ int * /* major_version_return */,
57
+ int * /* minor_version_return */
58
+ );
59
+
60
+ extern XPanoramiXInfo *XPanoramiXAllocInfo (
61
+ void
62
+ );
63
+
64
+ extern Status XPanoramiXGetState (
65
+ Display * /* dpy */,
66
+ Drawable /* drawable */,
67
+ XPanoramiXInfo * /* panoramiX_info */
68
+ );
69
+
70
+ extern Status XPanoramiXGetScreenCount (
71
+ Display * /* dpy */,
72
+ Drawable /* drawable */,
73
+ XPanoramiXInfo * /* panoramiX_info */
74
+ );
75
+
76
+ extern Status XPanoramiXGetScreenSize (
77
+ Display * /* dpy */,
78
+ Drawable /* drawable */,
79
+ int /* screen_num */,
80
+ XPanoramiXInfo * /* panoramiX_info */
81
+ );
82
+
83
+ _XFUNCPROTOEND
84
+
85
+ #endif /* _panoramiXext_h */