assassinlike commited on
Commit
5339a03
·
verified ·
1 Parent(s): 708772c

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/envs/catiagent/include/GL/internal/glcore.h +181 -0
  2. data/miniconda3/envs/catiagent/include/X11/ICE/ICE.h +101 -0
  3. data/miniconda3/envs/catiagent/include/X11/ICE/ICEconn.h +250 -0
  4. data/miniconda3/envs/catiagent/include/X11/ICE/ICElib.h +431 -0
  5. data/miniconda3/envs/catiagent/include/X11/ICE/ICEmsg.h +306 -0
  6. data/miniconda3/envs/catiagent/include/X11/ICE/ICEproto.h +175 -0
  7. data/miniconda3/envs/catiagent/include/X11/ICE/ICEutil.h +124 -0
  8. data/miniconda3/envs/catiagent/include/X11/SM/SM.h +128 -0
  9. data/miniconda3/envs/catiagent/include/X11/SM/SMlib.h +543 -0
  10. data/miniconda3/envs/catiagent/include/X11/SM/SMproto.h +206 -0
  11. data/miniconda3/envs/catiagent/include/X11/dri/xf86dri.h +65 -0
  12. data/miniconda3/envs/catiagent/include/X11/dri/xf86driproto.h +342 -0
  13. data/miniconda3/envs/catiagent/include/X11/dri/xf86dristr.h +3 -0
  14. data/miniconda3/envs/catiagent/include/X11/extensions/EVI.h +36 -0
  15. data/miniconda3/envs/catiagent/include/X11/extensions/EVIproto.h +96 -0
  16. data/miniconda3/envs/catiagent/include/X11/extensions/MITMisc.h +54 -0
  17. data/miniconda3/envs/catiagent/include/X11/extensions/XEVI.h +61 -0
  18. data/miniconda3/envs/catiagent/include/X11/extensions/XI.h +308 -0
  19. data/miniconda3/envs/catiagent/include/X11/extensions/XI2.h +259 -0
  20. data/miniconda3/envs/catiagent/include/X11/extensions/XI2proto.h +1169 -0
  21. data/miniconda3/envs/catiagent/include/X11/extensions/XInput.h +1277 -0
  22. data/miniconda3/envs/catiagent/include/X11/extensions/XInput2.h +761 -0
  23. data/miniconda3/envs/catiagent/include/X11/extensions/XIproto.h +1758 -0
  24. data/miniconda3/envs/catiagent/include/X11/extensions/XKB.h +786 -0
  25. data/miniconda3/envs/catiagent/include/X11/extensions/XKBgeom.h +618 -0
  26. data/miniconda3/envs/catiagent/include/X11/extensions/XKBproto.h +1282 -0
  27. data/miniconda3/envs/catiagent/include/X11/extensions/XKBsrv.h +1184 -0
  28. data/miniconda3/envs/catiagent/include/X11/extensions/XKBstr.h +643 -0
  29. data/miniconda3/envs/catiagent/include/X11/extensions/XLbx.h +50 -0
  30. data/miniconda3/envs/catiagent/include/X11/extensions/XResproto.h +227 -0
  31. data/miniconda3/envs/catiagent/include/X11/extensions/XShm.h +135 -0
  32. data/miniconda3/envs/catiagent/include/X11/extensions/Xag.h +90 -0
  33. data/miniconda3/envs/catiagent/include/X11/extensions/Xcup.h +58 -0
  34. data/miniconda3/envs/catiagent/include/X11/extensions/Xdbe.h +138 -0
  35. data/miniconda3/envs/catiagent/include/X11/extensions/Xext.h +53 -0
  36. data/miniconda3/envs/catiagent/include/X11/extensions/Xfixes.h +279 -0
  37. data/miniconda3/envs/catiagent/include/X11/extensions/Xge.h +57 -0
  38. data/miniconda3/envs/catiagent/include/X11/extensions/Xv.h +128 -0
  39. data/miniconda3/envs/catiagent/include/X11/extensions/XvMC.h +138 -0
  40. data/miniconda3/envs/catiagent/include/X11/extensions/XvMCproto.h +226 -0
  41. data/miniconda3/envs/catiagent/include/X11/extensions/Xvproto.h +603 -0
  42. data/miniconda3/envs/catiagent/include/X11/extensions/ag.h +52 -0
  43. data/miniconda3/envs/catiagent/include/X11/extensions/agproto.h +178 -0
  44. data/miniconda3/envs/catiagent/include/X11/extensions/applewmconst.h +84 -0
  45. data/miniconda3/envs/catiagent/include/X11/extensions/applewmproto.h +293 -0
  46. data/miniconda3/envs/catiagent/include/X11/extensions/bigreqsproto.h +67 -0
  47. data/miniconda3/envs/catiagent/include/X11/extensions/bigreqstr.h +3 -0
  48. data/miniconda3/envs/catiagent/include/X11/extensions/composite.h +71 -0
  49. data/miniconda3/envs/catiagent/include/X11/extensions/compositeproto.h +192 -0
  50. data/miniconda3/envs/catiagent/include/X11/extensions/cup.h +38 -0
data/miniconda3/envs/catiagent/include/GL/internal/glcore.h ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef __gl_core_h_
2
+ #define __gl_core_h_
3
+
4
+ /*
5
+ * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
6
+ * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a
9
+ * copy of this software and associated documentation files (the "Software"),
10
+ * to deal in the Software without restriction, including without limitation
11
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
12
+ * and/or sell copies of the Software, and to permit persons to whom the
13
+ * Software is furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice including the dates of first publication and
16
+ * either this permission notice or a reference to
17
+ * http://oss.sgi.com/projects/FreeB/
18
+ * shall be included in all copies or substantial portions of the Software.
19
+ *
20
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23
+ * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
24
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
25
+ * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ * SOFTWARE.
27
+ *
28
+ * Except as contained in this notice, the name of Silicon Graphics, Inc.
29
+ * shall not be used in advertising or otherwise to promote the sale, use or
30
+ * other dealings in this Software without prior written authorization from
31
+ * Silicon Graphics, Inc.
32
+ */
33
+
34
+ #if !defined(_WIN32_WCE)
35
+ #include <sys/types.h>
36
+ #endif
37
+
38
+ #define GL_CORE_SGI 1
39
+ #define GL_CORE_MESA 2
40
+ #define GL_CORE_APPLE 4
41
+ #define GL_CORE_WINDOWS 8
42
+
43
+ typedef struct __GLcontextRec __GLcontext;
44
+
45
+ /*
46
+ ** This file defines the interface between the GL core and the surrounding
47
+ ** "operating system" that supports it (currently the GLX or WGL extensions).
48
+ **
49
+ ** Members (data and function pointers) are documented as imported or
50
+ ** exported according to how they are used by the core rendering functions.
51
+ ** Imported members are initialized by the "operating system" and used by
52
+ ** the core functions. Exported members are initialized by the core functions
53
+ ** and used by the "operating system".
54
+ */
55
+
56
+ /**
57
+ * Mode and limit information for a context. This information is
58
+ * kept around in the context so that values can be used during
59
+ * command execution, and for returning information about the
60
+ * context to the application.
61
+ *
62
+ * Instances of this structure are shared by the driver and the loader. To
63
+ * maintain binary compatibility, new fields \b must be added only to the
64
+ * end of the structure.
65
+ *
66
+ * \sa _gl_context_modes_create
67
+ */
68
+ typedef struct __GLcontextModesRec {
69
+ struct __GLcontextModesRec * next;
70
+
71
+ GLboolean rgbMode;
72
+ GLboolean floatMode;
73
+ GLboolean colorIndexMode;
74
+ GLuint doubleBufferMode;
75
+ GLuint stereoMode;
76
+
77
+ GLboolean haveAccumBuffer;
78
+ GLboolean haveDepthBuffer;
79
+ GLboolean haveStencilBuffer;
80
+
81
+ GLint redBits, greenBits, blueBits, alphaBits; /* bits per comp */
82
+ GLuint redMask, greenMask, blueMask, alphaMask;
83
+ GLint rgbBits; /* total bits for rgb */
84
+ GLint indexBits; /* total bits for colorindex */
85
+
86
+ GLint accumRedBits, accumGreenBits, accumBlueBits, accumAlphaBits;
87
+ GLint depthBits;
88
+ GLint stencilBits;
89
+
90
+ GLint numAuxBuffers;
91
+
92
+ GLint level;
93
+
94
+ GLint pixmapMode;
95
+
96
+ /* GLX */
97
+ GLint visualID;
98
+ GLint visualType; /**< One of the GLX X visual types. (i.e.,
99
+ * \c GLX_TRUE_COLOR, etc.)
100
+ */
101
+
102
+ /* EXT_visual_rating / GLX 1.2 */
103
+ GLint visualRating;
104
+
105
+ /* EXT_visual_info / GLX 1.2 */
106
+ GLint transparentPixel;
107
+ /* colors are floats scaled to ints */
108
+ GLint transparentRed, transparentGreen, transparentBlue, transparentAlpha;
109
+ GLint transparentIndex;
110
+
111
+ /* ARB_multisample / SGIS_multisample */
112
+ GLint sampleBuffers;
113
+ GLint samples;
114
+
115
+ /* SGIX_fbconfig / GLX 1.3 */
116
+ GLint drawableType;
117
+ GLint renderType;
118
+ GLint xRenderable;
119
+ GLint fbconfigID;
120
+
121
+ /* SGIX_pbuffer / GLX 1.3 */
122
+ GLint maxPbufferWidth;
123
+ GLint maxPbufferHeight;
124
+ GLint maxPbufferPixels;
125
+ GLint optimalPbufferWidth; /* Only for SGIX_pbuffer. */
126
+ GLint optimalPbufferHeight; /* Only for SGIX_pbuffer. */
127
+
128
+ /* SGIX_visual_select_group */
129
+ GLint visualSelectGroup;
130
+
131
+ /* OML_swap_method */
132
+ GLint swapMethod;
133
+
134
+ GLint screen;
135
+
136
+ /* EXT_texture_from_pixmap */
137
+ GLint bindToTextureRgb;
138
+ GLint bindToTextureRgba;
139
+ GLint bindToMipmapTexture;
140
+ GLint bindToTextureTargets;
141
+ GLint yInverted;
142
+ } __GLcontextModes;
143
+
144
+ /* Several fields of __GLcontextModes can take these as values. Since
145
+ * GLX header files may not be available everywhere they need to be used,
146
+ * redefine them here.
147
+ */
148
+ #define GLX_NONE 0x8000
149
+ #define GLX_SLOW_CONFIG 0x8001
150
+ #define GLX_TRUE_COLOR 0x8002
151
+ #define GLX_DIRECT_COLOR 0x8003
152
+ #define GLX_PSEUDO_COLOR 0x8004
153
+ #define GLX_STATIC_COLOR 0x8005
154
+ #define GLX_GRAY_SCALE 0x8006
155
+ #define GLX_STATIC_GRAY 0x8007
156
+ #define GLX_TRANSPARENT_RGB 0x8008
157
+ #define GLX_TRANSPARENT_INDEX 0x8009
158
+ #define GLX_NON_CONFORMANT_CONFIG 0x800D
159
+ #define GLX_SWAP_EXCHANGE_OML 0x8061
160
+ #define GLX_SWAP_COPY_OML 0x8062
161
+ #define GLX_SWAP_UNDEFINED_OML 0x8063
162
+
163
+ #define GLX_DONT_CARE 0xFFFFFFFF
164
+
165
+ #define GLX_RGBA_BIT 0x00000001
166
+ #define GLX_COLOR_INDEX_BIT 0x00000002
167
+ #define GLX_WINDOW_BIT 0x00000001
168
+ #define GLX_PIXMAP_BIT 0x00000002
169
+ #define GLX_PBUFFER_BIT 0x00000004
170
+
171
+ #define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0
172
+ #define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1
173
+ #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2
174
+ #define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3
175
+ #define GLX_Y_INVERTED_EXT 0x20D4
176
+
177
+ #define GLX_TEXTURE_1D_BIT_EXT 0x00000001
178
+ #define GLX_TEXTURE_2D_BIT_EXT 0x00000002
179
+ #define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004
180
+
181
+ #endif /* __gl_core_h_ */
data/miniconda3/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/include/X11/dri/xf86dri.h ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**************************************************************************
2
+
3
+ Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
4
+ Copyright 2000 VA Linux Systems, Inc.
5
+ All Rights Reserved.
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a
8
+ copy of this software and associated documentation files (the
9
+ "Software"), to deal in the Software without restriction, including
10
+ without limitation the rights to use, copy, modify, merge, publish,
11
+ distribute, sub license, and/or sell copies of the Software, and to
12
+ permit persons to whom the Software is furnished to do so, subject to
13
+ the following conditions:
14
+
15
+ The above copyright notice and this permission notice (including the
16
+ next paragraph) shall be included in all copies or substantial portions
17
+ of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
22
+ IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
23
+ ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
+
27
+ **************************************************************************/
28
+
29
+ /**
30
+ * \file xf86dri.h
31
+ * Protocol numbers and function prototypes for DRI X protocol.
32
+ *
33
+ * \author Kevin E. Martin <martin@valinux.com>
34
+ * \author Jens Owen <jens@tungstengraphics.com>
35
+ * \author Rickard E. (Rik) Faith <faith@valinux.com>
36
+ */
37
+
38
+ #ifndef _XF86DRI_H_
39
+ #define _XF86DRI_H_
40
+
41
+ #include <xf86drm.h>
42
+
43
+ #define X_XF86DRIQueryVersion 0
44
+ #define X_XF86DRIQueryDirectRenderingCapable 1
45
+ #define X_XF86DRIOpenConnection 2
46
+ #define X_XF86DRICloseConnection 3
47
+ #define X_XF86DRIGetClientDriverName 4
48
+ #define X_XF86DRICreateContext 5
49
+ #define X_XF86DRIDestroyContext 6
50
+ #define X_XF86DRICreateDrawable 7
51
+ #define X_XF86DRIDestroyDrawable 8
52
+ #define X_XF86DRIGetDrawableInfo 9
53
+ #define X_XF86DRIGetDeviceInfo 10
54
+ #define X_XF86DRIAuthConnection 11
55
+ #define X_XF86DRIOpenFullScreen 12 /* Deprecated */
56
+ #define X_XF86DRICloseFullScreen 13 /* Deprecated */
57
+
58
+ #define XF86DRINumberEvents 0
59
+
60
+ #define XF86DRIClientNotLocal 0
61
+ #define XF86DRIOperationNotSupported 1
62
+ #define XF86DRINumberErrors (XF86DRIOperationNotSupported + 1)
63
+
64
+ #endif /* _XF86DRI_H_ */
65
+
data/miniconda3/envs/catiagent/include/X11/dri/xf86driproto.h ADDED
@@ -0,0 +1,342 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**************************************************************************
2
+
3
+ Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
4
+ Copyright 2000 VA Linux Systems, Inc.
5
+ All Rights Reserved.
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a
8
+ copy of this software and associated documentation files (the
9
+ "Software"), to deal in the Software without restriction, including
10
+ without limitation the rights to use, copy, modify, merge, publish,
11
+ distribute, sub license, and/or sell copies of the Software, and to
12
+ permit persons to whom the Software is furnished to do so, subject to
13
+ the following conditions:
14
+
15
+ The above copyright notice and this permission notice (including the
16
+ next paragraph) shall be included in all copies or substantial portions
17
+ of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
22
+ IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
23
+ ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
+
27
+ **************************************************************************/
28
+
29
+ /*
30
+ * Authors:
31
+ * Kevin E. Martin <martin@valinux.com>
32
+ * Jens Owen <jens@tungstengraphics.com>
33
+ * Rickard E. (Rik) Faith <faith@valinux.com>
34
+ *
35
+ */
36
+
37
+ #ifndef _XF86DRISTR_H_
38
+ #define _XF86DRISTR_H_
39
+
40
+ #include "xf86dri.h"
41
+
42
+ #define XF86DRINAME "XFree86-DRI"
43
+
44
+ /* The DRI version number. This was originally set to be the same of the
45
+ * XFree86 version number. However, this version is really independent of
46
+ * the XFree86 version.
47
+ *
48
+ * Version History:
49
+ * 4.0.0: Original
50
+ * 4.0.1: Patch to bump clipstamp when windows are destroyed, 28 May 02
51
+ * 4.1.0: Add transition from single to multi in DRMInfo rec, 24 Jun 02
52
+ */
53
+ #define XF86DRI_MAJOR_VERSION 4
54
+ #define XF86DRI_MINOR_VERSION 1
55
+ #define XF86DRI_PATCH_VERSION 0
56
+
57
+ typedef struct _XF86DRIQueryVersion {
58
+ CARD8 reqType; /* always DRIReqCode */
59
+ CARD8 driReqType; /* always X_DRIQueryVersion */
60
+ CARD16 length;
61
+ } xXF86DRIQueryVersionReq;
62
+ #define sz_xXF86DRIQueryVersionReq 4
63
+
64
+ typedef struct {
65
+ BYTE type; /* X_Reply */
66
+ BOOL pad1;
67
+ CARD16 sequenceNumber;
68
+ CARD32 length;
69
+ CARD16 majorVersion; /* major version of DRI protocol */
70
+ CARD16 minorVersion; /* minor version of DRI protocol */
71
+ CARD32 patchVersion; /* patch version of DRI protocol */
72
+ CARD32 pad3;
73
+ CARD32 pad4;
74
+ CARD32 pad5;
75
+ CARD32 pad6;
76
+ } xXF86DRIQueryVersionReply;
77
+ #define sz_xXF86DRIQueryVersionReply 32
78
+
79
+ typedef struct _XF86DRIQueryDirectRenderingCapable {
80
+ CARD8 reqType; /* always DRIReqCode */
81
+ CARD8 driReqType; /* X_DRIQueryDirectRenderingCapable */
82
+ CARD16 length;
83
+ CARD32 screen;
84
+ } xXF86DRIQueryDirectRenderingCapableReq;
85
+ #define sz_xXF86DRIQueryDirectRenderingCapableReq 8
86
+
87
+ typedef struct {
88
+ BYTE type; /* X_Reply */
89
+ BOOL pad1;
90
+ CARD16 sequenceNumber;
91
+ CARD32 length;
92
+ BOOL isCapable;
93
+ BOOL pad2;
94
+ BOOL pad3;
95
+ BOOL pad4;
96
+ CARD32 pad5;
97
+ CARD32 pad6;
98
+ CARD32 pad7;
99
+ CARD32 pad8;
100
+ CARD32 pad9;
101
+ } xXF86DRIQueryDirectRenderingCapableReply;
102
+ #define sz_xXF86DRIQueryDirectRenderingCapableReply 32
103
+
104
+ typedef struct _XF86DRIOpenConnection {
105
+ CARD8 reqType; /* always DRIReqCode */
106
+ CARD8 driReqType; /* always X_DRIOpenConnection */
107
+ CARD16 length;
108
+ CARD32 screen;
109
+ } xXF86DRIOpenConnectionReq;
110
+ #define sz_xXF86DRIOpenConnectionReq 8
111
+
112
+ typedef struct {
113
+ BYTE type; /* X_Reply */
114
+ BOOL pad1;
115
+ CARD16 sequenceNumber;
116
+ CARD32 length;
117
+ CARD32 hSAREALow;
118
+ CARD32 hSAREAHigh;
119
+ CARD32 busIdStringLength;
120
+ CARD32 pad6;
121
+ CARD32 pad7;
122
+ CARD32 pad8;
123
+ } xXF86DRIOpenConnectionReply;
124
+ #define sz_xXF86DRIOpenConnectionReply 32
125
+
126
+ typedef struct _XF86DRIAuthConnection {
127
+ CARD8 reqType; /* always DRIReqCode */
128
+ CARD8 driReqType; /* always X_DRICloseConnection */
129
+ CARD16 length;
130
+ CARD32 screen;
131
+ CARD32 magic;
132
+ } xXF86DRIAuthConnectionReq;
133
+ #define sz_xXF86DRIAuthConnectionReq 12
134
+
135
+ typedef struct {
136
+ BYTE type;
137
+ BOOL pad1;
138
+ CARD16 sequenceNumber;
139
+ CARD32 length;
140
+ CARD32 authenticated;
141
+ CARD32 pad2;
142
+ CARD32 pad3;
143
+ CARD32 pad4;
144
+ CARD32 pad5;
145
+ CARD32 pad6;
146
+ } xXF86DRIAuthConnectionReply;
147
+ #define zx_xXF86DRIAuthConnectionReply 32
148
+
149
+ typedef struct _XF86DRICloseConnection {
150
+ CARD8 reqType; /* always DRIReqCode */
151
+ CARD8 driReqType; /* always X_DRICloseConnection */
152
+ CARD16 length;
153
+ CARD32 screen;
154
+ } xXF86DRICloseConnectionReq;
155
+ #define sz_xXF86DRICloseConnectionReq 8
156
+
157
+ typedef struct _XF86DRIGetClientDriverName {
158
+ CARD8 reqType; /* always DRIReqCode */
159
+ CARD8 driReqType; /* always X_DRIGetClientDriverName */
160
+ CARD16 length;
161
+ CARD32 screen;
162
+ } xXF86DRIGetClientDriverNameReq;
163
+ #define sz_xXF86DRIGetClientDriverNameReq 8
164
+
165
+ typedef struct {
166
+ BYTE type; /* X_Reply */
167
+ BOOL pad1;
168
+ CARD16 sequenceNumber;
169
+ CARD32 length;
170
+ CARD32 ddxDriverMajorVersion;
171
+ CARD32 ddxDriverMinorVersion;
172
+ CARD32 ddxDriverPatchVersion;
173
+ CARD32 clientDriverNameLength;
174
+ CARD32 pad5;
175
+ CARD32 pad6;
176
+ } xXF86DRIGetClientDriverNameReply;
177
+ #define sz_xXF86DRIGetClientDriverNameReply 32
178
+
179
+ typedef struct _XF86DRICreateContext {
180
+ CARD8 reqType; /* always DRIReqCode */
181
+ CARD8 driReqType; /* always X_DRICreateContext */
182
+ CARD16 length;
183
+ CARD32 screen;
184
+ CARD32 visual;
185
+ CARD32 context;
186
+ } xXF86DRICreateContextReq;
187
+ #define sz_xXF86DRICreateContextReq 16
188
+
189
+ typedef struct {
190
+ BYTE type; /* X_Reply */
191
+ BOOL pad1;
192
+ CARD16 sequenceNumber;
193
+ CARD32 length;
194
+ CARD32 hHWContext;
195
+ CARD32 pad2;
196
+ CARD32 pad3;
197
+ CARD32 pad4;
198
+ CARD32 pad5;
199
+ CARD32 pad6;
200
+ } xXF86DRICreateContextReply;
201
+ #define sz_xXF86DRICreateContextReply 32
202
+
203
+ typedef struct _XF86DRIDestroyContext {
204
+ CARD8 reqType; /* always DRIReqCode */
205
+ CARD8 driReqType; /* always X_DRIDestroyContext */
206
+ CARD16 length;
207
+ CARD32 screen;
208
+ CARD32 context;
209
+ } xXF86DRIDestroyContextReq;
210
+ #define sz_xXF86DRIDestroyContextReq 12
211
+
212
+ typedef struct _XF86DRICreateDrawable {
213
+ CARD8 reqType; /* always DRIReqCode */
214
+ CARD8 driReqType; /* always X_DRICreateDrawable */
215
+ CARD16 length;
216
+ CARD32 screen;
217
+ CARD32 drawable;
218
+ } xXF86DRICreateDrawableReq;
219
+ #define sz_xXF86DRICreateDrawableReq 12
220
+
221
+ typedef struct {
222
+ BYTE type; /* X_Reply */
223
+ BOOL pad1;
224
+ CARD16 sequenceNumber;
225
+ CARD32 length;
226
+ CARD32 hHWDrawable;
227
+ CARD32 pad2;
228
+ CARD32 pad3;
229
+ CARD32 pad4;
230
+ CARD32 pad5;
231
+ CARD32 pad6;
232
+ } xXF86DRICreateDrawableReply;
233
+ #define sz_xXF86DRICreateDrawableReply 32
234
+
235
+ typedef struct _XF86DRIDestroyDrawable {
236
+ CARD8 reqType; /* always DRIReqCode */
237
+ CARD8 driReqType; /* always X_DRIDestroyDrawable */
238
+ CARD16 length;
239
+ CARD32 screen;
240
+ CARD32 drawable;
241
+ } xXF86DRIDestroyDrawableReq;
242
+ #define sz_xXF86DRIDestroyDrawableReq 12
243
+
244
+ typedef struct _XF86DRIGetDrawableInfo {
245
+ CARD8 reqType; /* always DRIReqCode */
246
+ CARD8 driReqType; /* always X_DRIGetDrawableInfo */
247
+ CARD16 length;
248
+ CARD32 screen;
249
+ CARD32 drawable;
250
+ } xXF86DRIGetDrawableInfoReq;
251
+ #define sz_xXF86DRIGetDrawableInfoReq 12
252
+
253
+ typedef struct {
254
+ BYTE type; /* X_Reply */
255
+ BOOL pad1;
256
+ CARD16 sequenceNumber;
257
+ CARD32 length;
258
+ CARD32 drawableTableIndex;
259
+ CARD32 drawableTableStamp;
260
+ INT16 drawableX;
261
+ INT16 drawableY;
262
+ INT16 drawableWidth;
263
+ INT16 drawableHeight;
264
+ CARD32 numClipRects;
265
+ INT16 backX;
266
+ INT16 backY;
267
+ CARD32 numBackClipRects;
268
+ } xXF86DRIGetDrawableInfoReply;
269
+
270
+ #define sz_xXF86DRIGetDrawableInfoReply 36
271
+
272
+
273
+ typedef struct _XF86DRIGetDeviceInfo {
274
+ CARD8 reqType; /* always DRIReqCode */
275
+ CARD8 driReqType; /* always X_DRIGetDeviceInfo */
276
+ CARD16 length;
277
+ CARD32 screen;
278
+ } xXF86DRIGetDeviceInfoReq;
279
+ #define sz_xXF86DRIGetDeviceInfoReq 8
280
+
281
+ typedef struct {
282
+ BYTE type; /* X_Reply */
283
+ BOOL pad1;
284
+ CARD16 sequenceNumber;
285
+ CARD32 length;
286
+ CARD32 hFrameBufferLow;
287
+ CARD32 hFrameBufferHigh;
288
+ CARD32 framebufferOrigin;
289
+ CARD32 framebufferSize;
290
+ CARD32 framebufferStride;
291
+ CARD32 devPrivateSize;
292
+ } xXF86DRIGetDeviceInfoReply;
293
+ #define sz_xXF86DRIGetDeviceInfoReply 32
294
+
295
+ typedef struct _XF86DRIOpenFullScreen {
296
+ CARD8 reqType; /* always DRIReqCode */
297
+ CARD8 driReqType; /* always X_DRIOpenFullScreen */
298
+ CARD16 length;
299
+ CARD32 screen;
300
+ CARD32 drawable;
301
+ } xXF86DRIOpenFullScreenReq;
302
+ #define sz_xXF86DRIOpenFullScreenReq 12
303
+
304
+ typedef struct {
305
+ BYTE type;
306
+ BOOL pad1;
307
+ CARD16 sequenceNumber;
308
+ CARD32 length;
309
+ CARD32 isFullScreen;
310
+ CARD32 pad2;
311
+ CARD32 pad3;
312
+ CARD32 pad4;
313
+ CARD32 pad5;
314
+ CARD32 pad6;
315
+ } xXF86DRIOpenFullScreenReply;
316
+ #define sz_xXF86DRIOpenFullScreenReply 32
317
+
318
+ typedef struct _XF86DRICloseFullScreen {
319
+ CARD8 reqType; /* always DRIReqCode */
320
+ CARD8 driReqType; /* always X_DRICloseFullScreen */
321
+ CARD16 length;
322
+ CARD32 screen;
323
+ CARD32 drawable;
324
+ } xXF86DRICloseFullScreenReq;
325
+ #define sz_xXF86DRICloseFullScreenReq 12
326
+
327
+ typedef struct {
328
+ BYTE type;
329
+ BOOL pad1;
330
+ CARD16 sequenceNumber;
331
+ CARD32 length;
332
+ CARD32 pad2;
333
+ CARD32 pad3;
334
+ CARD32 pad4;
335
+ CARD32 pad5;
336
+ CARD32 pad6;
337
+ CARD32 pad7;
338
+ } xXF86DRICloseFullScreenReply;
339
+ #define sz_xXF86DRICloseFullScreenReply 32
340
+
341
+
342
+ #endif /* _XF86DRISTR_H_ */
data/miniconda3/envs/catiagent/include/X11/dri/xf86dristr.h ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #warning "xf86dristr.h is obsolete and may be removed in the future."
2
+ #warning "include <X11/dri/xf86driproto.h> for the protocol defines."
3
+ #include <X11/dri/xf86driproto.h>
data/miniconda3/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/include/X11/extensions/XIproto.h ADDED
@@ -0,0 +1,1758 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ #ifndef _XIPROTO_H
48
+ #define _XIPROTO_H
49
+
50
+ #include <X11/Xproto.h>
51
+ #include <X11/X.h>
52
+
53
+ /* make sure types have right sizes for protocol structures. */
54
+ #define Window CARD32
55
+ #define Time CARD32
56
+ #define KeyCode CARD8
57
+ #define Mask CARD32
58
+ #define Atom CARD32
59
+ #define Cursor CARD32
60
+
61
+ /*********************************************************
62
+ *
63
+ * number of events, errors, and extension name.
64
+ *
65
+ */
66
+
67
+ #define MORE_EVENTS 0x80
68
+ #define DEVICE_BITS 0x7F
69
+
70
+ #define InputClassBits 0x3F /* bits in mode field for input classes */
71
+ #define ModeBitsShift 6 /* amount to shift the remaining bits */
72
+
73
+ #define numInputClasses 7
74
+
75
+ #define IEVENTS 17 /* does NOT include generic events */
76
+ #define IERRORS 5
77
+ #define IREQUESTS 39
78
+
79
+ #define CLIENT_REQ 1
80
+
81
+ typedef struct _XExtEventInfo
82
+ {
83
+ Mask mask;
84
+ BYTE type;
85
+ BYTE word;
86
+ } XExtEventInfo;
87
+
88
+ #ifndef _XITYPEDEF_POINTER
89
+ typedef void *Pointer;
90
+ #endif
91
+
92
+ struct tmask
93
+ {
94
+ Mask mask;
95
+ void *dev;
96
+ };
97
+
98
+ /*********************************************************
99
+ *
100
+ * Event constants used by library.
101
+ *
102
+ */
103
+
104
+ #define XI_DeviceValuator 0
105
+ #define XI_DeviceKeyPress 1
106
+ #define XI_DeviceKeyRelease 2
107
+ #define XI_DeviceButtonPress 3
108
+ #define XI_DeviceButtonRelease 4
109
+ #define XI_DeviceMotionNotify 5
110
+ #define XI_DeviceFocusIn 6
111
+ #define XI_DeviceFocusOut 7
112
+ #define XI_ProximityIn 8
113
+ #define XI_ProximityOut 9
114
+ #define XI_DeviceStateNotify 10
115
+ #define XI_DeviceMappingNotify 11
116
+ #define XI_ChangeDeviceNotify 12
117
+ #define XI_DeviceKeystateNotify 13
118
+ #define XI_DeviceButtonstateNotify 14
119
+ #define XI_DevicePresenceNotify 15
120
+ #define XI_DevicePropertyNotify 16
121
+
122
+ /*********************************************************
123
+ *
124
+ * Protocol request constants
125
+ *
126
+ */
127
+
128
+ #define X_GetExtensionVersion 1
129
+ #define X_ListInputDevices 2
130
+ #define X_OpenDevice 3
131
+ #define X_CloseDevice 4
132
+ #define X_SetDeviceMode 5
133
+ #define X_SelectExtensionEvent 6
134
+ #define X_GetSelectedExtensionEvents 7
135
+ #define X_ChangeDeviceDontPropagateList 8
136
+ #define X_GetDeviceDontPropagateList 9
137
+ #define X_GetDeviceMotionEvents 10
138
+ #define X_ChangeKeyboardDevice 11
139
+ #define X_ChangePointerDevice 12
140
+ #define X_GrabDevice 13
141
+ #define X_UngrabDevice 14
142
+ #define X_GrabDeviceKey 15
143
+ #define X_UngrabDeviceKey 16
144
+ #define X_GrabDeviceButton 17
145
+ #define X_UngrabDeviceButton 18
146
+ #define X_AllowDeviceEvents 19
147
+ #define X_GetDeviceFocus 20
148
+ #define X_SetDeviceFocus 21
149
+ #define X_GetFeedbackControl 22
150
+ #define X_ChangeFeedbackControl 23
151
+ #define X_GetDeviceKeyMapping 24
152
+ #define X_ChangeDeviceKeyMapping 25
153
+ #define X_GetDeviceModifierMapping 26
154
+ #define X_SetDeviceModifierMapping 27
155
+ #define X_GetDeviceButtonMapping 28
156
+ #define X_SetDeviceButtonMapping 29
157
+ #define X_QueryDeviceState 30
158
+ #define X_SendExtensionEvent 31
159
+ #define X_DeviceBell 32
160
+ #define X_SetDeviceValuators 33
161
+ #define X_GetDeviceControl 34
162
+ #define X_ChangeDeviceControl 35
163
+ /* XI 1.5 */
164
+ #define X_ListDeviceProperties 36
165
+ #define X_ChangeDeviceProperty 37
166
+ #define X_DeleteDeviceProperty 38
167
+ #define X_GetDeviceProperty 39
168
+
169
+ /*********************************************************
170
+ *
171
+ * Protocol request and reply structures.
172
+ *
173
+ * GetExtensionVersion.
174
+ *
175
+ */
176
+
177
+ typedef struct {
178
+ CARD8 reqType; /* input extension major code */
179
+ CARD8 ReqType; /* always X_GetExtensionVersion */
180
+ CARD16 length;
181
+ CARD16 nbytes;
182
+ CARD8 pad1, pad2;
183
+ } xGetExtensionVersionReq;
184
+
185
+ typedef struct {
186
+ CARD8 repType; /* X_Reply */
187
+ CARD8 RepType; /* always X_GetExtensionVersion */
188
+ CARD16 sequenceNumber;
189
+ CARD32 length;
190
+ CARD16 major_version;
191
+ CARD16 minor_version;
192
+ BOOL present;
193
+ CARD8 pad1, pad2, pad3;
194
+ CARD32 pad01;
195
+ CARD32 pad02;
196
+ CARD32 pad03;
197
+ CARD32 pad04;
198
+ } xGetExtensionVersionReply;
199
+
200
+ /*********************************************************
201
+ *
202
+ * ListInputDevices.
203
+ *
204
+ */
205
+
206
+ typedef struct {
207
+ CARD8 reqType; /* input extension major code */
208
+ CARD8 ReqType; /* always X_ListInputDevices */
209
+ CARD16 length;
210
+ } xListInputDevicesReq;
211
+
212
+ typedef struct {
213
+ CARD8 repType; /* X_Reply */
214
+ CARD8 RepType; /* always X_ListInputDevices */
215
+ CARD16 sequenceNumber;
216
+ CARD32 length;
217
+ CARD8 ndevices;
218
+ CARD8 pad1, pad2, pad3;
219
+ CARD32 pad01;
220
+ CARD32 pad02;
221
+ CARD32 pad03;
222
+ CARD32 pad04;
223
+ CARD32 pad05;
224
+ } xListInputDevicesReply;
225
+
226
+ typedef struct _xDeviceInfo *xDeviceInfoPtr;
227
+
228
+ typedef struct _xAnyClassinfo *xAnyClassPtr;
229
+
230
+ typedef struct _xAnyClassinfo {
231
+ #if defined(__cplusplus) || defined(c_plusplus)
232
+ CARD8 c_class;
233
+ #else
234
+ CARD8 class;
235
+ #endif
236
+ CARD8 length;
237
+ } xAnyClassInfo;
238
+
239
+ typedef struct _xDeviceInfo {
240
+ CARD32 type;
241
+ CARD8 id;
242
+ CARD8 num_classes;
243
+ CARD8 use; /* IsXPointer | IsXKeyboard | IsXExtension... */
244
+ CARD8 attached; /* id of master dev (if IsXExtension..) */
245
+ } xDeviceInfo;
246
+
247
+ typedef struct _xKeyInfo *xKeyInfoPtr;
248
+
249
+ typedef struct _xKeyInfo {
250
+ #if defined(__cplusplus) || defined(c_plusplus)
251
+ CARD8 c_class;
252
+ #else
253
+ CARD8 class;
254
+ #endif
255
+ CARD8 length;
256
+ KeyCode min_keycode;
257
+ KeyCode max_keycode;
258
+ CARD16 num_keys;
259
+ CARD8 pad1,pad2;
260
+ } xKeyInfo;
261
+
262
+ typedef struct _xButtonInfo *xButtonInfoPtr;
263
+
264
+ typedef struct _xButtonInfo {
265
+ #if defined(__cplusplus) || defined(c_plusplus)
266
+ CARD8 c_class;
267
+ #else
268
+ CARD8 class;
269
+ #endif
270
+ CARD8 length;
271
+ CARD16 num_buttons;
272
+ } xButtonInfo;
273
+
274
+ typedef struct _xValuatorInfo *xValuatorInfoPtr;
275
+
276
+ typedef struct _xValuatorInfo {
277
+ #if defined(__cplusplus) || defined(c_plusplus)
278
+ CARD8 c_class;
279
+ #else
280
+ CARD8 class;
281
+ #endif
282
+ CARD8 length;
283
+ CARD8 num_axes;
284
+ CARD8 mode;
285
+ CARD32 motion_buffer_size;
286
+ } xValuatorInfo;
287
+
288
+ typedef struct _xAxisInfo *xAxisInfoPtr;
289
+
290
+ typedef struct _xAxisInfo {
291
+ CARD32 resolution;
292
+ CARD32 min_value;
293
+ CARD32 max_value;
294
+ } xAxisInfo;
295
+
296
+ /*********************************************************
297
+ *
298
+ * OpenDevice.
299
+ *
300
+ */
301
+
302
+ typedef struct {
303
+ CARD8 reqType; /* input extension major code */
304
+ CARD8 ReqType; /* always X_OpenDevice */
305
+ CARD16 length;
306
+ CARD8 deviceid;
307
+ BYTE pad1, pad2, pad3;
308
+ } xOpenDeviceReq;
309
+
310
+ typedef struct {
311
+ CARD8 repType; /* X_Reply */
312
+ CARD8 RepType; /* always X_OpenDevice */
313
+ CARD16 sequenceNumber;
314
+ CARD32 length;
315
+ CARD8 num_classes;
316
+ BYTE pad1, pad2, pad3;
317
+ CARD32 pad00;
318
+ CARD32 pad01;
319
+ CARD32 pad02;
320
+ CARD32 pad03;
321
+ CARD32 pad04;
322
+ } xOpenDeviceReply;
323
+
324
+ typedef struct {
325
+ #if defined(__cplusplus) || defined(c_plusplus)
326
+ CARD8 c_class;
327
+ #else
328
+ CARD8 class;
329
+ #endif
330
+ CARD8 event_type_base;
331
+ } xInputClassInfo;
332
+
333
+ /*********************************************************
334
+ *
335
+ * CloseDevice.
336
+ *
337
+ */
338
+
339
+ typedef struct {
340
+ CARD8 reqType; /* input extension major code */
341
+ CARD8 ReqType; /* always X_CloseDevice */
342
+ CARD16 length;
343
+ CARD8 deviceid;
344
+ BYTE pad1, pad2, pad3;
345
+ } xCloseDeviceReq;
346
+
347
+ /*********************************************************
348
+ *
349
+ * SetDeviceMode.
350
+ *
351
+ */
352
+
353
+ typedef struct {
354
+ CARD8 reqType; /* input extension major code */
355
+ CARD8 ReqType; /* always X_SetDeviceMode */
356
+ CARD16 length;
357
+ CARD8 deviceid;
358
+ CARD8 mode;
359
+ BYTE pad1, pad2;
360
+ } xSetDeviceModeReq;
361
+
362
+ typedef struct {
363
+ CARD8 repType; /* X_Reply */
364
+ CARD8 RepType; /* always X_SetDeviceMode */
365
+ CARD16 sequenceNumber;
366
+ CARD32 length;
367
+ CARD8 status;
368
+ BYTE pad1, pad2, pad3;
369
+ CARD32 pad01;
370
+ CARD32 pad02;
371
+ CARD32 pad03;
372
+ CARD32 pad04;
373
+ CARD32 pad05;
374
+ } xSetDeviceModeReply;
375
+
376
+ /*********************************************************
377
+ *
378
+ * SelectExtensionEvent.
379
+ *
380
+ */
381
+
382
+ typedef struct {
383
+ CARD8 reqType; /* input extension major code */
384
+ CARD8 ReqType; /* always X_SelectExtensionEvent */
385
+ CARD16 length;
386
+ Window window;
387
+ CARD16 count;
388
+ CARD16 pad00;
389
+ } xSelectExtensionEventReq;
390
+
391
+ /*********************************************************
392
+ *
393
+ * GetSelectedExtensionEvent.
394
+ *
395
+ */
396
+
397
+ typedef struct {
398
+ CARD8 reqType; /* input extension major code */
399
+ CARD8 ReqType; /* X_GetSelectedExtensionEvents */
400
+ CARD16 length;
401
+ Window window;
402
+ } xGetSelectedExtensionEventsReq;
403
+
404
+ typedef struct {
405
+ CARD8 repType; /* X_Reply */
406
+ CARD8 RepType; /* GetSelectedExtensionEvents */
407
+ CARD16 sequenceNumber;
408
+ CARD32 length;
409
+ CARD16 this_client_count;
410
+ CARD16 all_clients_count;
411
+ CARD32 pad01;
412
+ CARD32 pad02;
413
+ CARD32 pad03;
414
+ CARD32 pad04;
415
+ CARD32 pad05;
416
+ } xGetSelectedExtensionEventsReply;
417
+
418
+ /*********************************************************
419
+ *
420
+ * ChangeDeviceDontPropagateList.
421
+ *
422
+ */
423
+
424
+ typedef struct {
425
+ CARD8 reqType; /* input extension major code */
426
+ CARD8 ReqType; /* X_ChangeDeviceDontPropagateList */
427
+ CARD16 length;
428
+ Window window;
429
+ CARD16 count;
430
+ CARD8 mode;
431
+ BYTE pad;
432
+ } xChangeDeviceDontPropagateListReq;
433
+
434
+ /*********************************************************
435
+ *
436
+ * GetDeviceDontPropagateList.
437
+ *
438
+ */
439
+
440
+ typedef struct {
441
+ CARD8 reqType; /* input extension major code */
442
+ CARD8 ReqType; /* X_GetDeviceDontPropagateList */
443
+ CARD16 length;
444
+ Window window;
445
+ } xGetDeviceDontPropagateListReq;
446
+
447
+ typedef struct {
448
+ CARD8 repType; /* X_Reply */
449
+ CARD8 RepType; /* GetDeviceDontPropagateList */
450
+ CARD16 sequenceNumber;
451
+ CARD32 length;
452
+ CARD16 count;
453
+ CARD16 pad00;
454
+ CARD32 pad01;
455
+ CARD32 pad02;
456
+ CARD32 pad03;
457
+ CARD32 pad04;
458
+ CARD32 pad05;
459
+ } xGetDeviceDontPropagateListReply;
460
+
461
+ /*********************************************************
462
+ *
463
+ * GetDeviceMotionEvents.
464
+ *
465
+ */
466
+
467
+ typedef struct {
468
+ CARD8 reqType; /* input extension major code */
469
+ CARD8 ReqType; /* always X_GetDeviceMotionEvents*/
470
+ CARD16 length;
471
+ Time start;
472
+ Time stop;
473
+ CARD8 deviceid;
474
+ BYTE pad1, pad2, pad3;
475
+ } xGetDeviceMotionEventsReq;
476
+
477
+ typedef struct {
478
+ CARD8 repType; /* X_Reply */
479
+ CARD8 RepType; /* always X_GetDeviceMotionEvents */
480
+ CARD16 sequenceNumber;
481
+ CARD32 length;
482
+ CARD32 nEvents;
483
+ CARD8 axes;
484
+ CARD8 mode;
485
+ BYTE pad1, pad2;
486
+ CARD32 pad01;
487
+ CARD32 pad02;
488
+ CARD32 pad03;
489
+ CARD32 pad04;
490
+ } xGetDeviceMotionEventsReply;
491
+
492
+ /*********************************************************
493
+ *
494
+ * ChangeKeyboardDevice.
495
+ *
496
+ */
497
+
498
+ typedef struct {
499
+ CARD8 reqType; /* input extension major code */
500
+ CARD8 ReqType; /* X_ChangeKeyboardDevice */
501
+ CARD16 length;
502
+ CARD8 deviceid;
503
+ BYTE pad1, pad2, pad3;
504
+ } xChangeKeyboardDeviceReq;
505
+
506
+ typedef struct {
507
+ CARD8 repType; /* X_Reply */
508
+ CARD8 RepType; /* always X_ChangeKeyboardDevice*/
509
+ CARD16 sequenceNumber;
510
+ CARD32 length; /* 0 */
511
+ CARD8 status;
512
+ BYTE pad1, pad2, pad3;
513
+ CARD32 pad01;
514
+ CARD32 pad02;
515
+ CARD32 pad03;
516
+ CARD32 pad04;
517
+ CARD32 pad05;
518
+ } xChangeKeyboardDeviceReply;
519
+
520
+ /*********************************************************
521
+ *
522
+ * ChangePointerDevice.
523
+ *
524
+ */
525
+
526
+ typedef struct {
527
+ CARD8 reqType; /* input extension major code */
528
+ CARD8 ReqType; /* X_ChangePointerDevice */
529
+ CARD16 length;
530
+ CARD8 xaxis;
531
+ CARD8 yaxis;
532
+ CARD8 deviceid;
533
+ BYTE pad1;
534
+ } xChangePointerDeviceReq;
535
+
536
+ typedef struct {
537
+ CARD8 repType; /* X_Reply */
538
+ CARD8 RepType; /* always X_ChangePointerDevice */
539
+ CARD16 sequenceNumber;
540
+ CARD32 length; /* 0 */
541
+ CARD8 status;
542
+ BYTE pad1, pad2, pad3;
543
+ CARD32 pad01;
544
+ CARD32 pad02;
545
+ CARD32 pad03;
546
+ CARD32 pad04;
547
+ CARD32 pad05;
548
+ } xChangePointerDeviceReply;
549
+
550
+ /*********************************************************
551
+ *
552
+ * GrabDevice.
553
+ *
554
+ */
555
+
556
+ typedef struct {
557
+ CARD8 reqType; /* input extension major code */
558
+ CARD8 ReqType; /* always X_GrabDevice */
559
+ CARD16 length;
560
+ Window grabWindow;
561
+ Time time;
562
+ CARD16 event_count;
563
+ CARD8 this_device_mode;
564
+ CARD8 other_devices_mode;
565
+ BOOL ownerEvents;
566
+ CARD8 deviceid;
567
+ CARD16 pad01;
568
+ } xGrabDeviceReq;
569
+
570
+ typedef struct {
571
+ CARD8 repType; /* X_Reply */
572
+ CARD8 RepType; /* always X_GrabDevice */
573
+ CARD16 sequenceNumber;
574
+ CARD32 length; /* 0 */
575
+ CARD8 status;
576
+ BYTE pad1, pad2, pad3;
577
+ CARD32 pad01;
578
+ CARD32 pad02;
579
+ CARD32 pad03;
580
+ CARD32 pad04;
581
+ CARD32 pad05;
582
+ } xGrabDeviceReply;
583
+
584
+ /*********************************************************
585
+ *
586
+ * UngrabDevice.
587
+ *
588
+ */
589
+
590
+ typedef struct {
591
+ CARD8 reqType; /* input extension major code */
592
+ CARD8 ReqType; /* always X_UnGrabDevice */
593
+ CARD16 length;
594
+ Time time;
595
+ CARD8 deviceid;
596
+ BYTE pad1, pad2, pad3;
597
+ } xUngrabDeviceReq;
598
+
599
+ /*********************************************************
600
+ *
601
+ * GrabDeviceKey.
602
+ *
603
+ */
604
+
605
+ typedef struct {
606
+ CARD8 reqType; /* input extension major code */
607
+ CARD8 ReqType; /* always X_GrabDeviceKey */
608
+ CARD16 length;
609
+ Window grabWindow;
610
+ CARD16 event_count;
611
+ CARD16 modifiers;
612
+ CARD8 modifier_device;
613
+ CARD8 grabbed_device;
614
+ CARD8 key;
615
+ BYTE this_device_mode;
616
+ BYTE other_devices_mode;
617
+ BOOL ownerEvents;
618
+ BYTE pad1, pad2;
619
+ } xGrabDeviceKeyReq;
620
+
621
+ /*********************************************************
622
+ *
623
+ * UngrabDeviceKey.
624
+ *
625
+ */
626
+
627
+ typedef struct {
628
+ CARD8 reqType; /* input extension major code */
629
+ CARD8 ReqType; /* always X_UngrabDeviceKey */
630
+ CARD16 length;
631
+ Window grabWindow;
632
+ CARD16 modifiers;
633
+ CARD8 modifier_device;
634
+ CARD8 key;
635
+ CARD8 grabbed_device;
636
+ BYTE pad1, pad2, pad3;
637
+ } xUngrabDeviceKeyReq;
638
+
639
+ /*********************************************************
640
+ *
641
+ * GrabDeviceButton.
642
+ *
643
+ */
644
+
645
+ typedef struct {
646
+ CARD8 reqType; /* input extension major code */
647
+ CARD8 ReqType; /* always X_GrabDeviceButton */
648
+ CARD16 length;
649
+ Window grabWindow;
650
+ CARD8 grabbed_device;
651
+ CARD8 modifier_device;
652
+ CARD16 event_count;
653
+ CARD16 modifiers;
654
+ BYTE this_device_mode;
655
+ BYTE other_devices_mode;
656
+ CARD8 button;
657
+ BOOL ownerEvents;
658
+ BYTE pad1, pad2;
659
+ } xGrabDeviceButtonReq;
660
+
661
+ /*********************************************************
662
+ *
663
+ * UngrabDeviceButton.
664
+ *
665
+ */
666
+
667
+ typedef struct {
668
+ CARD8 reqType; /* input extension major code */
669
+ CARD8 ReqType; /* always X_UngrabDeviceButton */
670
+ CARD16 length;
671
+ Window grabWindow;
672
+ CARD16 modifiers;
673
+ CARD8 modifier_device;
674
+ CARD8 button;
675
+ CARD8 grabbed_device;
676
+ BYTE pad1, pad2, pad3;
677
+ } xUngrabDeviceButtonReq;
678
+
679
+ /*********************************************************
680
+ *
681
+ * AllowDeviceEvents.
682
+ *
683
+ */
684
+
685
+ typedef struct {
686
+ CARD8 reqType; /* input extension major code */
687
+ CARD8 ReqType; /* always X_AllowDeviceEvents */
688
+ CARD16 length;
689
+ Time time;
690
+ CARD8 mode;
691
+ CARD8 deviceid;
692
+ BYTE pad1, pad2;
693
+ } xAllowDeviceEventsReq;
694
+
695
+ /*********************************************************
696
+ *
697
+ * GetDeviceFocus.
698
+ *
699
+ */
700
+
701
+ typedef struct {
702
+ CARD8 reqType; /* input extension major code */
703
+ CARD8 ReqType; /* always X_GetDeviceFocus */
704
+ CARD16 length;
705
+ CARD8 deviceid;
706
+ BYTE pad1, pad2, pad3;
707
+ } xGetDeviceFocusReq;
708
+
709
+ typedef struct {
710
+ CARD8 repType; /* X_Reply */
711
+ CARD8 RepType; /* always X_GetDeviceFocus */
712
+ CARD16 sequenceNumber;
713
+ CARD32 length;
714
+ CARD32 focus;
715
+ Time time;
716
+ CARD8 revertTo;
717
+ BYTE pad1, pad2, pad3;
718
+ CARD32 pad01;
719
+ CARD32 pad02;
720
+ CARD32 pad03;
721
+ } xGetDeviceFocusReply;
722
+
723
+ /*********************************************************
724
+ *
725
+ * SetDeviceFocus.
726
+ *
727
+ */
728
+
729
+ typedef struct {
730
+ CARD8 reqType; /* input extension major code */
731
+ CARD8 ReqType; /* always X_SetDeviceFocus */
732
+ CARD16 length;
733
+ Window focus;
734
+ Time time;
735
+ CARD8 revertTo;
736
+ CARD8 device;
737
+ CARD16 pad01;
738
+ } xSetDeviceFocusReq;
739
+
740
+ /*********************************************************
741
+ *
742
+ * GetFeedbackControl.
743
+ *
744
+ */
745
+
746
+ typedef struct {
747
+ CARD8 reqType; /* input extension major code */
748
+ CARD8 ReqType; /* X_GetFeedbackControl */
749
+ CARD16 length;
750
+ CARD8 deviceid;
751
+ BYTE pad1, pad2, pad3;
752
+ } xGetFeedbackControlReq;
753
+
754
+ typedef struct {
755
+ CARD8 repType; /* X_Reply */
756
+ CARD8 RepType; /* always X_GetFeedbackControl */
757
+ CARD16 sequenceNumber;
758
+ CARD32 length;
759
+ CARD16 num_feedbacks;
760
+ CARD16 pad01;
761
+ CARD32 pad02;
762
+ CARD32 pad03;
763
+ CARD32 pad04;
764
+ CARD32 pad05;
765
+ CARD32 pad06;
766
+ } xGetFeedbackControlReply;
767
+
768
+ typedef struct {
769
+ #if defined(__cplusplus) || defined(c_plusplus)
770
+ CARD8 c_class; /* feedback class */
771
+ #else
772
+ CARD8 class; /* feedback class */
773
+ #endif
774
+ CARD8 id; /* feedback id */
775
+ CARD16 length; /* feedback length */
776
+ } xFeedbackState;
777
+
778
+ typedef struct {
779
+ #if defined(__cplusplus) || defined(c_plusplus)
780
+ CARD8 c_class;
781
+ #else
782
+ CARD8 class;
783
+ #endif
784
+ CARD8 id;
785
+ CARD16 length;
786
+ CARD16 pitch;
787
+ CARD16 duration;
788
+ CARD32 led_mask;
789
+ CARD32 led_values;
790
+ BOOL global_auto_repeat;
791
+ CARD8 click;
792
+ CARD8 percent;
793
+ BYTE pad;
794
+ BYTE auto_repeats[32];
795
+ } xKbdFeedbackState;
796
+
797
+ typedef struct {
798
+ #if defined(__cplusplus) || defined(c_plusplus)
799
+ CARD8 c_class;
800
+ #else
801
+ CARD8 class;
802
+ #endif
803
+ CARD8 id;
804
+ CARD16 length;
805
+ CARD8 pad1,pad2;
806
+ CARD16 accelNum;
807
+ CARD16 accelDenom;
808
+ CARD16 threshold;
809
+ } xPtrFeedbackState;
810
+
811
+ typedef struct {
812
+ #if defined(__cplusplus) || defined(c_plusplus)
813
+ CARD8 c_class; /* feedback class id */
814
+ #else
815
+ CARD8 class; /* feedback class id */
816
+ #endif
817
+ CARD8 id;
818
+ CARD16 length; /* feedback length */
819
+ CARD32 resolution;
820
+ INT32 min_value;
821
+ INT32 max_value;
822
+ } xIntegerFeedbackState;
823
+
824
+ typedef struct {
825
+ #if defined(__cplusplus) || defined(c_plusplus)
826
+ CARD8 c_class; /* feedback class id */
827
+ #else
828
+ CARD8 class; /* feedback class id */
829
+ #endif
830
+ CARD8 id;
831
+ CARD16 length; /* feedback length */
832
+ CARD16 max_symbols;
833
+ CARD16 num_syms_supported;
834
+ } xStringFeedbackState;
835
+
836
+ typedef struct {
837
+ #if defined(__cplusplus) || defined(c_plusplus)
838
+ CARD8 c_class; /* feedback class id */
839
+ #else
840
+ CARD8 class; /* feedback class id */
841
+ #endif
842
+ CARD8 id;
843
+ CARD16 length; /* feedback length */
844
+ CARD8 percent;
845
+ BYTE pad1, pad2, pad3;
846
+ CARD16 pitch;
847
+ CARD16 duration;
848
+ } xBellFeedbackState;
849
+
850
+ typedef struct {
851
+ #if defined(__cplusplus) || defined(c_plusplus)
852
+ CARD8 c_class; /* feedback class id */
853
+ #else
854
+ CARD8 class; /* feedback class id */
855
+ #endif
856
+ CARD8 id;
857
+ CARD16 length; /* feedback length */
858
+ CARD32 led_mask;
859
+ CARD32 led_values;
860
+ } xLedFeedbackState;
861
+
862
+ /*********************************************************
863
+ *
864
+ * ChangeFeedbackControl.
865
+ *
866
+ */
867
+
868
+ typedef struct {
869
+ CARD8 reqType; /* input extension major code */
870
+ CARD8 ReqType; /* X_ChangeFeedbackControl */
871
+ CARD16 length;
872
+ CARD32 mask;
873
+ CARD8 deviceid;
874
+ CARD8 feedbackid;
875
+ BYTE pad1, pad2;
876
+ } xChangeFeedbackControlReq;
877
+
878
+ typedef struct {
879
+ #if defined(__cplusplus) || defined(c_plusplus)
880
+ CARD8 c_class; /* feedback class id */
881
+ #else
882
+ CARD8 class; /* feedback class id */
883
+ #endif
884
+ CARD8 id; /* feedback id */
885
+ CARD16 length; /* feedback length */
886
+ } xFeedbackCtl;
887
+
888
+ typedef struct {
889
+ #if defined(__cplusplus) || defined(c_plusplus)
890
+ CARD8 c_class; /* feedback class id */
891
+ #else
892
+ CARD8 class; /* feedback class id */
893
+ #endif
894
+ CARD8 id; /* feedback length */
895
+ CARD16 length; /* feedback length */
896
+ KeyCode key;
897
+ CARD8 auto_repeat_mode;
898
+ INT8 click;
899
+ INT8 percent;
900
+ INT16 pitch;
901
+ INT16 duration;
902
+ CARD32 led_mask;
903
+ CARD32 led_values;
904
+ } xKbdFeedbackCtl;
905
+
906
+ typedef struct {
907
+ #if defined(__cplusplus) || defined(c_plusplus)
908
+ CARD8 c_class; /* feedback class id */
909
+ #else
910
+ CARD8 class; /* feedback class id */
911
+ #endif
912
+ CARD8 id; /* feedback id */
913
+ CARD16 length; /* feedback length */
914
+ CARD8 pad1,pad2;
915
+ INT16 num;
916
+ INT16 denom;
917
+ INT16 thresh;
918
+ } xPtrFeedbackCtl;
919
+
920
+ typedef struct {
921
+ #if defined(__cplusplus) || defined(c_plusplus)
922
+ CARD8 c_class; /* feedback class id */
923
+ #else
924
+ CARD8 class; /* feedback class id */
925
+ #endif
926
+ CARD8 id; /* feedback id */
927
+ CARD16 length; /* feedback length */
928
+ INT32 int_to_display;
929
+ } xIntegerFeedbackCtl;
930
+
931
+ typedef struct {
932
+ #if defined(__cplusplus) || defined(c_plusplus)
933
+ CARD8 c_class; /* feedback class id */
934
+ #else
935
+ CARD8 class; /* feedback class id */
936
+ #endif
937
+ CARD8 id; /* feedback id */
938
+ CARD16 length; /* feedback length */
939
+ CARD8 pad1,pad2;
940
+ CARD16 num_keysyms;
941
+ } xStringFeedbackCtl;
942
+
943
+ typedef struct {
944
+ #if defined(__cplusplus) || defined(c_plusplus)
945
+ CARD8 c_class; /* feedback class id */
946
+ #else
947
+ CARD8 class; /* feedback class id */
948
+ #endif
949
+ CARD8 id; /* feedback id */
950
+ CARD16 length; /* feedback length */
951
+ INT8 percent;
952
+ BYTE pad1, pad2, pad3;
953
+ INT16 pitch;
954
+ INT16 duration;
955
+ } xBellFeedbackCtl;
956
+
957
+ typedef struct {
958
+ #if defined(__cplusplus) || defined(c_plusplus)
959
+ CARD8 c_class; /* feedback class id */
960
+ #else
961
+ CARD8 class; /* feedback class id */
962
+ #endif
963
+ CARD8 id; /* feedback id */
964
+ CARD16 length; /* feedback length */
965
+ CARD32 led_mask;
966
+ CARD32 led_values;
967
+ } xLedFeedbackCtl;
968
+
969
+ /*********************************************************
970
+ *
971
+ * GetDeviceKeyMapping.
972
+ *
973
+ */
974
+
975
+ typedef struct {
976
+ CARD8 reqType; /* input extension major code */
977
+ CARD8 ReqType; /* always X_GetDeviceKeyMapping */
978
+ CARD16 length;
979
+ CARD8 deviceid;
980
+ KeyCode firstKeyCode;
981
+ CARD8 count;
982
+ BYTE pad1;
983
+ } xGetDeviceKeyMappingReq;
984
+
985
+ typedef struct {
986
+ CARD8 repType; /* X_Reply */
987
+ CARD8 RepType; /* always X_GetDeviceKeyMapping */
988
+ CARD16 sequenceNumber;
989
+ CARD32 length;
990
+ CARD8 keySymsPerKeyCode;
991
+ CARD8 pad0;
992
+ CARD16 pad1;
993
+ CARD32 pad2;
994
+ CARD32 pad3;
995
+ CARD32 pad4;
996
+ CARD32 pad5;
997
+ CARD32 pad6;
998
+ } xGetDeviceKeyMappingReply;
999
+
1000
+ /*********************************************************
1001
+ *
1002
+ * ChangeDeviceKeyMapping.
1003
+ *
1004
+ */
1005
+
1006
+ typedef struct {
1007
+ CARD8 reqType; /* input extension major code */
1008
+ CARD8 ReqType; /* always X_ChangeDeviceKeyMapping */
1009
+ CARD16 length;
1010
+ CARD8 deviceid;
1011
+ KeyCode firstKeyCode;
1012
+ CARD8 keySymsPerKeyCode;
1013
+ CARD8 keyCodes;
1014
+ } xChangeDeviceKeyMappingReq;
1015
+
1016
+ /*********************************************************
1017
+ *
1018
+ * GetDeviceModifierMapping.
1019
+ *
1020
+ */
1021
+
1022
+ typedef struct {
1023
+ CARD8 reqType; /* input extension major code */
1024
+ CARD8 ReqType; /* always X_GetDeviceModifierMapping */
1025
+ CARD16 length;
1026
+ CARD8 deviceid;
1027
+ BYTE pad1, pad2, pad3;
1028
+ } xGetDeviceModifierMappingReq;
1029
+
1030
+ typedef struct {
1031
+ CARD8 repType; /* X_Reply */
1032
+ CARD8 RepType; /* always X_GetDeviceModifierMapping */
1033
+ CARD16 sequenceNumber;
1034
+ CARD32 length;
1035
+ CARD8 numKeyPerModifier;
1036
+ CARD8 pad0;
1037
+ CARD16 pad1;
1038
+ CARD32 pad2;
1039
+ CARD32 pad3;
1040
+ CARD32 pad4;
1041
+ CARD32 pad5;
1042
+ CARD32 pad6;
1043
+ } xGetDeviceModifierMappingReply;
1044
+
1045
+ /*********************************************************
1046
+ *
1047
+ * SetDeviceModifierMapping.
1048
+ *
1049
+ */
1050
+
1051
+ typedef struct {
1052
+ CARD8 reqType; /* input extension major code */
1053
+ CARD8 ReqType; /* always X_SetDeviceModifierMapping */
1054
+ CARD16 length;
1055
+ CARD8 deviceid;
1056
+ CARD8 numKeyPerModifier;
1057
+ CARD16 pad1;
1058
+ } xSetDeviceModifierMappingReq;
1059
+
1060
+ typedef struct {
1061
+ CARD8 repType; /* X_Reply */
1062
+ CARD8 RepType; /* always X_SetDeviceModifierMapping */
1063
+ CARD16 sequenceNumber;
1064
+ CARD32 length;
1065
+ CARD8 success;
1066
+ CARD8 pad0;
1067
+ CARD16 pad1;
1068
+ CARD32 pad2;
1069
+ CARD32 pad3;
1070
+ CARD32 pad4;
1071
+ CARD32 pad5;
1072
+ CARD32 pad6;
1073
+ } xSetDeviceModifierMappingReply;
1074
+
1075
+ /*********************************************************
1076
+ *
1077
+ * GetDeviceButtonMapping.
1078
+ *
1079
+ */
1080
+
1081
+ typedef struct {
1082
+ CARD8 reqType; /* input extension major code */
1083
+ CARD8 ReqType; /* X_GetDeviceButtonMapping */
1084
+ CARD16 length;
1085
+ CARD8 deviceid;
1086
+ BYTE pad1, pad2, pad3;
1087
+ } xGetDeviceButtonMappingReq;
1088
+
1089
+ typedef struct {
1090
+ CARD8 repType; /* X_Reply */
1091
+ CARD8 RepType; /* always X_GetDeviceButtonMapping */
1092
+ CARD16 sequenceNumber;
1093
+ CARD32 length;
1094
+ CARD8 nElts;
1095
+ BYTE pad1, pad2, pad3;
1096
+ CARD32 pad01;
1097
+ CARD32 pad02;
1098
+ CARD32 pad03;
1099
+ CARD32 pad04;
1100
+ CARD32 pad05;
1101
+ } xGetDeviceButtonMappingReply;
1102
+
1103
+ /*********************************************************
1104
+ *
1105
+ * SetDeviceButtonMapping.
1106
+ *
1107
+ */
1108
+
1109
+ typedef struct {
1110
+ CARD8 reqType; /* input extension major code */
1111
+ CARD8 ReqType; /* X_SetDeviceButtonMapping */
1112
+ CARD16 length;
1113
+ CARD8 deviceid;
1114
+ CARD8 map_length;
1115
+ BYTE pad1, pad2;
1116
+ } xSetDeviceButtonMappingReq;
1117
+
1118
+ typedef struct {
1119
+ CARD8 repType; /* X_Reply */
1120
+ CARD8 RepType; /* always X_SetDeviceButtonMapping */
1121
+ CARD16 sequenceNumber;
1122
+ CARD32 length;
1123
+ CARD8 status;
1124
+ BYTE pad0;
1125
+ CARD16 pad1;
1126
+ CARD32 pad2;
1127
+ CARD32 pad3;
1128
+ CARD32 pad4;
1129
+ CARD32 pad5;
1130
+ CARD32 pad6;
1131
+ } xSetDeviceButtonMappingReply;
1132
+
1133
+ /*********************************************************
1134
+ *
1135
+ * QueryDeviceState.
1136
+ *
1137
+ */
1138
+
1139
+ typedef struct {
1140
+ CARD8 reqType;
1141
+ CARD8 ReqType; /* always X_QueryDeviceState */
1142
+ CARD16 length;
1143
+ CARD8 deviceid;
1144
+ BYTE pad1, pad2, pad3;
1145
+ } xQueryDeviceStateReq;
1146
+
1147
+ typedef struct {
1148
+ CARD8 repType; /* X_Reply */
1149
+ CARD8 RepType; /* always X_QueryDeviceState */
1150
+ CARD16 sequenceNumber;
1151
+ CARD32 length;
1152
+ CARD8 num_classes;
1153
+ BYTE pad0;
1154
+ CARD16 pad1;
1155
+ CARD32 pad2;
1156
+ CARD32 pad3;
1157
+ CARD32 pad4;
1158
+ CARD32 pad5;
1159
+ CARD32 pad6;
1160
+ } xQueryDeviceStateReply;
1161
+
1162
+ typedef struct {
1163
+ #if defined(__cplusplus) || defined(c_plusplus)
1164
+ CARD8 c_class;
1165
+ #else
1166
+ CARD8 class;
1167
+ #endif
1168
+ CARD8 length;
1169
+ CARD8 num_keys;
1170
+ BYTE pad1;
1171
+ CARD8 keys[32];
1172
+ } xKeyState;
1173
+
1174
+ typedef struct {
1175
+ #if defined(__cplusplus) || defined(c_plusplus)
1176
+ CARD8 c_class;
1177
+ #else
1178
+ CARD8 class;
1179
+ #endif
1180
+ CARD8 length;
1181
+ CARD8 num_buttons;
1182
+ BYTE pad1;
1183
+ CARD8 buttons[32];
1184
+ } xButtonState;
1185
+
1186
+ typedef struct {
1187
+ #if defined(__cplusplus) || defined(c_plusplus)
1188
+ CARD8 c_class;
1189
+ #else
1190
+ CARD8 class;
1191
+ #endif
1192
+ CARD8 length;
1193
+ CARD8 num_valuators;
1194
+ CARD8 mode;
1195
+ } xValuatorState;
1196
+
1197
+ /*********************************************************
1198
+ *
1199
+ * SendExtensionEvent.
1200
+ * THIS REQUEST MUST BE KEPT A MULTIPLE OF 8 BYTES IN LENGTH!
1201
+ * MORE EVENTS MAY FOLLOW AND THEY MUST BE QUAD-ALIGNED!
1202
+ *
1203
+ */
1204
+
1205
+ typedef struct {
1206
+ CARD8 reqType;
1207
+ CARD8 ReqType; /* always X_SendExtensionEvent */
1208
+ CARD16 length;
1209
+ Window destination;
1210
+ CARD8 deviceid;
1211
+ BOOL propagate;
1212
+ CARD16 count;
1213
+ CARD8 num_events;
1214
+ BYTE pad1,pad2,pad3;
1215
+ } xSendExtensionEventReq;
1216
+
1217
+ /*********************************************************
1218
+ *
1219
+ * DeviceBell.
1220
+ *
1221
+ */
1222
+
1223
+ typedef struct {
1224
+ CARD8 reqType;
1225
+ CARD8 ReqType; /* always X_DeviceBell */
1226
+ CARD16 length;
1227
+ CARD8 deviceid;
1228
+ CARD8 feedbackid;
1229
+ CARD8 feedbackclass;
1230
+ INT8 percent;
1231
+ } xDeviceBellReq;
1232
+
1233
+ /*********************************************************
1234
+ *
1235
+ * SetDeviceValuators.
1236
+ *
1237
+ */
1238
+
1239
+ typedef struct {
1240
+ CARD8 reqType; /* input extension major code */
1241
+ CARD8 ReqType; /* always X_SetDeviceValuators */
1242
+ CARD16 length;
1243
+ CARD8 deviceid;
1244
+ CARD8 first_valuator;
1245
+ CARD8 num_valuators;
1246
+ BYTE pad1;
1247
+ } xSetDeviceValuatorsReq;
1248
+
1249
+ typedef struct {
1250
+ CARD8 repType; /* X_Reply */
1251
+ CARD8 RepType; /* always X_SetDeviceValuators */
1252
+ CARD16 sequenceNumber;
1253
+ CARD32 length;
1254
+ CARD8 status;
1255
+ BYTE pad1, pad2, pad3;
1256
+ CARD32 pad01;
1257
+ CARD32 pad02;
1258
+ CARD32 pad03;
1259
+ CARD32 pad04;
1260
+ CARD32 pad05;
1261
+ } xSetDeviceValuatorsReply;
1262
+
1263
+ /*********************************************************
1264
+ *
1265
+ * GetDeviceControl.
1266
+ *
1267
+ */
1268
+
1269
+ typedef struct {
1270
+ CARD8 reqType; /* input extension major code */
1271
+ CARD8 ReqType; /* always X_GetDeviceControl */
1272
+ CARD16 length;
1273
+ CARD16 control;
1274
+ CARD8 deviceid;
1275
+ BYTE pad2;
1276
+ } xGetDeviceControlReq;
1277
+
1278
+ typedef struct {
1279
+ CARD8 repType; /* X_Reply */
1280
+ CARD8 RepType; /* always X_GetDeviceControl */
1281
+ CARD16 sequenceNumber;
1282
+ CARD32 length;
1283
+ CARD8 status;
1284
+ BYTE pad1, pad2, pad3;
1285
+ CARD32 pad01;
1286
+ CARD32 pad02;
1287
+ CARD32 pad03;
1288
+ CARD32 pad04;
1289
+ CARD32 pad05;
1290
+ } xGetDeviceControlReply;
1291
+
1292
+ typedef struct {
1293
+ CARD16 control; /* control type */
1294
+ CARD16 length; /* control length */
1295
+ } xDeviceState;
1296
+
1297
+ typedef struct {
1298
+ CARD16 control; /* control type */
1299
+ CARD16 length; /* control length */
1300
+ CARD32 num_valuators; /* number of valuators */
1301
+ } xDeviceResolutionState;
1302
+
1303
+ typedef struct {
1304
+ CARD16 control;
1305
+ CARD16 length;
1306
+ INT32 min_x;
1307
+ INT32 max_x;
1308
+ INT32 min_y;
1309
+ INT32 max_y;
1310
+ CARD32 flip_x;
1311
+ CARD32 flip_y;
1312
+ CARD32 rotation;
1313
+ CARD32 button_threshold;
1314
+ } xDeviceAbsCalibState;
1315
+
1316
+ typedef struct {
1317
+ CARD16 control;
1318
+ CARD16 length;
1319
+ CARD32 offset_x;
1320
+ CARD32 offset_y;
1321
+ CARD32 width;
1322
+ CARD32 height;
1323
+ CARD32 screen;
1324
+ CARD32 following;
1325
+ } xDeviceAbsAreaState;
1326
+
1327
+ typedef struct {
1328
+ CARD16 control; /* control type */
1329
+ CARD16 length; /* control length */
1330
+ CARD8 status;
1331
+ CARD8 iscore;
1332
+ CARD16 pad1;
1333
+ } xDeviceCoreState;
1334
+
1335
+ typedef struct {
1336
+ CARD16 control; /* control type */
1337
+ CARD16 length; /* control length */
1338
+ CARD8 enable;
1339
+ CARD8 pad0;
1340
+ CARD16 pad1;
1341
+ } xDeviceEnableState;
1342
+
1343
+ /*********************************************************
1344
+ *
1345
+ * ChangeDeviceControl.
1346
+ *
1347
+ */
1348
+
1349
+ typedef struct {
1350
+ CARD8 reqType; /* input extension major code */
1351
+ CARD8 ReqType; /* always X_ChangeDeviceControl */
1352
+ CARD16 length;
1353
+ CARD16 control;
1354
+ CARD8 deviceid;
1355
+ BYTE pad0;
1356
+ } xChangeDeviceControlReq;
1357
+
1358
+ typedef struct {
1359
+ CARD8 repType; /* X_Reply */
1360
+ CARD8 RepType; /* always X_ChangeDeviceControl */
1361
+ CARD16 sequenceNumber;
1362
+ CARD32 length;
1363
+ CARD8 status;
1364
+ BYTE pad1, pad2, pad3;
1365
+ CARD32 pad01;
1366
+ CARD32 pad02;
1367
+ CARD32 pad03;
1368
+ CARD32 pad04;
1369
+ CARD32 pad05;
1370
+ } xChangeDeviceControlReply;
1371
+
1372
+ typedef struct {
1373
+ CARD16 control; /* control type */
1374
+ CARD16 length; /* control length */
1375
+ } xDeviceCtl;
1376
+
1377
+ typedef struct {
1378
+ CARD16 control; /* control type */
1379
+ CARD16 length; /* control length */
1380
+ CARD8 first_valuator; /* first valuator to change */
1381
+ CARD8 num_valuators; /* number of valuators to change*/
1382
+ CARD8 pad1,pad2;
1383
+ } xDeviceResolutionCtl;
1384
+
1385
+ typedef struct {
1386
+ CARD16 control;
1387
+ CARD16 length;
1388
+ INT32 min_x;
1389
+ INT32 max_x;
1390
+ INT32 min_y;
1391
+ INT32 max_y;
1392
+ CARD32 flip_x;
1393
+ CARD32 flip_y;
1394
+ CARD32 rotation;
1395
+ CARD32 button_threshold;
1396
+ } xDeviceAbsCalibCtl;
1397
+
1398
+ typedef struct {
1399
+ CARD16 control;
1400
+ CARD16 length;
1401
+ CARD32 offset_x;
1402
+ CARD32 offset_y;
1403
+ INT32 width;
1404
+ INT32 height;
1405
+ INT32 screen;
1406
+ CARD32 following;
1407
+ } xDeviceAbsAreaCtl;
1408
+
1409
+ typedef struct {
1410
+ CARD16 control;
1411
+ CARD16 length;
1412
+ CARD8 status;
1413
+ CARD8 pad0;
1414
+ CARD16 pad1;
1415
+ } xDeviceCoreCtl;
1416
+
1417
+ typedef struct {
1418
+ CARD16 control;
1419
+ CARD16 length;
1420
+ CARD8 enable;
1421
+ CARD8 pad0;
1422
+ CARD16 pad1;
1423
+ } xDeviceEnableCtl;
1424
+
1425
+ /* XI 1.5 */
1426
+
1427
+ /*********************************************************
1428
+ *
1429
+ * ListDeviceProperties.
1430
+ *
1431
+ */
1432
+
1433
+ typedef struct {
1434
+ CARD8 reqType; /* input extension major opcode */
1435
+ CARD8 ReqType; /* always X_ListDeviceProperties */
1436
+ CARD16 length;
1437
+ CARD8 deviceid;
1438
+ CARD8 pad0;
1439
+ CARD16 pad1;
1440
+ } xListDevicePropertiesReq;
1441
+
1442
+ typedef struct {
1443
+ CARD8 repType; /* X_Reply */
1444
+ CARD8 RepType; /* always X_ListDeviceProperties */
1445
+ CARD16 sequenceNumber;
1446
+ CARD32 length;
1447
+ CARD16 nAtoms;
1448
+ CARD16 pad1;
1449
+ CARD32 pad2;
1450
+ CARD32 pad3;
1451
+ CARD32 pad4;
1452
+ CARD32 pad5;
1453
+ CARD32 pad6;
1454
+ } xListDevicePropertiesReply;
1455
+
1456
+ /*********************************************************
1457
+ *
1458
+ * ChangeDeviceProperty.
1459
+ *
1460
+ */
1461
+
1462
+ typedef struct {
1463
+ CARD8 reqType; /* input extension major opcode */
1464
+ CARD8 ReqType; /* always X_ChangeDeviceProperty */
1465
+ CARD16 length;
1466
+ Atom property;
1467
+ Atom type;
1468
+ CARD8 deviceid;
1469
+ CARD8 format;
1470
+ CARD8 mode;
1471
+ CARD8 pad;
1472
+ CARD32 nUnits;
1473
+ } xChangeDevicePropertyReq;
1474
+
1475
+ /*********************************************************
1476
+ *
1477
+ * DeleteDeviceProperty.
1478
+ *
1479
+ */
1480
+
1481
+ typedef struct {
1482
+ CARD8 reqType; /* input extension major opcode */
1483
+ CARD8 ReqType; /* always X_DeleteDeviceProperty */
1484
+ CARD16 length;
1485
+ Atom property;
1486
+ CARD8 deviceid;
1487
+ CARD8 pad0;
1488
+ CARD16 pad1;
1489
+ } xDeleteDevicePropertyReq;
1490
+
1491
+ /*********************************************************
1492
+ *
1493
+ * GetDeviceProperty.
1494
+ *
1495
+ */
1496
+
1497
+ typedef struct {
1498
+ CARD8 reqType; /* input extension major opcode */
1499
+ CARD8 ReqType; /* always X_GetDeviceProperty */
1500
+ CARD16 length;
1501
+ Atom property;
1502
+ Atom type;
1503
+ CARD32 longOffset;
1504
+ CARD32 longLength;
1505
+ CARD8 deviceid;
1506
+ #if defined(__cplusplus) || defined(c_plusplus)
1507
+ BOOL c_delete;
1508
+ #else
1509
+ BOOL delete;
1510
+ #endif
1511
+ CARD16 pad;
1512
+ } xGetDevicePropertyReq;
1513
+
1514
+ typedef struct {
1515
+ CARD8 repType; /* X_Reply */
1516
+ CARD8 RepType; /* always X_GetDeviceProperty */
1517
+ CARD16 sequenceNumber;
1518
+ CARD32 length;
1519
+ Atom propertyType;
1520
+ CARD32 bytesAfter;
1521
+ CARD32 nItems;
1522
+ CARD8 format;
1523
+ CARD8 deviceid;
1524
+ CARD16 pad1;
1525
+ CARD32 pad2;
1526
+ CARD32 pad3;
1527
+ } xGetDevicePropertyReply;
1528
+
1529
+
1530
+ /**********************************************************
1531
+ *
1532
+ * Input extension events.
1533
+ *
1534
+ * DeviceValuator
1535
+ *
1536
+ */
1537
+
1538
+ typedef struct
1539
+ {
1540
+ BYTE type;
1541
+ CARD8 deviceid;
1542
+ CARD16 sequenceNumber;
1543
+ KeyButMask device_state;
1544
+ CARD8 num_valuators;
1545
+ CARD8 first_valuator;
1546
+ INT32 valuator0;
1547
+ INT32 valuator1;
1548
+ INT32 valuator2;
1549
+ INT32 valuator3;
1550
+ INT32 valuator4;
1551
+ INT32 valuator5;
1552
+ } deviceValuator;
1553
+
1554
+ /**********************************************************
1555
+ *
1556
+ * DeviceKeyButtonPointer.
1557
+ *
1558
+ * Used for: DeviceKeyPress, DeviceKeyRelease,
1559
+ * DeviceButtonPress, DeviceButtonRelease,
1560
+ * ProximityIn, ProximityOut
1561
+ * DeviceMotionNotify,
1562
+ *
1563
+ */
1564
+
1565
+ typedef struct
1566
+ {
1567
+ BYTE type;
1568
+ BYTE detail;
1569
+ CARD16 sequenceNumber;
1570
+ Time time;
1571
+ Window root;
1572
+ Window event;
1573
+ Window child;
1574
+ INT16 root_x;
1575
+ INT16 root_y;
1576
+ INT16 event_x;
1577
+ INT16 event_y;
1578
+ KeyButMask state;
1579
+ BOOL same_screen;
1580
+ CARD8 deviceid;
1581
+ } deviceKeyButtonPointer;
1582
+
1583
+ /**********************************************************
1584
+ *
1585
+ * DeviceFocus.
1586
+ *
1587
+ */
1588
+
1589
+ typedef struct
1590
+ {
1591
+ BYTE type;
1592
+ BYTE detail;
1593
+ CARD16 sequenceNumber;
1594
+ Time time;
1595
+ Window window;
1596
+ BYTE mode;
1597
+ CARD8 deviceid;
1598
+ BYTE pad1, pad2;
1599
+ CARD32 pad00;
1600
+ CARD32 pad01;
1601
+ CARD32 pad02;
1602
+ CARD32 pad03;
1603
+ } deviceFocus;
1604
+
1605
+ /**********************************************************
1606
+ *
1607
+ * DeviceStateNotify.
1608
+ *
1609
+ * Note that the two high-order bits in the classes_reported
1610
+ * field are the proximity state (InProximity or OutOfProximity),
1611
+ * and the device mode (Absolute or Relative), respectively.
1612
+ *
1613
+ */
1614
+
1615
+ typedef struct
1616
+ {
1617
+ BYTE type;
1618
+ BYTE deviceid;
1619
+ CARD16 sequenceNumber;
1620
+ Time time;
1621
+ CARD8 num_keys;
1622
+ CARD8 num_buttons;
1623
+ CARD8 num_valuators;
1624
+ CARD8 classes_reported;
1625
+ CARD8 buttons[4];
1626
+ CARD8 keys[4];
1627
+ INT32 valuator0;
1628
+ INT32 valuator1;
1629
+ INT32 valuator2;
1630
+ } deviceStateNotify;
1631
+
1632
+ /**********************************************************
1633
+ *
1634
+ * DeviceKeyStateNotify.
1635
+ *
1636
+ */
1637
+
1638
+ typedef struct
1639
+ {
1640
+ BYTE type;
1641
+ BYTE deviceid;
1642
+ CARD16 sequenceNumber;
1643
+ CARD8 keys[28];
1644
+ } deviceKeyStateNotify;
1645
+
1646
+ /**********************************************************
1647
+ *
1648
+ * DeviceButtonStateNotify.
1649
+ *
1650
+ */
1651
+
1652
+ typedef struct
1653
+ {
1654
+ BYTE type;
1655
+ BYTE deviceid;
1656
+ CARD16 sequenceNumber;
1657
+ CARD8 buttons[28];
1658
+ } deviceButtonStateNotify;
1659
+
1660
+ /**********************************************************
1661
+ *
1662
+ * DeviceMappingNotify.
1663
+ * Fields must be kept in sync with core mappingnotify event.
1664
+ *
1665
+ */
1666
+
1667
+ typedef struct
1668
+ {
1669
+ BYTE type;
1670
+ BYTE deviceid;
1671
+ CARD16 sequenceNumber;
1672
+ CARD8 request;
1673
+ KeyCode firstKeyCode;
1674
+ CARD8 count;
1675
+ BYTE pad1;
1676
+ Time time;
1677
+ CARD32 pad00;
1678
+ CARD32 pad01;
1679
+ CARD32 pad02;
1680
+ CARD32 pad03;
1681
+ CARD32 pad04;
1682
+ } deviceMappingNotify;
1683
+
1684
+ /**********************************************************
1685
+ *
1686
+ * ChangeDeviceNotify.
1687
+ *
1688
+ */
1689
+
1690
+ typedef struct
1691
+ {
1692
+ BYTE type;
1693
+ BYTE deviceid;
1694
+ CARD16 sequenceNumber;
1695
+ Time time;
1696
+ CARD8 request;
1697
+ BYTE pad1, pad2, pad3;
1698
+ CARD32 pad00;
1699
+ CARD32 pad01;
1700
+ CARD32 pad02;
1701
+ CARD32 pad03;
1702
+ CARD32 pad04;
1703
+ } changeDeviceNotify;
1704
+
1705
+ /**********************************************************
1706
+ *
1707
+ * devicePresenceNotify.
1708
+ *
1709
+ */
1710
+
1711
+ typedef struct
1712
+ {
1713
+ BYTE type;
1714
+ BYTE pad00;
1715
+ CARD16 sequenceNumber;
1716
+ Time time;
1717
+ BYTE devchange; /* Device{Added|Removed|Enabled|Disabled|ControlChanged} */
1718
+ BYTE deviceid;
1719
+ CARD16 control;
1720
+ CARD32 pad02;
1721
+ CARD32 pad03;
1722
+ CARD32 pad04;
1723
+ CARD32 pad05;
1724
+ CARD32 pad06;
1725
+ } devicePresenceNotify;
1726
+
1727
+
1728
+ /*********************************************************
1729
+ * DevicePropertyNotifyEvent
1730
+ *
1731
+ * Sent whenever a device's property changes.
1732
+ *
1733
+ */
1734
+
1735
+ typedef struct
1736
+ {
1737
+ BYTE type;
1738
+ BYTE state; /* NewValue or Deleted */
1739
+ CARD16 sequenceNumber;
1740
+ CARD32 time;
1741
+ Atom atom; /* affected property */
1742
+ CARD32 pad0;
1743
+ CARD32 pad1;
1744
+ CARD32 pad2;
1745
+ CARD32 pad3;
1746
+ CARD16 pad5;
1747
+ CARD8 pad4;
1748
+ CARD8 deviceid; /* id of device */
1749
+ } devicePropertyNotify;
1750
+
1751
+ #undef Window
1752
+ #undef Time
1753
+ #undef KeyCode
1754
+ #undef Mask
1755
+ #undef Atom
1756
+ #undef Cursor
1757
+
1758
+ #endif
data/miniconda3/envs/catiagent/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/envs/catiagent/include/X11/extensions/XKBgeom.h ADDED
@@ -0,0 +1,618 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 _XKBGEOM_H_
28
+ #define _XKBGEOM_H_
29
+
30
+ #include <X11/extensions/XKBstr.h>
31
+
32
+ typedef struct _XkbProperty {
33
+ char *name;
34
+ char *value;
35
+ } XkbPropertyRec,*XkbPropertyPtr;
36
+
37
+ typedef struct _XkbColor {
38
+ unsigned int pixel;
39
+ char * spec;
40
+ } XkbColorRec,*XkbColorPtr;
41
+
42
+ typedef struct _XkbPoint {
43
+ short x;
44
+ short y;
45
+ } XkbPointRec, *XkbPointPtr;
46
+
47
+ typedef struct _XkbBounds {
48
+ short x1,y1;
49
+ short x2,y2;
50
+ } XkbBoundsRec, *XkbBoundsPtr;
51
+ #define XkbBoundsWidth(b) (((b)->x2)-((b)->x1))
52
+ #define XkbBoundsHeight(b) (((b)->y2)-((b)->y1))
53
+
54
+ /*
55
+ * In the following structs, this pattern is used for dynamically sized arrays:
56
+ * foo is an array for which sz_foo entries are allocated & num_foo are used
57
+ */
58
+
59
+ typedef struct _XkbOutline {
60
+ unsigned short num_points;
61
+ unsigned short sz_points;
62
+ unsigned short corner_radius;
63
+ XkbPointPtr points;
64
+ } XkbOutlineRec, *XkbOutlinePtr;
65
+
66
+ typedef struct _XkbShape {
67
+ Atom name;
68
+ unsigned short num_outlines;
69
+ unsigned short sz_outlines;
70
+ XkbOutlinePtr outlines;
71
+ XkbOutlinePtr approx;
72
+ XkbOutlinePtr primary;
73
+ XkbBoundsRec bounds;
74
+ } XkbShapeRec, *XkbShapePtr;
75
+ #define XkbOutlineIndex(s,o) ((int)((o)-&(s)->outlines[0]))
76
+
77
+ typedef struct _XkbShapeDoodad {
78
+ Atom name;
79
+ unsigned char type;
80
+ unsigned char priority;
81
+ short top;
82
+ short left;
83
+ short angle;
84
+ unsigned short color_ndx;
85
+ unsigned short shape_ndx;
86
+ } XkbShapeDoodadRec, *XkbShapeDoodadPtr;
87
+ #define XkbShapeDoodadColor(g,d) (&(g)->colors[(d)->color_ndx])
88
+ #define XkbShapeDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx])
89
+ #define XkbSetShapeDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0])
90
+ #define XkbSetShapeDoodadShape(g,d,s) ((d)->shape_ndx= (s)-&(g)->shapes[0])
91
+
92
+ typedef struct _XkbTextDoodad {
93
+ Atom name;
94
+ unsigned char type;
95
+ unsigned char priority;
96
+ short top;
97
+ short left;
98
+ short angle;
99
+ short width;
100
+ short height;
101
+ unsigned short color_ndx;
102
+ char * text;
103
+ char * font;
104
+ } XkbTextDoodadRec, *XkbTextDoodadPtr;
105
+ #define XkbTextDoodadColor(g,d) (&(g)->colors[(d)->color_ndx])
106
+ #define XkbSetTextDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0])
107
+
108
+ typedef struct _XkbIndicatorDoodad {
109
+ Atom name;
110
+ unsigned char type;
111
+ unsigned char priority;
112
+ short top;
113
+ short left;
114
+ short angle;
115
+ unsigned short shape_ndx;
116
+ unsigned short on_color_ndx;
117
+ unsigned short off_color_ndx;
118
+ } XkbIndicatorDoodadRec, *XkbIndicatorDoodadPtr;
119
+ #define XkbIndicatorDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx])
120
+ #define XkbIndicatorDoodadOnColor(g,d) (&(g)->colors[(d)->on_color_ndx])
121
+ #define XkbIndicatorDoodadOffColor(g,d) (&(g)->colors[(d)->off_color_ndx])
122
+ #define XkbSetIndicatorDoodadOnColor(g,d,c) \
123
+ ((d)->on_color_ndx= (c)-&(g)->colors[0])
124
+ #define XkbSetIndicatorDoodadOffColor(g,d,c) \
125
+ ((d)->off_color_ndx= (c)-&(g)->colors[0])
126
+ #define XkbSetIndicatorDoodadShape(g,d,s) \
127
+ ((d)->shape_ndx= (s)-&(g)->shapes[0])
128
+
129
+ typedef struct _XkbLogoDoodad {
130
+ Atom name;
131
+ unsigned char type;
132
+ unsigned char priority;
133
+ short top;
134
+ short left;
135
+ short angle;
136
+ unsigned short color_ndx;
137
+ unsigned short shape_ndx;
138
+ char * logo_name;
139
+ } XkbLogoDoodadRec, *XkbLogoDoodadPtr;
140
+ #define XkbLogoDoodadColor(g,d) (&(g)->colors[(d)->color_ndx])
141
+ #define XkbLogoDoodadShape(g,d) (&(g)->shapes[(d)->shape_ndx])
142
+ #define XkbSetLogoDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0])
143
+ #define XkbSetLogoDoodadShape(g,d,s) ((d)->shape_ndx= (s)-&(g)->shapes[0])
144
+
145
+ typedef struct _XkbAnyDoodad {
146
+ Atom name;
147
+ unsigned char type;
148
+ unsigned char priority;
149
+ short top;
150
+ short left;
151
+ short angle;
152
+ } XkbAnyDoodadRec, *XkbAnyDoodadPtr;
153
+
154
+ typedef union _XkbDoodad {
155
+ XkbAnyDoodadRec any;
156
+ XkbShapeDoodadRec shape;
157
+ XkbTextDoodadRec text;
158
+ XkbIndicatorDoodadRec indicator;
159
+ XkbLogoDoodadRec logo;
160
+ } XkbDoodadRec, *XkbDoodadPtr;
161
+
162
+ #define XkbUnknownDoodad 0
163
+ #define XkbOutlineDoodad 1
164
+ #define XkbSolidDoodad 2
165
+ #define XkbTextDoodad 3
166
+ #define XkbIndicatorDoodad 4
167
+ #define XkbLogoDoodad 5
168
+
169
+ typedef struct _XkbKey {
170
+ XkbKeyNameRec name;
171
+ short gap;
172
+ unsigned char shape_ndx;
173
+ unsigned char color_ndx;
174
+ } XkbKeyRec, *XkbKeyPtr;
175
+ #define XkbKeyShape(g,k) (&(g)->shapes[(k)->shape_ndx])
176
+ #define XkbKeyColor(g,k) (&(g)->colors[(k)->color_ndx])
177
+ #define XkbSetKeyShape(g,k,s) ((k)->shape_ndx= (s)-&(g)->shapes[0])
178
+ #define XkbSetKeyColor(g,k,c) ((k)->color_ndx= (c)-&(g)->colors[0])
179
+
180
+ typedef struct _XkbRow {
181
+ short top;
182
+ short left;
183
+ unsigned short num_keys;
184
+ unsigned short sz_keys;
185
+ int vertical;
186
+ XkbKeyPtr keys;
187
+ XkbBoundsRec bounds;
188
+ } XkbRowRec, *XkbRowPtr;
189
+
190
+ typedef struct _XkbSection {
191
+ Atom name;
192
+ unsigned char priority;
193
+ short top;
194
+ short left;
195
+ unsigned short width;
196
+ unsigned short height;
197
+ short angle;
198
+ unsigned short num_rows;
199
+ unsigned short num_doodads;
200
+ unsigned short num_overlays;
201
+ unsigned short sz_rows;
202
+ unsigned short sz_doodads;
203
+ unsigned short sz_overlays;
204
+ XkbRowPtr rows;
205
+ XkbDoodadPtr doodads;
206
+ XkbBoundsRec bounds;
207
+ struct _XkbOverlay *overlays;
208
+ } XkbSectionRec, *XkbSectionPtr;
209
+
210
+ typedef struct _XkbOverlayKey {
211
+ XkbKeyNameRec over;
212
+ XkbKeyNameRec under;
213
+ } XkbOverlayKeyRec,*XkbOverlayKeyPtr;
214
+
215
+ typedef struct _XkbOverlayRow {
216
+ unsigned short row_under;
217
+ unsigned short num_keys;
218
+ unsigned short sz_keys;
219
+ XkbOverlayKeyPtr keys;
220
+ } XkbOverlayRowRec,*XkbOverlayRowPtr;
221
+
222
+ typedef struct _XkbOverlay {
223
+ Atom name;
224
+ XkbSectionPtr section_under;
225
+ unsigned short num_rows;
226
+ unsigned short sz_rows;
227
+ XkbOverlayRowPtr rows;
228
+ XkbBoundsPtr bounds;
229
+ } XkbOverlayRec,*XkbOverlayPtr;
230
+
231
+ typedef struct _XkbGeometry {
232
+ Atom name;
233
+ unsigned short width_mm;
234
+ unsigned short height_mm;
235
+ char * label_font;
236
+ XkbColorPtr label_color;
237
+ XkbColorPtr base_color;
238
+ unsigned short sz_properties;
239
+ unsigned short sz_colors;
240
+ unsigned short sz_shapes;
241
+ unsigned short sz_sections;
242
+ unsigned short sz_doodads;
243
+ unsigned short sz_key_aliases;
244
+ unsigned short num_properties;
245
+ unsigned short num_colors;
246
+ unsigned short num_shapes;
247
+ unsigned short num_sections;
248
+ unsigned short num_doodads;
249
+ unsigned short num_key_aliases;
250
+ XkbPropertyPtr properties;
251
+ XkbColorPtr colors;
252
+ XkbShapePtr shapes;
253
+ XkbSectionPtr sections;
254
+ XkbDoodadPtr doodads;
255
+ XkbKeyAliasPtr key_aliases;
256
+ } XkbGeometryRec;
257
+ #define XkbGeomColorIndex(g,c) ((int)((c)-&(g)->colors[0]))
258
+
259
+ #define XkbGeomPropertiesMask (1<<0)
260
+ #define XkbGeomColorsMask (1<<1)
261
+ #define XkbGeomShapesMask (1<<2)
262
+ #define XkbGeomSectionsMask (1<<3)
263
+ #define XkbGeomDoodadsMask (1<<4)
264
+ #define XkbGeomKeyAliasesMask (1<<5)
265
+ #define XkbGeomAllMask (0x3f)
266
+
267
+ typedef struct _XkbGeometrySizes {
268
+ unsigned int which;
269
+ unsigned short num_properties;
270
+ unsigned short num_colors;
271
+ unsigned short num_shapes;
272
+ unsigned short num_sections;
273
+ unsigned short num_doodads;
274
+ unsigned short num_key_aliases;
275
+ } XkbGeometrySizesRec,*XkbGeometrySizesPtr;
276
+
277
+ _XFUNCPROTOBEGIN
278
+
279
+ extern XkbPropertyPtr
280
+ XkbAddGeomProperty(
281
+ XkbGeometryPtr /* geom */,
282
+ _Xconst char * /* name */,
283
+ _Xconst char * /* value */
284
+ );
285
+
286
+ extern XkbKeyAliasPtr
287
+ XkbAddGeomKeyAlias(
288
+ XkbGeometryPtr /* geom */,
289
+ _Xconst char * /* alias */,
290
+ _Xconst char * /* real */
291
+ );
292
+
293
+ extern XkbColorPtr
294
+ XkbAddGeomColor(
295
+ XkbGeometryPtr /* geom */,
296
+ _Xconst char * /* spec */,
297
+ unsigned int /* pixel */
298
+ );
299
+
300
+ extern XkbOutlinePtr
301
+ XkbAddGeomOutline(
302
+ XkbShapePtr /* shape */,
303
+ int /* sz_points */
304
+ );
305
+
306
+ extern XkbShapePtr
307
+ XkbAddGeomShape(
308
+ XkbGeometryPtr /* geom */,
309
+ Atom /* name */,
310
+ int /* sz_outlines */
311
+ );
312
+
313
+ extern XkbKeyPtr
314
+ XkbAddGeomKey(
315
+ XkbRowPtr /* row */
316
+ );
317
+
318
+ extern XkbRowPtr
319
+ XkbAddGeomRow(
320
+ XkbSectionPtr /* section */,
321
+ int /* sz_keys */
322
+ );
323
+
324
+ extern XkbSectionPtr
325
+ XkbAddGeomSection(
326
+ XkbGeometryPtr /* geom */,
327
+ Atom /* name */,
328
+ int /* sz_rows */,
329
+ int /* sz_doodads */,
330
+ int /* sz_overlays */
331
+ );
332
+
333
+ extern XkbOverlayPtr
334
+ XkbAddGeomOverlay(
335
+ XkbSectionPtr /* section */,
336
+ Atom /* name */,
337
+ int /* sz_rows */
338
+ );
339
+
340
+ extern XkbOverlayRowPtr
341
+ XkbAddGeomOverlayRow(
342
+ XkbOverlayPtr /* overlay */,
343
+ int /* row_under */,
344
+ int /* sz_keys */
345
+ );
346
+
347
+ extern XkbOverlayKeyPtr
348
+ XkbAddGeomOverlayKey(
349
+ XkbOverlayPtr /* overlay */,
350
+ XkbOverlayRowPtr /* row */,
351
+ _Xconst char * /* over */,
352
+ _Xconst char * /* under */
353
+ );
354
+
355
+ extern XkbDoodadPtr
356
+ XkbAddGeomDoodad(
357
+ XkbGeometryPtr /* geom */,
358
+ XkbSectionPtr /* section */,
359
+ Atom /* name */
360
+ );
361
+
362
+
363
+ extern void
364
+ XkbFreeGeomKeyAliases(
365
+ XkbGeometryPtr /* geom */,
366
+ int /* first */,
367
+ int /* count */,
368
+ Bool /* freeAll */
369
+ );
370
+
371
+ extern void
372
+ XkbFreeGeomColors(
373
+ XkbGeometryPtr /* geom */,
374
+ int /* first */,
375
+ int /* count */,
376
+ Bool /* freeAll */
377
+ );
378
+
379
+ extern void
380
+ XkbFreeGeomDoodads(
381
+ XkbDoodadPtr /* doodads */,
382
+ int /* nDoodads */,
383
+ Bool /* freeAll */
384
+ );
385
+
386
+
387
+ extern void
388
+ XkbFreeGeomProperties(
389
+ XkbGeometryPtr /* geom */,
390
+ int /* first */,
391
+ int /* count */,
392
+ Bool /* freeAll */
393
+ );
394
+
395
+ extern void
396
+ XkbFreeGeomOverlayKeys(
397
+ XkbOverlayRowPtr /* row */,
398
+ int /* first */,
399
+ int /* count */,
400
+ Bool /* freeAll */
401
+ );
402
+
403
+ extern void
404
+ XkbFreeGeomOverlayRows(
405
+ XkbOverlayPtr /* overlay */,
406
+ int /* first */,
407
+ int /* count */,
408
+ Bool /* freeAll */
409
+ );
410
+
411
+ extern void
412
+ XkbFreeGeomOverlays(
413
+ XkbSectionPtr /* section */,
414
+ int /* first */,
415
+ int /* count */,
416
+ Bool /* freeAll */
417
+ );
418
+
419
+ extern void
420
+ XkbFreeGeomKeys(
421
+ XkbRowPtr /* row */,
422
+ int /* first */,
423
+ int /* count */,
424
+ Bool /* freeAll */
425
+ );
426
+
427
+ extern void
428
+ XkbFreeGeomRows(
429
+ XkbSectionPtr /* section */,
430
+ int /* first */,
431
+ int /* count */,
432
+ Bool /* freeAll */
433
+ );
434
+
435
+ extern void
436
+ XkbFreeGeomSections(
437
+ XkbGeometryPtr /* geom */,
438
+ int /* first */,
439
+ int /* count */,
440
+ Bool /* freeAll */
441
+ );
442
+
443
+
444
+ extern void
445
+ XkbFreeGeomPoints(
446
+ XkbOutlinePtr /* outline */,
447
+ int /* first */,
448
+ int /* count */,
449
+ Bool /* freeAll */
450
+ );
451
+
452
+ extern void
453
+ XkbFreeGeomOutlines(
454
+ XkbShapePtr /* shape */,
455
+ int /* first */,
456
+ int /* count */,
457
+ Bool /* freeAll */
458
+ );
459
+
460
+ extern void
461
+ XkbFreeGeomShapes(
462
+ XkbGeometryPtr /* geom */,
463
+ int /* first */,
464
+ int /* count */,
465
+ Bool /* freeAll */
466
+ );
467
+
468
+ extern void
469
+ XkbFreeGeometry(
470
+ XkbGeometryPtr /* geom */,
471
+ unsigned int /* which */,
472
+ Bool /* freeMap */
473
+ );
474
+
475
+ extern Status
476
+ XkbAllocGeomProps(
477
+ XkbGeometryPtr /* geom */,
478
+ int /* nProps */
479
+ );
480
+
481
+ extern Status
482
+ XkbAllocGeomKeyAliases(
483
+ XkbGeometryPtr /* geom */,
484
+ int /* nAliases */
485
+ );
486
+
487
+ extern Status
488
+ XkbAllocGeomColors(
489
+ XkbGeometryPtr /* geom */,
490
+ int /* nColors */
491
+ );
492
+
493
+ extern Status
494
+ XkbAllocGeomShapes(
495
+ XkbGeometryPtr /* geom */,
496
+ int /* nShapes */
497
+ );
498
+
499
+ extern Status
500
+ XkbAllocGeomSections(
501
+ XkbGeometryPtr /* geom */,
502
+ int /* nSections */
503
+ );
504
+
505
+ extern Status
506
+ XkbAllocGeomOverlays(
507
+ XkbSectionPtr /* section */,
508
+ int /* num_needed */
509
+ );
510
+
511
+ extern Status
512
+ XkbAllocGeomOverlayRows(
513
+ XkbOverlayPtr /* overlay */,
514
+ int /* num_needed */
515
+ );
516
+
517
+ extern Status
518
+ XkbAllocGeomOverlayKeys(
519
+ XkbOverlayRowPtr /* row */,
520
+ int /* num_needed */
521
+ );
522
+
523
+ extern Status
524
+ XkbAllocGeomDoodads(
525
+ XkbGeometryPtr /* geom */,
526
+ int /* nDoodads */
527
+ );
528
+
529
+ extern Status
530
+ XkbAllocGeomSectionDoodads(
531
+ XkbSectionPtr /* section */,
532
+ int /* nDoodads */
533
+ );
534
+
535
+ extern Status
536
+ XkbAllocGeomOutlines(
537
+ XkbShapePtr /* shape */,
538
+ int /* nOL */
539
+ );
540
+
541
+ extern Status
542
+ XkbAllocGeomRows(
543
+ XkbSectionPtr /* section */,
544
+ int /* nRows */
545
+ );
546
+
547
+ extern Status
548
+ XkbAllocGeomPoints(
549
+ XkbOutlinePtr /* ol */,
550
+ int /* nPts */
551
+ );
552
+
553
+ extern Status
554
+ XkbAllocGeomKeys(
555
+ XkbRowPtr /* row */,
556
+ int /* nKeys */
557
+ );
558
+
559
+ extern Status
560
+ XkbAllocGeometry(
561
+ XkbDescPtr /* xkb */,
562
+ XkbGeometrySizesPtr /* sizes */
563
+ );
564
+
565
+ extern Status
566
+ XkbSetGeometry(
567
+ Display * /* dpy */,
568
+ unsigned /* deviceSpec */,
569
+ XkbGeometryPtr /* geom */
570
+ );
571
+
572
+ extern Bool
573
+ XkbComputeShapeTop(
574
+ XkbShapePtr /* shape */,
575
+ XkbBoundsPtr /* bounds */
576
+ );
577
+
578
+ extern Bool
579
+ XkbComputeShapeBounds(
580
+ XkbShapePtr /* shape */
581
+ );
582
+
583
+ extern Bool
584
+ XkbComputeRowBounds(
585
+ XkbGeometryPtr /* geom */,
586
+ XkbSectionPtr /* section */,
587
+ XkbRowPtr /* row */
588
+ );
589
+
590
+ extern Bool
591
+ XkbComputeSectionBounds(
592
+ XkbGeometryPtr /* geom */,
593
+ XkbSectionPtr /* section */
594
+ );
595
+
596
+ extern char *
597
+ XkbFindOverlayForKey(
598
+ XkbGeometryPtr /* geom */,
599
+ XkbSectionPtr /* wanted */,
600
+ _Xconst char * /* under */
601
+ );
602
+
603
+ extern Status
604
+ XkbGetGeometry(
605
+ Display * /* dpy */,
606
+ XkbDescPtr /* xkb */
607
+ );
608
+
609
+ extern Status
610
+ XkbGetNamedGeometry(
611
+ Display * /* dpy */,
612
+ XkbDescPtr /* xkb */,
613
+ Atom /* name */
614
+ );
615
+
616
+ _XFUNCPROTOEND
617
+
618
+ #endif /* _XKBSTR_H_ */
data/miniconda3/envs/catiagent/include/X11/extensions/XKBproto.h ADDED
@@ -0,0 +1,1282 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 _XKBPROTO_H_
28
+ #define _XKBPROTO_H_
29
+
30
+ #include <X11/Xmd.h>
31
+ #include <X11/Xfuncproto.h>
32
+ #include <X11/extensions/XKB.h>
33
+
34
+ #define Window CARD32
35
+ #define Atom CARD32
36
+ #define Time CARD32
37
+ #define KeyCode CARD8
38
+ #define KeySym CARD32
39
+
40
+ #define XkbPaddedSize(n) ((((unsigned int)(n)+3) >> 2) << 2)
41
+
42
+ typedef struct _xkbUseExtension {
43
+ CARD8 reqType;
44
+ CARD8 xkbReqType; /* always X_KBUseExtension */
45
+ CARD16 length;
46
+ CARD16 wantedMajor;
47
+ CARD16 wantedMinor;
48
+ } xkbUseExtensionReq;
49
+ #define sz_xkbUseExtensionReq 8
50
+
51
+ typedef struct _xkbUseExtensionReply {
52
+ BYTE type; /* X_Reply */
53
+ BOOL supported;
54
+ CARD16 sequenceNumber;
55
+ CARD32 length;
56
+ CARD16 serverMajor;
57
+ CARD16 serverMinor;
58
+ CARD32 pad1;
59
+ CARD32 pad2;
60
+ CARD32 pad3;
61
+ CARD32 pad4;
62
+ CARD32 pad5;
63
+ } xkbUseExtensionReply;
64
+ #define sz_xkbUseExtensionReply 32
65
+
66
+ typedef struct _xkbSelectEvents {
67
+ CARD8 reqType;
68
+ CARD8 xkbReqType; /* X_KBSelectEvents */
69
+ CARD16 length;
70
+ CARD16 deviceSpec;
71
+ CARD16 affectWhich;
72
+ CARD16 clear;
73
+ CARD16 selectAll;
74
+ CARD16 affectMap;
75
+ CARD16 map;
76
+ } xkbSelectEventsReq;
77
+ #define sz_xkbSelectEventsReq 16
78
+
79
+ typedef struct _xkbBell {
80
+ CARD8 reqType;
81
+ CARD8 xkbReqType; /* X_KBBell */
82
+ CARD16 length;
83
+ CARD16 deviceSpec;
84
+ CARD16 bellClass;
85
+ CARD16 bellID;
86
+ INT8 percent;
87
+ BOOL forceSound;
88
+ BOOL eventOnly;
89
+ CARD8 pad1;
90
+ INT16 pitch;
91
+ INT16 duration;
92
+ CARD16 pad2;
93
+ Atom name;
94
+ Window window;
95
+ } xkbBellReq;
96
+ #define sz_xkbBellReq 28
97
+
98
+ typedef struct _xkbGetState {
99
+ CARD8 reqType;
100
+ CARD8 xkbReqType; /* always X_KBGetState */
101
+ CARD16 length;
102
+ CARD16 deviceSpec;
103
+ CARD16 pad;
104
+ } xkbGetStateReq;
105
+ #define sz_xkbGetStateReq 8
106
+
107
+ typedef struct _xkbGetStateReply {
108
+ BYTE type;
109
+ BYTE deviceID;
110
+ CARD16 sequenceNumber;
111
+ CARD32 length;
112
+ CARD8 mods;
113
+ CARD8 baseMods;
114
+ CARD8 latchedMods;
115
+ CARD8 lockedMods;
116
+ CARD8 group;
117
+ CARD8 lockedGroup;
118
+ INT16 baseGroup;
119
+ INT16 latchedGroup;
120
+ CARD8 compatState;
121
+ CARD8 grabMods;
122
+ CARD8 compatGrabMods;
123
+ CARD8 lookupMods;
124
+ CARD8 compatLookupMods;
125
+ CARD8 pad1;
126
+ CARD16 ptrBtnState;
127
+ CARD16 pad2;
128
+ CARD32 pad3;
129
+ } xkbGetStateReply;
130
+ #define sz_xkbGetStateReply 32
131
+
132
+ typedef struct _xkbLatchLockState {
133
+ CARD8 reqType;
134
+ CARD8 xkbReqType; /* always X_KBLatchLockState */
135
+ CARD16 length;
136
+ CARD16 deviceSpec;
137
+ CARD8 affectModLocks;
138
+ CARD8 modLocks;
139
+ BOOL lockGroup;
140
+ CARD8 groupLock;
141
+ CARD8 affectModLatches;
142
+ CARD8 modLatches;
143
+ CARD8 pad;
144
+ BOOL latchGroup;
145
+ INT16 groupLatch;
146
+ } xkbLatchLockStateReq;
147
+ #define sz_xkbLatchLockStateReq 16
148
+
149
+ typedef struct _xkbGetControls {
150
+ CARD8 reqType;
151
+ CARD8 xkbReqType; /* always X_KBGetControls */
152
+ CARD16 length;
153
+ CARD16 deviceSpec;
154
+ CARD16 pad;
155
+ } xkbGetControlsReq;
156
+ #define sz_xkbGetControlsReq 8
157
+
158
+ typedef struct _xkbGetControlsReply {
159
+ BYTE type; /* X_Reply */
160
+ CARD8 deviceID;
161
+ CARD16 sequenceNumber;
162
+ CARD32 length;
163
+ CARD8 mkDfltBtn;
164
+ CARD8 numGroups;
165
+ CARD8 groupsWrap;
166
+ CARD8 internalMods;
167
+ CARD8 ignoreLockMods;
168
+ CARD8 internalRealMods;
169
+ CARD8 ignoreLockRealMods;
170
+ CARD8 pad1;
171
+ CARD16 internalVMods;
172
+ CARD16 ignoreLockVMods;
173
+ CARD16 repeatDelay;
174
+ CARD16 repeatInterval;
175
+ CARD16 slowKeysDelay;
176
+ CARD16 debounceDelay;
177
+ CARD16 mkDelay;
178
+ CARD16 mkInterval;
179
+ CARD16 mkTimeToMax;
180
+ CARD16 mkMaxSpeed;
181
+ INT16 mkCurve;
182
+ CARD16 axOptions;
183
+ CARD16 axTimeout;
184
+ CARD16 axtOptsMask;
185
+ CARD16 axtOptsValues;
186
+ CARD16 pad2;
187
+ CARD32 axtCtrlsMask;
188
+ CARD32 axtCtrlsValues;
189
+ CARD32 enabledCtrls;
190
+ BYTE perKeyRepeat[XkbPerKeyBitArraySize];
191
+ } xkbGetControlsReply;
192
+ #define sz_xkbGetControlsReply 92
193
+
194
+ typedef struct _xkbSetControls {
195
+ CARD8 reqType;
196
+ CARD8 xkbReqType; /* always X_KBSetControls */
197
+ CARD16 length;
198
+ CARD16 deviceSpec;
199
+ CARD8 affectInternalMods;
200
+ CARD8 internalMods;
201
+ CARD8 affectIgnoreLockMods;
202
+ CARD8 ignoreLockMods;
203
+ CARD16 affectInternalVMods;
204
+ CARD16 internalVMods;
205
+ CARD16 affectIgnoreLockVMods;
206
+ CARD16 ignoreLockVMods;
207
+ CARD8 mkDfltBtn;
208
+ CARD8 groupsWrap;
209
+ CARD16 axOptions;
210
+ CARD16 pad1;
211
+ CARD32 affectEnabledCtrls;
212
+ CARD32 enabledCtrls;
213
+ CARD32 changeCtrls;
214
+ CARD16 repeatDelay;
215
+ CARD16 repeatInterval;
216
+ CARD16 slowKeysDelay;
217
+ CARD16 debounceDelay;
218
+ CARD16 mkDelay;
219
+ CARD16 mkInterval;
220
+ CARD16 mkTimeToMax;
221
+ CARD16 mkMaxSpeed;
222
+ INT16 mkCurve;
223
+ CARD16 axTimeout;
224
+ CARD32 axtCtrlsMask;
225
+ CARD32 axtCtrlsValues;
226
+ CARD16 axtOptsMask;
227
+ CARD16 axtOptsValues;
228
+ BYTE perKeyRepeat[XkbPerKeyBitArraySize];
229
+ } xkbSetControlsReq;
230
+ #define sz_xkbSetControlsReq 100
231
+
232
+ typedef struct _xkbKTMapEntryWireDesc {
233
+ BOOL active;
234
+ CARD8 mask;
235
+ CARD8 level;
236
+ CARD8 realMods;
237
+ CARD16 virtualMods;
238
+ CARD16 pad;
239
+ } xkbKTMapEntryWireDesc;
240
+ #define sz_xkbKTMapEntryWireDesc 8
241
+
242
+ typedef struct _xkbKTSetMapEntryWireDesc {
243
+ CARD8 level;
244
+ CARD8 realMods;
245
+ CARD16 virtualMods;
246
+ } xkbKTSetMapEntryWireDesc;
247
+ #define sz_xkbKTSetMapEntryWireDesc 4
248
+
249
+ typedef struct _xkbModsWireDesc {
250
+ CARD8 mask; /* GetMap only */
251
+ CARD8 realMods;
252
+ CARD16 virtualMods;
253
+ } xkbModsWireDesc;
254
+ #define sz_xkbModsWireDesc 4
255
+
256
+ typedef struct _xkbKeyTypeWireDesc {
257
+ CARD8 mask;
258
+ CARD8 realMods;
259
+ CARD16 virtualMods;
260
+ CARD8 numLevels;
261
+ CARD8 nMapEntries;
262
+ BOOL preserve;
263
+ CARD8 pad;
264
+ } xkbKeyTypeWireDesc;
265
+ #define sz_xkbKeyTypeWireDesc 8
266
+
267
+ typedef struct _xkbSymMapWireDesc {
268
+ CARD8 ktIndex[XkbNumKbdGroups];
269
+ CARD8 groupInfo;
270
+ CARD8 width;
271
+ CARD16 nSyms;
272
+ } xkbSymMapWireDesc;
273
+ #define sz_xkbSymMapWireDesc 8
274
+
275
+ typedef struct _xkbVModMapWireDesc {
276
+ KeyCode key;
277
+ CARD8 pad;
278
+ CARD16 vmods;
279
+ } xkbVModMapWireDesc;
280
+ #define sz_xkbVModMapWireDesc 4
281
+
282
+ typedef struct _xkbBehaviorWireDesc {
283
+ CARD8 key;
284
+ CARD8 type;
285
+ CARD8 data;
286
+ CARD8 pad;
287
+ } xkbBehaviorWireDesc;
288
+ #define sz_xkbBehaviorWireDesc 4
289
+
290
+ typedef struct _xkbActionWireDesc {
291
+ CARD8 type;
292
+ CARD8 data[7];
293
+ } xkbActionWireDesc;
294
+ #define sz_xkbActionWireDesc 8
295
+
296
+ typedef struct _xkbGetMap {
297
+ CARD8 reqType;
298
+ CARD8 xkbReqType; /* always X_KBGetMap */
299
+ CARD16 length;
300
+ CARD16 deviceSpec;
301
+ CARD16 full;
302
+ CARD16 partial;
303
+ CARD8 firstType;
304
+ CARD8 nTypes;
305
+ KeyCode firstKeySym;
306
+ CARD8 nKeySyms;
307
+ KeyCode firstKeyAct;
308
+ CARD8 nKeyActs;
309
+ KeyCode firstKeyBehavior;
310
+ CARD8 nKeyBehaviors;
311
+ CARD16 virtualMods;
312
+ KeyCode firstKeyExplicit;
313
+ CARD8 nKeyExplicit;
314
+ KeyCode firstModMapKey;
315
+ CARD8 nModMapKeys;
316
+ KeyCode firstVModMapKey;
317
+ CARD8 nVModMapKeys;
318
+ CARD16 pad1;
319
+ } xkbGetMapReq;
320
+ #define sz_xkbGetMapReq 28
321
+
322
+ typedef struct _xkbGetMapReply {
323
+ CARD8 type; /* always X_Reply */
324
+ CARD8 deviceID;
325
+ CARD16 sequenceNumber;
326
+ CARD32 length;
327
+ CARD16 pad1;
328
+ KeyCode minKeyCode;
329
+ KeyCode maxKeyCode;
330
+ CARD16 present;
331
+ CARD8 firstType;
332
+ CARD8 nTypes;
333
+ CARD8 totalTypes;
334
+ KeyCode firstKeySym;
335
+ CARD16 totalSyms;
336
+ CARD8 nKeySyms;
337
+ KeyCode firstKeyAct;
338
+ CARD16 totalActs;
339
+ CARD8 nKeyActs;
340
+ KeyCode firstKeyBehavior;
341
+ CARD8 nKeyBehaviors;
342
+ CARD8 totalKeyBehaviors;
343
+ KeyCode firstKeyExplicit;
344
+ CARD8 nKeyExplicit;
345
+ CARD8 totalKeyExplicit;
346
+ KeyCode firstModMapKey;
347
+ CARD8 nModMapKeys;
348
+ CARD8 totalModMapKeys;
349
+ KeyCode firstVModMapKey;
350
+ CARD8 nVModMapKeys;
351
+ CARD8 totalVModMapKeys;
352
+ CARD8 pad2;
353
+ CARD16 virtualMods;
354
+ } xkbGetMapReply;
355
+ #define sz_xkbGetMapReply 40
356
+
357
+ #define XkbSetMapResizeTypes (1L<<0)
358
+ #define XkbSetMapRecomputeActions (1L<<1)
359
+ #define XkbSetMapAllFlags (0x3)
360
+
361
+ typedef struct _xkbSetMap {
362
+ CARD8 reqType;
363
+ CARD8 xkbReqType; /* always X_KBSetMap */
364
+ CARD16 length;
365
+ CARD16 deviceSpec;
366
+ CARD16 present;
367
+ CARD16 flags;
368
+ KeyCode minKeyCode;
369
+ KeyCode maxKeyCode;
370
+ CARD8 firstType;
371
+ CARD8 nTypes;
372
+ KeyCode firstKeySym;
373
+ CARD8 nKeySyms;
374
+ CARD16 totalSyms;
375
+ KeyCode firstKeyAct;
376
+ CARD8 nKeyActs;
377
+ CARD16 totalActs;
378
+ KeyCode firstKeyBehavior;
379
+ CARD8 nKeyBehaviors;
380
+ CARD8 totalKeyBehaviors;
381
+ KeyCode firstKeyExplicit;
382
+ CARD8 nKeyExplicit;
383
+ CARD8 totalKeyExplicit;
384
+ KeyCode firstModMapKey;
385
+ CARD8 nModMapKeys;
386
+ CARD8 totalModMapKeys;
387
+ KeyCode firstVModMapKey;
388
+ CARD8 nVModMapKeys;
389
+ CARD8 totalVModMapKeys;
390
+ CARD16 virtualMods;
391
+ } xkbSetMapReq;
392
+ #define sz_xkbSetMapReq 36
393
+
394
+ typedef struct _xkbSymInterpretWireDesc {
395
+ CARD32 sym;
396
+ CARD8 mods;
397
+ CARD8 match;
398
+ CARD8 virtualMod;
399
+ CARD8 flags;
400
+ xkbActionWireDesc act;
401
+ } xkbSymInterpretWireDesc;
402
+ #define sz_xkbSymInterpretWireDesc 16
403
+
404
+ typedef struct _xkbGetCompatMap {
405
+ CARD8 reqType;
406
+ CARD8 xkbReqType; /* always X_KBGetCompatMap */
407
+ CARD16 length;
408
+ CARD16 deviceSpec;
409
+ CARD8 groups;
410
+ BOOL getAllSI;
411
+ CARD16 firstSI;
412
+ CARD16 nSI;
413
+ } xkbGetCompatMapReq;
414
+ #define sz_xkbGetCompatMapReq 12
415
+
416
+ typedef struct _xkbGetCompatMapReply {
417
+ CARD8 type; /* always X_Reply */
418
+ CARD8 deviceID;
419
+ CARD16 sequenceNumber;
420
+ CARD32 length;
421
+ CARD8 groups;
422
+ CARD8 pad1;
423
+ CARD16 firstSI;
424
+ CARD16 nSI;
425
+ CARD16 nTotalSI;
426
+ CARD32 pad2;
427
+ CARD32 pad3;
428
+ CARD32 pad4;
429
+ CARD32 pad5;
430
+ } xkbGetCompatMapReply;
431
+ #define sz_xkbGetCompatMapReply 32
432
+
433
+ typedef struct _xkbSetCompatMap {
434
+ CARD8 reqType;
435
+ CARD8 xkbReqType; /* always X_KBSetCompatMap */
436
+ CARD16 length;
437
+ CARD16 deviceSpec;
438
+ CARD8 pad1;
439
+ BOOL recomputeActions;
440
+ BOOL truncateSI;
441
+ CARD8 groups;
442
+ CARD16 firstSI;
443
+ CARD16 nSI;
444
+ CARD16 pad2;
445
+ } xkbSetCompatMapReq;
446
+ #define sz_xkbSetCompatMapReq 16
447
+
448
+ typedef struct _xkbGetIndicatorState {
449
+ CARD8 reqType;
450
+ CARD8 xkbReqType; /* always X_KBGetIndicatorState */
451
+ CARD16 length;
452
+ CARD16 deviceSpec;
453
+ CARD16 pad1;
454
+ } xkbGetIndicatorStateReq;
455
+ #define sz_xkbGetIndicatorStateReq 8
456
+
457
+ typedef struct _xkbGetIndicatorStateReply {
458
+ CARD8 type; /* always X_Reply */
459
+ CARD8 deviceID;
460
+ CARD16 sequenceNumber;
461
+ CARD32 length;
462
+ CARD32 state;
463
+ CARD32 pad1;
464
+ CARD32 pad2;
465
+ CARD32 pad3;
466
+ CARD32 pad4;
467
+ CARD32 pad5;
468
+ } xkbGetIndicatorStateReply;
469
+ #define sz_xkbGetIndicatorStateReply 32
470
+
471
+ typedef struct _xkbGetIndicatorMap {
472
+ CARD8 reqType;
473
+ CARD8 xkbReqType; /* always X_KBGetIndicatorMap */
474
+ CARD16 length;
475
+ CARD16 deviceSpec;
476
+ CARD16 pad;
477
+ CARD32 which;
478
+ } xkbGetIndicatorMapReq;
479
+ #define sz_xkbGetIndicatorMapReq 12
480
+
481
+ typedef struct _xkbGetIndicatorMapReply {
482
+ CARD8 type; /* always X_Reply */
483
+ CARD8 deviceID;
484
+ CARD16 sequenceNumber;
485
+ CARD32 length;
486
+ CARD32 which;
487
+ CARD32 realIndicators;
488
+ CARD8 nIndicators;
489
+ CARD8 pad1;
490
+ CARD16 pad2;
491
+ CARD32 pad3;
492
+ CARD32 pad4;
493
+ CARD32 pad5;
494
+ } xkbGetIndicatorMapReply;
495
+ #define sz_xkbGetIndicatorMapReply 32
496
+
497
+ typedef struct _xkbIndicatorMapWireDesc {
498
+ CARD8 flags;
499
+ CARD8 whichGroups;
500
+ CARD8 groups;
501
+ CARD8 whichMods;
502
+ CARD8 mods;
503
+ CARD8 realMods;
504
+ CARD16 virtualMods;
505
+ CARD32 ctrls;
506
+ } xkbIndicatorMapWireDesc;
507
+ #define sz_xkbIndicatorMapWireDesc 12
508
+
509
+ typedef struct _xkbSetIndicatorMap {
510
+ CARD8 reqType;
511
+ CARD8 xkbReqType; /* always X_KBSetIndicatorMap */
512
+ CARD16 length;
513
+ CARD16 deviceSpec;
514
+ CARD16 pad1;
515
+ CARD32 which;
516
+ } xkbSetIndicatorMapReq;
517
+ #define sz_xkbSetIndicatorMapReq 12
518
+
519
+ typedef struct _xkbGetNamedIndicator {
520
+ CARD8 reqType;
521
+ CARD8 xkbReqType; /* X_KBGetNamedIndicator */
522
+ CARD16 length;
523
+ CARD16 deviceSpec;
524
+ CARD16 ledClass;
525
+ CARD16 ledID;
526
+ CARD16 pad1;
527
+ Atom indicator;
528
+ } xkbGetNamedIndicatorReq;
529
+ #define sz_xkbGetNamedIndicatorReq 16
530
+
531
+ typedef struct _xkbGetNamedIndicatorReply {
532
+ BYTE type;
533
+ BYTE deviceID;
534
+ CARD16 sequenceNumber;
535
+ CARD32 length;
536
+ Atom indicator;
537
+ BOOL found;
538
+ BOOL on;
539
+ BOOL realIndicator;
540
+ CARD8 ndx;
541
+ CARD8 flags;
542
+ CARD8 whichGroups;
543
+ CARD8 groups;
544
+ CARD8 whichMods;
545
+ CARD8 mods;
546
+ CARD8 realMods;
547
+ CARD16 virtualMods;
548
+ CARD32 ctrls;
549
+ BOOL supported;
550
+ CARD8 pad1;
551
+ CARD16 pad2;
552
+ } xkbGetNamedIndicatorReply;
553
+ #define sz_xkbGetNamedIndicatorReply 32
554
+
555
+ typedef struct _xkbSetNamedIndicator {
556
+ CARD8 reqType;
557
+ CARD8 xkbReqType; /* X_KBSetNamedIndicator */
558
+ CARD16 length;
559
+ CARD16 deviceSpec;
560
+ CARD16 ledClass;
561
+ CARD16 ledID;
562
+ CARD16 pad1;
563
+ Atom indicator;
564
+ BOOL setState;
565
+ BOOL on;
566
+ BOOL setMap;
567
+ BOOL createMap;
568
+ CARD8 pad2;
569
+ CARD8 flags;
570
+ CARD8 whichGroups;
571
+ CARD8 groups;
572
+ CARD8 whichMods;
573
+ CARD8 realMods;
574
+ CARD16 virtualMods;
575
+ CARD32 ctrls;
576
+ } xkbSetNamedIndicatorReq;
577
+ #define sz_xkbSetNamedIndicatorReq 32
578
+
579
+ typedef struct _xkbGetNames {
580
+ CARD8 reqType;
581
+ CARD8 xkbReqType; /* always X_KBGetNames */
582
+ CARD16 length;
583
+ CARD16 deviceSpec;
584
+ CARD16 pad;
585
+ CARD32 which;
586
+ } xkbGetNamesReq;
587
+ #define sz_xkbGetNamesReq 12
588
+
589
+ typedef struct _xkbGetNamesReply {
590
+ BYTE type;
591
+ BYTE deviceID;
592
+ CARD16 sequenceNumber;
593
+ CARD32 length;
594
+ CARD32 which;
595
+ KeyCode minKeyCode;
596
+ KeyCode maxKeyCode;
597
+ CARD8 nTypes;
598
+ CARD8 groupNames;
599
+ CARD16 virtualMods;
600
+ KeyCode firstKey;
601
+ CARD8 nKeys;
602
+ CARD32 indicators;
603
+ CARD8 nRadioGroups;
604
+ CARD8 nKeyAliases;
605
+ CARD16 nKTLevels;
606
+ CARD32 pad3;
607
+ } xkbGetNamesReply;
608
+ #define sz_xkbGetNamesReply 32
609
+
610
+ typedef struct _xkbSetNames {
611
+ CARD8 reqType;
612
+ CARD8 xkbReqType; /* always X_KBSetNames */
613
+ CARD16 length;
614
+ CARD16 deviceSpec;
615
+ CARD16 virtualMods;
616
+ CARD32 which;
617
+ CARD8 firstType;
618
+ CARD8 nTypes;
619
+ CARD8 firstKTLevel;
620
+ CARD8 nKTLevels;
621
+ CARD32 indicators;
622
+ CARD8 groupNames;
623
+ CARD8 nRadioGroups;
624
+ KeyCode firstKey;
625
+ CARD8 nKeys;
626
+ CARD8 nKeyAliases;
627
+ CARD8 pad1;
628
+ CARD16 totalKTLevelNames;
629
+ } xkbSetNamesReq;
630
+ #define sz_xkbSetNamesReq 28
631
+
632
+ typedef struct _xkbPointWireDesc {
633
+ INT16 x;
634
+ INT16 y;
635
+ } xkbPointWireDesc;
636
+ #define sz_xkbPointWireDesc 4
637
+
638
+ typedef struct _xkbOutlineWireDesc {
639
+ CARD8 nPoints;
640
+ CARD8 cornerRadius;
641
+ CARD16 pad;
642
+ } xkbOutlineWireDesc;
643
+ #define sz_xkbOutlineWireDesc 4
644
+
645
+ typedef struct _xkbShapeWireDesc {
646
+ Atom name;
647
+ CARD8 nOutlines;
648
+ CARD8 primaryNdx;
649
+ CARD8 approxNdx;
650
+ CARD8 pad;
651
+ } xkbShapeWireDesc;
652
+ #define sz_xkbShapeWireDesc 8
653
+
654
+ typedef struct _xkbSectionWireDesc {
655
+ Atom name;
656
+ INT16 top;
657
+ INT16 left;
658
+ CARD16 width;
659
+ CARD16 height;
660
+ INT16 angle;
661
+ CARD8 priority;
662
+ CARD8 nRows;
663
+ CARD8 nDoodads;
664
+ CARD8 nOverlays;
665
+ CARD16 pad;
666
+ } xkbSectionWireDesc;
667
+ #define sz_xkbSectionWireDesc 20
668
+
669
+ typedef struct _xkbRowWireDesc {
670
+ INT16 top;
671
+ INT16 left;
672
+ CARD8 nKeys;
673
+ BOOL vertical;
674
+ CARD16 pad;
675
+ } xkbRowWireDesc;
676
+ #define sz_xkbRowWireDesc 8
677
+
678
+ typedef struct _xkbKeyWireDesc {
679
+ CARD8 name[XkbKeyNameLength] _X_NONSTRING;
680
+ INT16 gap;
681
+ CARD8 shapeNdx;
682
+ CARD8 colorNdx;
683
+ } xkbKeyWireDesc;
684
+ #define sz_xkbKeyWireDesc 8
685
+
686
+ typedef struct _xkbOverlayWireDesc {
687
+ Atom name;
688
+ CARD8 nRows;
689
+ CARD8 pad1;
690
+ CARD16 pad2;
691
+ } xkbOverlayWireDesc;
692
+ #define sz_xkbOverlayWireDesc 8
693
+
694
+ typedef struct _xkbOverlayRowWireDesc {
695
+ CARD8 rowUnder;
696
+ CARD8 nKeys;
697
+ CARD16 pad1;
698
+ } xkbOverlayRowWireDesc;
699
+ #define sz_xkbOverlayRowWireDesc 4
700
+
701
+ typedef struct _xkbOverlayKeyWireDesc {
702
+ CARD8 over[XkbKeyNameLength] _X_NONSTRING;
703
+ CARD8 under[XkbKeyNameLength] _X_NONSTRING;
704
+ } xkbOverlayKeyWireDesc;
705
+ #define sz_xkbOverlayKeyWireDesc 8
706
+
707
+ typedef struct _xkbShapeDoodadWireDesc {
708
+ Atom name;
709
+ CARD8 type;
710
+ CARD8 priority;
711
+ INT16 top;
712
+ INT16 left;
713
+ INT16 angle;
714
+ CARD8 colorNdx;
715
+ CARD8 shapeNdx;
716
+ CARD16 pad1;
717
+ CARD32 pad2;
718
+ } xkbShapeDoodadWireDesc;
719
+ #define sz_xkbShapeDoodadWireDesc 20
720
+
721
+ typedef struct _xkbTextDoodadWireDesc {
722
+ Atom name;
723
+ CARD8 type;
724
+ CARD8 priority;
725
+ INT16 top;
726
+ INT16 left;
727
+ INT16 angle;
728
+ CARD16 width;
729
+ CARD16 height;
730
+ CARD8 colorNdx;
731
+ CARD8 pad1;
732
+ CARD16 pad2;
733
+ } xkbTextDoodadWireDesc;
734
+ #define sz_xkbTextDoodadWireDesc 20
735
+
736
+ typedef struct _xkbIndicatorDoodadWireDesc {
737
+ Atom name;
738
+ CARD8 type;
739
+ CARD8 priority;
740
+ INT16 top;
741
+ INT16 left;
742
+ INT16 angle;
743
+ CARD8 shapeNdx;
744
+ CARD8 onColorNdx;
745
+ CARD8 offColorNdx;
746
+ CARD8 pad1;
747
+ CARD32 pad2;
748
+ } xkbIndicatorDoodadWireDesc;
749
+ #define sz_xkbIndicatorDoodadWireDesc 20
750
+
751
+ typedef struct _xkbLogoDoodadWireDesc {
752
+ Atom name;
753
+ CARD8 type;
754
+ CARD8 priority;
755
+ INT16 top;
756
+ INT16 left;
757
+ INT16 angle;
758
+ CARD8 colorNdx;
759
+ CARD8 shapeNdx;
760
+ CARD16 pad1;
761
+ CARD32 pad2;
762
+ } xkbLogoDoodadWireDesc;
763
+ #define sz_xkbLogoDoodadWireDesc 20
764
+
765
+ typedef struct _xkbAnyDoodadWireDesc {
766
+ Atom name;
767
+ CARD8 type;
768
+ CARD8 priority;
769
+ INT16 top;
770
+ INT16 left;
771
+ INT16 angle;
772
+ CARD32 pad2;
773
+ CARD32 pad3;
774
+ } xkbAnyDoodadWireDesc;
775
+ #define sz_xkbAnyDoodadWireDesc 20
776
+
777
+ typedef union _xkbDoodadWireDesc {
778
+ xkbAnyDoodadWireDesc any;
779
+ xkbShapeDoodadWireDesc shape;
780
+ xkbTextDoodadWireDesc text;
781
+ xkbIndicatorDoodadWireDesc indicator;
782
+ xkbLogoDoodadWireDesc logo;
783
+ } xkbDoodadWireDesc;
784
+ #define sz_xkbDoodadWireDesc 20
785
+
786
+ typedef struct _xkbGetGeometry {
787
+ CARD8 reqType;
788
+ CARD8 xkbReqType; /* always X_KBGetGeometry */
789
+ CARD16 length;
790
+ CARD16 deviceSpec;
791
+ CARD16 pad;
792
+ Atom name;
793
+ } xkbGetGeometryReq;
794
+ #define sz_xkbGetGeometryReq 12
795
+
796
+ typedef struct _xkbGetGeometryReply {
797
+ CARD8 type; /* always X_Reply */
798
+ CARD8 deviceID;
799
+ CARD16 sequenceNumber;
800
+ CARD32 length;
801
+ Atom name;
802
+ BOOL found;
803
+ CARD8 pad;
804
+ CARD16 widthMM;
805
+ CARD16 heightMM;
806
+ CARD16 nProperties;
807
+ CARD16 nColors;
808
+ CARD16 nShapes;
809
+ CARD16 nSections;
810
+ CARD16 nDoodads;
811
+ CARD16 nKeyAliases;
812
+ CARD8 baseColorNdx;
813
+ CARD8 labelColorNdx;
814
+ } xkbGetGeometryReply;
815
+ #define sz_xkbGetGeometryReply 32
816
+
817
+ typedef struct _xkbSetGeometry {
818
+ CARD8 reqType;
819
+ CARD8 xkbReqType; /* always X_KBSetGeometry */
820
+ CARD16 length;
821
+ CARD16 deviceSpec;
822
+ CARD8 nShapes;
823
+ CARD8 nSections;
824
+ Atom name;
825
+ CARD16 widthMM;
826
+ CARD16 heightMM;
827
+ CARD16 nProperties;
828
+ CARD16 nColors;
829
+ CARD16 nDoodads;
830
+ CARD16 nKeyAliases;
831
+ CARD8 baseColorNdx;
832
+ CARD8 labelColorNdx;
833
+ CARD16 pad;
834
+ } xkbSetGeometryReq;
835
+ #define sz_xkbSetGeometryReq 28
836
+
837
+ typedef struct _xkbPerClientFlags {
838
+ CARD8 reqType;
839
+ CARD8 xkbReqType;/* always X_KBPerClientFlags */
840
+ CARD16 length;
841
+ CARD16 deviceSpec;
842
+ CARD16 pad1;
843
+ CARD32 change;
844
+ CARD32 value;
845
+ CARD32 ctrlsToChange;
846
+ CARD32 autoCtrls;
847
+ CARD32 autoCtrlValues;
848
+ } xkbPerClientFlagsReq;
849
+ #define sz_xkbPerClientFlagsReq 28
850
+
851
+ typedef struct _xkbPerClientFlagsReply {
852
+ CARD8 type; /* always X_Reply */
853
+ CARD8 deviceID;
854
+ CARD16 sequenceNumber;
855
+ CARD32 length;
856
+ CARD32 supported;
857
+ CARD32 value;
858
+ CARD32 autoCtrls;
859
+ CARD32 autoCtrlValues;
860
+ CARD32 pad1;
861
+ CARD32 pad2;
862
+ } xkbPerClientFlagsReply;
863
+ #define sz_xkbPerClientFlagsReply 32
864
+
865
+ typedef struct _xkbListComponents {
866
+ CARD8 reqType;
867
+ CARD8 xkbReqType; /* always X_KBListComponents */
868
+ CARD16 length;
869
+ CARD16 deviceSpec;
870
+ CARD16 maxNames;
871
+ } xkbListComponentsReq;
872
+ #define sz_xkbListComponentsReq 8
873
+
874
+ typedef struct _xkbListComponentsReply {
875
+ CARD8 type; /* always X_Reply */
876
+ CARD8 deviceID;
877
+ CARD16 sequenceNumber;
878
+ CARD32 length;
879
+ CARD16 nKeymaps;
880
+ CARD16 nKeycodes;
881
+ CARD16 nTypes;
882
+ CARD16 nCompatMaps;
883
+ CARD16 nSymbols;
884
+ CARD16 nGeometries;
885
+ CARD16 extra;
886
+ CARD16 pad1;
887
+ CARD32 pad2;
888
+ CARD32 pad3;
889
+ } xkbListComponentsReply;
890
+ #define sz_xkbListComponentsReply 32
891
+
892
+ typedef struct _xkbGetKbdByName {
893
+ CARD8 reqType;
894
+ CARD8 xkbReqType; /* always X_KBGetKbdByName */
895
+ CARD16 length;
896
+ CARD16 deviceSpec;
897
+ CARD16 need; /* combination of XkbGBN_* */
898
+ CARD16 want; /* combination of XkbGBN_* */
899
+ BOOL load;
900
+ CARD8 pad;
901
+ } xkbGetKbdByNameReq;
902
+ #define sz_xkbGetKbdByNameReq 12
903
+
904
+ typedef struct _xkbGetKbdByNameReply {
905
+ CARD8 type; /* always X_Reply */
906
+ CARD8 deviceID;
907
+ CARD16 sequenceNumber;
908
+ CARD32 length;
909
+ KeyCode minKeyCode;
910
+ KeyCode maxKeyCode;
911
+ BOOL loaded;
912
+ BOOL newKeyboard;
913
+ CARD16 found; /* combination of XkbGBN_* */
914
+ CARD16 reported; /* combination of XkbAllComponents */
915
+ CARD32 pad1;
916
+ CARD32 pad2;
917
+ CARD32 pad3;
918
+ CARD32 pad4;
919
+ } xkbGetKbdByNameReply;
920
+ #define sz_xkbGetKbdByNameReply 32
921
+
922
+ typedef struct _xkbDeviceLedsWireDesc {
923
+ CARD16 ledClass;
924
+ CARD16 ledID;
925
+ CARD32 namesPresent;
926
+ CARD32 mapsPresent;
927
+ CARD32 physIndicators;
928
+ CARD32 state;
929
+ } xkbDeviceLedsWireDesc;
930
+ #define sz_xkbDeviceLedsWireDesc 20
931
+
932
+ typedef struct _xkbGetDeviceInfo {
933
+ CARD8 reqType;
934
+ CARD8 xkbReqType; /* always X_KBGetDeviceInfo */
935
+ CARD16 length;
936
+ CARD16 deviceSpec;
937
+ CARD16 wanted;
938
+ BOOL allBtns;
939
+ CARD8 firstBtn;
940
+ CARD8 nBtns;
941
+ CARD8 pad;
942
+ CARD16 ledClass;
943
+ CARD16 ledID;
944
+ } xkbGetDeviceInfoReq;
945
+ #define sz_xkbGetDeviceInfoReq 16
946
+
947
+ typedef struct _xkbGetDeviceInfoReply {
948
+ CARD8 type; /* always X_Reply */
949
+ CARD8 deviceID;
950
+ CARD16 sequenceNumber;
951
+ CARD32 length;
952
+ CARD16 present;
953
+ CARD16 supported;
954
+ CARD16 unsupported;
955
+ CARD16 nDeviceLedFBs;
956
+ CARD8 firstBtnWanted;
957
+ CARD8 nBtnsWanted;
958
+ CARD8 firstBtnRtrn;
959
+ CARD8 nBtnsRtrn;
960
+ CARD8 totalBtns;
961
+ BOOL hasOwnState;
962
+ CARD16 dfltKbdFB;
963
+ CARD16 dfltLedFB;
964
+ CARD16 pad;
965
+ Atom devType;
966
+ } xkbGetDeviceInfoReply;
967
+ #define sz_xkbGetDeviceInfoReply 32
968
+
969
+ typedef struct _xkbSetDeviceInfo {
970
+ CARD8 reqType;
971
+ CARD8 xkbReqType; /* always X_KBSetDeviceInfo */
972
+ CARD16 length;
973
+ CARD16 deviceSpec;
974
+ CARD8 firstBtn;
975
+ CARD8 nBtns;
976
+ CARD16 change;
977
+ CARD16 nDeviceLedFBs;
978
+ } xkbSetDeviceInfoReq;
979
+ #define sz_xkbSetDeviceInfoReq 12
980
+
981
+ typedef struct _xkbSetDebuggingFlags {
982
+ CARD8 reqType;
983
+ CARD8 xkbReqType; /* always X_KBSetDebuggingFlags */
984
+ CARD16 length;
985
+ CARD16 msgLength;
986
+ CARD16 pad;
987
+ CARD32 affectFlags;
988
+ CARD32 flags;
989
+ CARD32 affectCtrls;
990
+ CARD32 ctrls;
991
+ } xkbSetDebuggingFlagsReq;
992
+ #define sz_xkbSetDebuggingFlagsReq 24
993
+
994
+ typedef struct _xkbSetDebuggingFlagsReply {
995
+ BYTE type; /* X_Reply */
996
+ CARD8 pad0;
997
+ CARD16 sequenceNumber;
998
+ CARD32 length;
999
+ CARD32 currentFlags;
1000
+ CARD32 currentCtrls;
1001
+ CARD32 supportedFlags;
1002
+ CARD32 supportedCtrls;
1003
+ CARD32 pad1;
1004
+ CARD32 pad2;
1005
+ } xkbSetDebuggingFlagsReply;
1006
+ #define sz_xkbSetDebuggingFlagsReply 32
1007
+
1008
+ /*
1009
+ * X KEYBOARD EXTENSION EVENT STRUCTURES
1010
+ */
1011
+
1012
+ typedef struct _xkbAnyEvent {
1013
+ BYTE type;
1014
+ BYTE xkbType;
1015
+ CARD16 sequenceNumber;
1016
+ Time time;
1017
+ CARD8 deviceID;
1018
+ CARD8 pad1;
1019
+ CARD16 pad2;
1020
+ CARD32 pad3;
1021
+ CARD32 pad4;
1022
+ CARD32 pad5;
1023
+ CARD32 pad6;
1024
+ CARD32 pad7;
1025
+ } xkbAnyEvent;
1026
+ #define sz_xkbAnyEvent 32
1027
+
1028
+ typedef struct _xkbNewKeyboardNotify {
1029
+ BYTE type;
1030
+ BYTE xkbType;
1031
+ CARD16 sequenceNumber;
1032
+ Time time;
1033
+ CARD8 deviceID;
1034
+ CARD8 oldDeviceID;
1035
+ KeyCode minKeyCode;
1036
+ KeyCode maxKeyCode;
1037
+ KeyCode oldMinKeyCode;
1038
+ KeyCode oldMaxKeyCode;
1039
+ CARD8 requestMajor;
1040
+ CARD8 requestMinor;
1041
+ CARD16 changed;
1042
+ CARD8 detail;
1043
+ CARD8 pad1;
1044
+ CARD32 pad2;
1045
+ CARD32 pad3;
1046
+ CARD32 pad4;
1047
+ } xkbNewKeyboardNotify;
1048
+ #define sz_xkbNewKeyboardNotify 32
1049
+
1050
+ typedef struct _xkbMapNotify {
1051
+ BYTE type;
1052
+ BYTE xkbType;
1053
+ CARD16 sequenceNumber;
1054
+ Time time;
1055
+ CARD8 deviceID;
1056
+ CARD8 ptrBtnActions;
1057
+ CARD16 changed;
1058
+ KeyCode minKeyCode;
1059
+ KeyCode maxKeyCode;
1060
+ CARD8 firstType;
1061
+ CARD8 nTypes;
1062
+ KeyCode firstKeySym;
1063
+ CARD8 nKeySyms;
1064
+ KeyCode firstKeyAct;
1065
+ CARD8 nKeyActs;
1066
+ KeyCode firstKeyBehavior;
1067
+ CARD8 nKeyBehaviors;
1068
+ KeyCode firstKeyExplicit;
1069
+ CARD8 nKeyExplicit;
1070
+ KeyCode firstModMapKey;
1071
+ CARD8 nModMapKeys;
1072
+ KeyCode firstVModMapKey;
1073
+ CARD8 nVModMapKeys;
1074
+ CARD16 virtualMods;
1075
+ CARD16 pad1;
1076
+ } xkbMapNotify;
1077
+ #define sz_xkbMapNotify 32
1078
+
1079
+ typedef struct _xkbStateNotify {
1080
+ BYTE type;
1081
+ BYTE xkbType;
1082
+ CARD16 sequenceNumber;
1083
+ Time time;
1084
+ CARD8 deviceID;
1085
+ CARD8 mods;
1086
+ CARD8 baseMods;
1087
+ CARD8 latchedMods;
1088
+ CARD8 lockedMods;
1089
+ CARD8 group;
1090
+ INT16 baseGroup;
1091
+ INT16 latchedGroup;
1092
+ CARD8 lockedGroup;
1093
+ CARD8 compatState;
1094
+ CARD8 grabMods;
1095
+ CARD8 compatGrabMods;
1096
+ CARD8 lookupMods;
1097
+ CARD8 compatLookupMods;
1098
+ CARD16 ptrBtnState;
1099
+ CARD16 changed;
1100
+ KeyCode keycode;
1101
+ CARD8 eventType;
1102
+ CARD8 requestMajor;
1103
+ CARD8 requestMinor;
1104
+ } xkbStateNotify;
1105
+ #define sz_xkbStateNotify 32
1106
+
1107
+ typedef struct _xkbControlsNotify {
1108
+ BYTE type;
1109
+ BYTE xkbType;
1110
+ CARD16 sequenceNumber;
1111
+ Time time;
1112
+ CARD8 deviceID;
1113
+ CARD8 numGroups;
1114
+ CARD16 pad1;
1115
+ CARD32 changedControls;
1116
+ CARD32 enabledControls;
1117
+ CARD32 enabledControlChanges;
1118
+ KeyCode keycode;
1119
+ CARD8 eventType;
1120
+ CARD8 requestMajor;
1121
+ CARD8 requestMinor;
1122
+ CARD32 pad2;
1123
+ } xkbControlsNotify;
1124
+ #define sz_xkbControlsNotify 32
1125
+
1126
+ typedef struct _xkbIndicatorNotify {
1127
+ BYTE type;
1128
+ BYTE xkbType;
1129
+ CARD16 sequenceNumber;
1130
+ Time time;
1131
+ CARD8 deviceID;
1132
+ CARD8 pad1;
1133
+ CARD16 pad2;
1134
+ CARD32 state;
1135
+ CARD32 changed;
1136
+ CARD32 pad3;
1137
+ CARD32 pad4;
1138
+ CARD32 pad5;
1139
+ } xkbIndicatorNotify;
1140
+ #define sz_xkbIndicatorNotify 32
1141
+
1142
+ typedef struct _xkbNamesNotify {
1143
+ BYTE type;
1144
+ BYTE xkbType;
1145
+ CARD16 sequenceNumber;
1146
+ Time time;
1147
+ CARD8 deviceID;
1148
+ CARD8 pad1;
1149
+ CARD16 changed;
1150
+ CARD8 firstType;
1151
+ CARD8 nTypes;
1152
+ CARD8 firstLevelName;
1153
+ CARD8 nLevelNames;
1154
+ CARD8 pad2;
1155
+ CARD8 nRadioGroups;
1156
+ CARD8 nAliases;
1157
+ CARD8 changedGroupNames;
1158
+ CARD16 changedVirtualMods;
1159
+ CARD8 firstKey;
1160
+ CARD8 nKeys;
1161
+ CARD32 changedIndicators;
1162
+ CARD32 pad3;
1163
+ } xkbNamesNotify;
1164
+ #define sz_xkbNamesNotify 32
1165
+
1166
+ typedef struct _xkbCompatMapNotify {
1167
+ BYTE type;
1168
+ BYTE xkbType;
1169
+ CARD16 sequenceNumber;
1170
+ Time time;
1171
+ CARD8 deviceID;
1172
+ CARD8 changedGroups;
1173
+ CARD16 firstSI;
1174
+ CARD16 nSI;
1175
+ CARD16 nTotalSI;
1176
+ CARD32 pad1;
1177
+ CARD32 pad2;
1178
+ CARD32 pad3;
1179
+ CARD32 pad4;
1180
+ } xkbCompatMapNotify;
1181
+ #define sz_xkbCompatMapNotify 32
1182
+
1183
+ typedef struct _xkbBellNotify {
1184
+ BYTE type;
1185
+ BYTE xkbType;
1186
+ CARD16 sequenceNumber;
1187
+ Time time;
1188
+ CARD8 deviceID;
1189
+ CARD8 bellClass;
1190
+ CARD8 bellID;
1191
+ CARD8 percent;
1192
+ CARD16 pitch;
1193
+ CARD16 duration;
1194
+ Atom name;
1195
+ Window window;
1196
+ BOOL eventOnly;
1197
+ CARD8 pad1;
1198
+ CARD16 pad2;
1199
+ CARD32 pad3;
1200
+ } xkbBellNotify;
1201
+ #define sz_xkbBellNotify 32
1202
+
1203
+ typedef struct _xkbActionMessage {
1204
+ BYTE type;
1205
+ BYTE xkbType;
1206
+ CARD16 sequenceNumber;
1207
+ Time time;
1208
+ CARD8 deviceID;
1209
+ KeyCode keycode;
1210
+ BOOL press;
1211
+ BOOL keyEventFollows;
1212
+ CARD8 mods;
1213
+ CARD8 group;
1214
+ CARD8 message[8];
1215
+ CARD16 pad1;
1216
+ CARD32 pad2;
1217
+ CARD32 pad3;
1218
+ } xkbActionMessage;
1219
+ #define sz_xkbActionMessage 32
1220
+
1221
+ typedef struct _xkbAccessXNotify {
1222
+ BYTE type;
1223
+ BYTE xkbType;
1224
+ CARD16 sequenceNumber;
1225
+ Time time;
1226
+ CARD8 deviceID;
1227
+ KeyCode keycode;
1228
+ CARD16 detail;
1229
+ CARD16 slowKeysDelay;
1230
+ CARD16 debounceDelay;
1231
+ CARD32 pad1;
1232
+ CARD32 pad2;
1233
+ CARD32 pad3;
1234
+ CARD32 pad4;
1235
+ } xkbAccessXNotify;
1236
+ #define sz_xkbAccessXNotify 32
1237
+
1238
+ typedef struct _xkbExtensionDeviceNotify {
1239
+ BYTE type;
1240
+ BYTE xkbType;
1241
+ CARD16 sequenceNumber;
1242
+ Time time;
1243
+ CARD8 deviceID;
1244
+ CARD8 pad1;
1245
+ CARD16 reason;
1246
+ CARD16 ledClass;
1247
+ CARD16 ledID;
1248
+ CARD32 ledsDefined;
1249
+ CARD32 ledState;
1250
+ CARD8 firstBtn;
1251
+ CARD8 nBtns;
1252
+ CARD16 supported;
1253
+ CARD16 unsupported;
1254
+ CARD16 pad3;
1255
+ } xkbExtensionDeviceNotify;
1256
+ #define sz_xkbExtensionDeviceNotify 32
1257
+
1258
+ typedef struct _xkbEvent {
1259
+ union {
1260
+ xkbAnyEvent any;
1261
+ xkbNewKeyboardNotify new_kbd;
1262
+ xkbMapNotify map;
1263
+ xkbStateNotify state;
1264
+ xkbControlsNotify ctrls;
1265
+ xkbIndicatorNotify indicators;
1266
+ xkbNamesNotify names;
1267
+ xkbCompatMapNotify compat;
1268
+ xkbBellNotify bell;
1269
+ xkbActionMessage message;
1270
+ xkbAccessXNotify accessx;
1271
+ xkbExtensionDeviceNotify device;
1272
+ } u;
1273
+ } xkbEvent;
1274
+ #define sz_xkbEvent 32
1275
+
1276
+ #undef Window
1277
+ #undef Atom
1278
+ #undef Time
1279
+ #undef KeyCode
1280
+ #undef KeySym
1281
+
1282
+ #endif /* _XKBPROTO_H_ */
data/miniconda3/envs/catiagent/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/envs/catiagent/include/X11/extensions/XKBstr.h ADDED
@@ -0,0 +1,643 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 _XKBSTR_H_
28
+ #define _XKBSTR_H_
29
+
30
+ #include <X11/Xfuncproto.h>
31
+ #include <X11/extensions/XKB.h>
32
+
33
+ #define XkbCharToInt(v) ((v)&0x80?(int)((v)|(~0xff)):(int)((v)&0x7f))
34
+ #define XkbIntTo2Chars(i,h,l) (((h)=((i>>8)&0xff)),((l)=((i)&0xff)))
35
+ #define Xkb2CharsToInt(h,l) ((short)(((h)<<8)|(l)))
36
+
37
+ /*
38
+ * The Xkb structs are full of implicit padding to properly align members.
39
+ * We can't clean that up without breaking ABI, so tell clang not to bother
40
+ * complaining about it.
41
+ */
42
+ #ifdef __clang__
43
+ #pragma clang diagnostic push
44
+ #pragma clang diagnostic ignored "-Wpadded"
45
+ #endif
46
+
47
+ /*
48
+ * Common data structures and access macros
49
+ */
50
+
51
+ typedef struct _XkbStateRec {
52
+ unsigned char group;
53
+ unsigned char locked_group;
54
+ unsigned short base_group;
55
+ unsigned short latched_group;
56
+ unsigned char mods;
57
+ unsigned char base_mods;
58
+ unsigned char latched_mods;
59
+ unsigned char locked_mods;
60
+ unsigned char compat_state;
61
+ unsigned char grab_mods;
62
+ unsigned char compat_grab_mods;
63
+ unsigned char lookup_mods;
64
+ unsigned char compat_lookup_mods;
65
+ unsigned short ptr_buttons;
66
+ } XkbStateRec,*XkbStatePtr;
67
+ #define XkbModLocks(s) ((s)->locked_mods)
68
+ #define XkbStateMods(s) ((s)->base_mods|(s)->latched_mods|XkbModLocks(s))
69
+ #define XkbGroupLock(s) ((s)->locked_group)
70
+ #define XkbStateGroup(s) ((s)->base_group+(s)->latched_group+XkbGroupLock(s))
71
+ #define XkbStateFieldFromRec(s) XkbBuildCoreState((s)->lookup_mods,(s)->group)
72
+ #define XkbGrabStateFromRec(s) XkbBuildCoreState((s)->grab_mods,(s)->group)
73
+
74
+ typedef struct _XkbMods {
75
+ unsigned char mask; /* effective mods */
76
+ unsigned char real_mods;
77
+ unsigned short vmods;
78
+ } XkbModsRec,*XkbModsPtr;
79
+
80
+ typedef struct _XkbKTMapEntry {
81
+ Bool active;
82
+ unsigned char level;
83
+ XkbModsRec mods;
84
+ } XkbKTMapEntryRec,*XkbKTMapEntryPtr;
85
+
86
+ typedef struct _XkbKeyType {
87
+ XkbModsRec mods;
88
+ unsigned char num_levels;
89
+ unsigned char map_count;
90
+ /* map is an array of map_count XkbKTMapEntryRec structs */
91
+ XkbKTMapEntryPtr map;
92
+ /* preserve is an array of map_count XkbModsRec structs */
93
+ XkbModsPtr preserve;
94
+ Atom name;
95
+ /* level_names is an array of num_levels Atoms */
96
+ Atom * level_names;
97
+ } XkbKeyTypeRec, *XkbKeyTypePtr;
98
+
99
+ #define XkbNumGroups(g) ((g)&0x0f)
100
+ #define XkbOutOfRangeGroupInfo(g) ((g)&0xf0)
101
+ #define XkbOutOfRangeGroupAction(g) ((g)&0xc0)
102
+ #define XkbOutOfRangeGroupNumber(g) (((g)&0x30)>>4)
103
+ #define XkbSetGroupInfo(g,w,n) (((w)&0xc0)|(((n)&3)<<4)|((g)&0x0f))
104
+ #define XkbSetNumGroups(g,n) (((g)&0xf0)|((n)&0x0f))
105
+
106
+ /*
107
+ * Structures and access macros used primarily by the server
108
+ */
109
+
110
+ typedef struct _XkbBehavior {
111
+ unsigned char type;
112
+ unsigned char data;
113
+ } XkbBehavior;
114
+
115
+ #define XkbAnyActionDataSize 7
116
+ typedef struct _XkbAnyAction {
117
+ unsigned char type;
118
+ unsigned char data[XkbAnyActionDataSize];
119
+ } XkbAnyAction;
120
+
121
+ typedef struct _XkbModAction {
122
+ unsigned char type;
123
+ unsigned char flags;
124
+ unsigned char mask;
125
+ unsigned char real_mods;
126
+ unsigned char vmods1;
127
+ unsigned char vmods2;
128
+ } XkbModAction;
129
+ #define XkbModActionVMods(a) \
130
+ ((short)(((a)->vmods1<<8)|((a)->vmods2)))
131
+ #define XkbSetModActionVMods(a,v) \
132
+ (((a)->vmods1=(((v)>>8)&0xff)),(a)->vmods2=((v)&0xff))
133
+
134
+ typedef struct _XkbGroupAction {
135
+ unsigned char type;
136
+ unsigned char flags;
137
+ char group_XXX;
138
+ } XkbGroupAction;
139
+ #define XkbSAGroup(a) (XkbCharToInt((a)->group_XXX))
140
+ #define XkbSASetGroup(a,g) ((a)->group_XXX=(g))
141
+
142
+ typedef struct _XkbISOAction {
143
+ unsigned char type;
144
+ unsigned char flags;
145
+ unsigned char mask;
146
+ unsigned char real_mods;
147
+ char group_XXX;
148
+ unsigned char affect;
149
+ unsigned char vmods1;
150
+ unsigned char vmods2;
151
+ } XkbISOAction;
152
+
153
+ typedef struct _XkbPtrAction {
154
+ unsigned char type;
155
+ unsigned char flags;
156
+ unsigned char high_XXX;
157
+ unsigned char low_XXX;
158
+ unsigned char high_YYY;
159
+ unsigned char low_YYY;
160
+ } XkbPtrAction;
161
+ #define XkbPtrActionX(a) (Xkb2CharsToInt((a)->high_XXX,(a)->low_XXX))
162
+ #define XkbPtrActionY(a) (Xkb2CharsToInt((a)->high_YYY,(a)->low_YYY))
163
+ #define XkbSetPtrActionX(a,x) (XkbIntTo2Chars(x,(a)->high_XXX,(a)->low_XXX))
164
+ #define XkbSetPtrActionY(a,y) (XkbIntTo2Chars(y,(a)->high_YYY,(a)->low_YYY))
165
+
166
+ typedef struct _XkbPtrBtnAction {
167
+ unsigned char type;
168
+ unsigned char flags;
169
+ unsigned char count;
170
+ unsigned char button;
171
+ } XkbPtrBtnAction;
172
+
173
+ typedef struct _XkbPtrDfltAction {
174
+ unsigned char type;
175
+ unsigned char flags;
176
+ unsigned char affect;
177
+ char valueXXX;
178
+ } XkbPtrDfltAction;
179
+ #define XkbSAPtrDfltValue(a) (XkbCharToInt((a)->valueXXX))
180
+ #define XkbSASetPtrDfltValue(a,c) ((a)->valueXXX= ((c)&0xff))
181
+
182
+ typedef struct _XkbSwitchScreenAction {
183
+ unsigned char type;
184
+ unsigned char flags;
185
+ char screenXXX;
186
+ } XkbSwitchScreenAction;
187
+ #define XkbSAScreen(a) (XkbCharToInt((a)->screenXXX))
188
+ #define XkbSASetScreen(a,s) ((a)->screenXXX= ((s)&0xff))
189
+
190
+ typedef struct _XkbCtrlsAction {
191
+ unsigned char type;
192
+ unsigned char flags;
193
+ unsigned char ctrls3;
194
+ unsigned char ctrls2;
195
+ unsigned char ctrls1;
196
+ unsigned char ctrls0;
197
+ } XkbCtrlsAction;
198
+ #define XkbActionSetCtrls(a,c) (((a)->ctrls3=(((c)>>24)&0xff)),\
199
+ ((a)->ctrls2=(((c)>>16)&0xff)),\
200
+ ((a)->ctrls1=(((c)>>8)&0xff)),\
201
+ ((a)->ctrls0=((c)&0xff)))
202
+ #define XkbActionCtrls(a) ((((unsigned int)(a)->ctrls3)<<24)|\
203
+ (((unsigned int)(a)->ctrls2)<<16)|\
204
+ (((unsigned int)(a)->ctrls1)<<8)|\
205
+ ((unsigned int)((a)->ctrls0)))
206
+
207
+ typedef struct _XkbMessageAction {
208
+ unsigned char type;
209
+ unsigned char flags;
210
+ unsigned char message[6];
211
+ } XkbMessageAction;
212
+
213
+ typedef struct _XkbRedirectKeyAction {
214
+ unsigned char type;
215
+ unsigned char new_key;
216
+ unsigned char mods_mask;
217
+ unsigned char mods;
218
+ unsigned char vmods_mask0;
219
+ unsigned char vmods_mask1;
220
+ unsigned char vmods0;
221
+ unsigned char vmods1;
222
+ } XkbRedirectKeyAction;
223
+
224
+ #define XkbSARedirectVMods(a) ((((unsigned int)(a)->vmods1)<<8)|\
225
+ ((unsigned int)(a)->vmods0))
226
+ #define XkbSARedirectSetVMods(a,m) (((a)->vmods1=(((m)>>8)&0xff)),\
227
+ ((a)->vmods0=((m)&0xff)))
228
+ #define XkbSARedirectVModsMask(a) ((((unsigned int)(a)->vmods_mask1)<<8)|\
229
+ ((unsigned int)(a)->vmods_mask0))
230
+ #define XkbSARedirectSetVModsMask(a,m) (((a)->vmods_mask1=(((m)>>8)&0xff)),\
231
+ ((a)->vmods_mask0=((m)&0xff)))
232
+
233
+ typedef struct _XkbDeviceBtnAction {
234
+ unsigned char type;
235
+ unsigned char flags;
236
+ unsigned char count;
237
+ unsigned char button;
238
+ unsigned char device;
239
+ } XkbDeviceBtnAction;
240
+
241
+ typedef struct _XkbDeviceValuatorAction {
242
+ unsigned char type;
243
+ unsigned char device;
244
+ unsigned char v1_what;
245
+ unsigned char v1_ndx;
246
+ unsigned char v1_value;
247
+ unsigned char v2_what;
248
+ unsigned char v2_ndx;
249
+ unsigned char v2_value;
250
+ } XkbDeviceValuatorAction;
251
+
252
+ typedef union _XkbAction {
253
+ XkbAnyAction any;
254
+ XkbModAction mods;
255
+ XkbGroupAction group;
256
+ XkbISOAction iso;
257
+ XkbPtrAction ptr;
258
+ XkbPtrBtnAction btn;
259
+ XkbPtrDfltAction dflt;
260
+ XkbSwitchScreenAction screen;
261
+ XkbCtrlsAction ctrls;
262
+ XkbMessageAction msg;
263
+ XkbRedirectKeyAction redirect;
264
+ XkbDeviceBtnAction devbtn;
265
+ XkbDeviceValuatorAction devval;
266
+ unsigned char type;
267
+ } XkbAction;
268
+
269
+ typedef struct _XkbControls {
270
+ unsigned char mk_dflt_btn;
271
+ unsigned char num_groups;
272
+ unsigned char groups_wrap;
273
+ XkbModsRec internal;
274
+ XkbModsRec ignore_lock;
275
+ unsigned int enabled_ctrls;
276
+ unsigned short repeat_delay;
277
+ unsigned short repeat_interval;
278
+ unsigned short slow_keys_delay;
279
+ unsigned short debounce_delay;
280
+ unsigned short mk_delay;
281
+ unsigned short mk_interval;
282
+ unsigned short mk_time_to_max;
283
+ unsigned short mk_max_speed;
284
+ short mk_curve;
285
+ unsigned short ax_options;
286
+ unsigned short ax_timeout;
287
+ unsigned short axt_opts_mask;
288
+ unsigned short axt_opts_values;
289
+ unsigned int axt_ctrls_mask;
290
+ unsigned int axt_ctrls_values;
291
+ unsigned char per_key_repeat[XkbPerKeyBitArraySize];
292
+ } XkbControlsRec, *XkbControlsPtr;
293
+
294
+ #define XkbAX_AnyFeedback(c) ((c)->enabled_ctrls&XkbAccessXFeedbackMask)
295
+ #define XkbAX_NeedOption(c,w) ((c)->ax_options&(w))
296
+ #define XkbAX_NeedFeedback(c,w) (XkbAX_AnyFeedback(c)&&XkbAX_NeedOption(c,w))
297
+
298
+ typedef struct _XkbServerMapRec {
299
+ /* acts is an array of XkbActions structs, with size_acts entries
300
+ allocated, and num_acts entries used. */
301
+ unsigned short num_acts;
302
+ unsigned short size_acts;
303
+ XkbAction *acts;
304
+
305
+ /* behaviors, key_acts, explicit, & vmodmap are all arrays with
306
+ (xkb->max_key_code + 1) entries allocated for each. */
307
+ XkbBehavior *behaviors;
308
+ unsigned short *key_acts;
309
+ #if defined(__cplusplus) || defined(c_plusplus)
310
+ /* explicit is a C++ reserved word */
311
+ unsigned char *c_explicit;
312
+ #else
313
+ unsigned char *explicit;
314
+ #endif
315
+ unsigned char vmods[XkbNumVirtualMods];
316
+ unsigned short *vmodmap;
317
+ } XkbServerMapRec, *XkbServerMapPtr;
318
+
319
+ #define XkbSMKeyActionsPtr(m,k) (&(m)->acts[(m)->key_acts[k]])
320
+
321
+ /*
322
+ * Structures and access macros used primarily by clients
323
+ */
324
+
325
+ typedef struct _XkbSymMapRec {
326
+ unsigned char kt_index[XkbNumKbdGroups];
327
+ unsigned char group_info;
328
+ unsigned char width;
329
+ unsigned short offset;
330
+ } XkbSymMapRec, *XkbSymMapPtr;
331
+
332
+ typedef struct _XkbClientMapRec {
333
+ /* types is an array of XkbKeyTypeRec structs, with size_types entries
334
+ allocated, and num_types entries used. */
335
+ unsigned char size_types;
336
+ unsigned char num_types;
337
+ XkbKeyTypePtr types;
338
+
339
+ /* syms is an array of size_syms KeySyms, in which num_syms are used */
340
+ unsigned short size_syms;
341
+ unsigned short num_syms;
342
+ KeySym *syms;
343
+ /* key_sym_map is an array of (max_key_code + 1) XkbSymMapRec structs */
344
+ XkbSymMapPtr key_sym_map;
345
+
346
+ /* modmap is an array of (max_key_code + 1) unsigned chars */
347
+ unsigned char *modmap;
348
+ } XkbClientMapRec, *XkbClientMapPtr;
349
+
350
+ #define XkbCMKeyGroupInfo(m,k) ((m)->key_sym_map[k].group_info)
351
+ #define XkbCMKeyNumGroups(m,k) (XkbNumGroups((m)->key_sym_map[k].group_info))
352
+ #define XkbCMKeyGroupWidth(m,k,g) (XkbCMKeyType(m,k,g)->num_levels)
353
+ #define XkbCMKeyGroupsWidth(m,k) ((m)->key_sym_map[k].width)
354
+ #define XkbCMKeyTypeIndex(m,k,g) ((m)->key_sym_map[k].kt_index[g&0x3])
355
+ #define XkbCMKeyType(m,k,g) (&(m)->types[XkbCMKeyTypeIndex(m,k,g)])
356
+ #define XkbCMKeyNumSyms(m,k) (XkbCMKeyGroupsWidth(m,k)*XkbCMKeyNumGroups(m,k))
357
+ #define XkbCMKeySymsOffset(m,k) ((m)->key_sym_map[k].offset)
358
+ #define XkbCMKeySymsPtr(m,k) (&(m)->syms[XkbCMKeySymsOffset(m,k)])
359
+
360
+ /*
361
+ * Compatibility structures and access macros
362
+ */
363
+
364
+ typedef struct _XkbSymInterpretRec {
365
+ KeySym sym;
366
+ unsigned char flags;
367
+ unsigned char match;
368
+ unsigned char mods;
369
+ unsigned char virtual_mod;
370
+ XkbAnyAction act;
371
+ } XkbSymInterpretRec,*XkbSymInterpretPtr;
372
+
373
+ typedef struct _XkbCompatMapRec {
374
+ /* sym_interpret is an array of XkbSymInterpretRec structs,
375
+ in which size_si are allocated & num_si are used. */
376
+ XkbSymInterpretPtr sym_interpret;
377
+ XkbModsRec groups[XkbNumKbdGroups];
378
+ unsigned short num_si;
379
+ unsigned short size_si;
380
+ } XkbCompatMapRec, *XkbCompatMapPtr;
381
+
382
+ typedef struct _XkbIndicatorMapRec {
383
+ unsigned char flags;
384
+ unsigned char which_groups;
385
+ unsigned char groups;
386
+ unsigned char which_mods;
387
+ XkbModsRec mods;
388
+ unsigned int ctrls;
389
+ } XkbIndicatorMapRec, *XkbIndicatorMapPtr;
390
+
391
+ #define XkbIM_IsAuto(i) ((((i)->flags&XkbIM_NoAutomatic)==0)&&\
392
+ (((i)->which_groups&&(i)->groups)||\
393
+ ((i)->which_mods&&(i)->mods.mask)||\
394
+ ((i)->ctrls)))
395
+ #define XkbIM_InUse(i) (((i)->flags)||((i)->which_groups)||\
396
+ ((i)->which_mods)||((i)->ctrls))
397
+
398
+
399
+ typedef struct _XkbIndicatorRec {
400
+ unsigned long phys_indicators;
401
+ XkbIndicatorMapRec maps[XkbNumIndicators];
402
+ } XkbIndicatorRec,*XkbIndicatorPtr;
403
+
404
+ typedef struct _XkbKeyNameRec {
405
+ char name[XkbKeyNameLength] _X_NONSTRING;
406
+ } XkbKeyNameRec,*XkbKeyNamePtr;
407
+
408
+ typedef struct _XkbKeyAliasRec {
409
+ char real[XkbKeyNameLength] _X_NONSTRING;
410
+ char alias[XkbKeyNameLength] _X_NONSTRING;
411
+ } XkbKeyAliasRec,*XkbKeyAliasPtr;
412
+
413
+ /*
414
+ * Names for everything
415
+ */
416
+ typedef struct _XkbNamesRec {
417
+ Atom keycodes;
418
+ Atom geometry;
419
+ Atom symbols;
420
+ Atom types;
421
+ Atom compat;
422
+ Atom vmods[XkbNumVirtualMods];
423
+ Atom indicators[XkbNumIndicators];
424
+ Atom groups[XkbNumKbdGroups];
425
+ /* keys is an array of (xkb->max_key_code + 1) XkbKeyNameRec entries */
426
+ XkbKeyNamePtr keys;
427
+ /* key_aliases is an array of num_key_aliases XkbKeyAliasRec entries */
428
+ XkbKeyAliasPtr key_aliases;
429
+ /* radio_groups is an array of num_rg Atoms */
430
+ Atom *radio_groups;
431
+ Atom phys_symbols;
432
+
433
+ /* num_keys seems to be unused in libX11 */
434
+ unsigned char num_keys;
435
+ unsigned char num_key_aliases;
436
+ unsigned short num_rg;
437
+ } XkbNamesRec,*XkbNamesPtr;
438
+
439
+ typedef struct _XkbGeometry *XkbGeometryPtr;
440
+ /*
441
+ * Tie it all together into one big keyboard description
442
+ */
443
+ typedef struct _XkbDesc {
444
+ struct _XDisplay * dpy;
445
+ unsigned short flags;
446
+ unsigned short device_spec;
447
+ KeyCode min_key_code;
448
+ KeyCode max_key_code;
449
+
450
+ XkbControlsPtr ctrls;
451
+ XkbServerMapPtr server;
452
+ XkbClientMapPtr map;
453
+ XkbIndicatorPtr indicators;
454
+ XkbNamesPtr names;
455
+ XkbCompatMapPtr compat;
456
+ XkbGeometryPtr geom;
457
+ } XkbDescRec, *XkbDescPtr;
458
+ #define XkbKeyKeyTypeIndex(d,k,g) (XkbCMKeyTypeIndex((d)->map,k,g))
459
+ #define XkbKeyKeyType(d,k,g) (XkbCMKeyType((d)->map,k,g))
460
+ #define XkbKeyGroupWidth(d,k,g) (XkbCMKeyGroupWidth((d)->map,k,g))
461
+ #define XkbKeyGroupsWidth(d,k) (XkbCMKeyGroupsWidth((d)->map,k))
462
+ #define XkbKeyGroupInfo(d,k) (XkbCMKeyGroupInfo((d)->map,(k)))
463
+ #define XkbKeyNumGroups(d,k) (XkbCMKeyNumGroups((d)->map,(k)))
464
+ #define XkbKeyNumSyms(d,k) (XkbCMKeyNumSyms((d)->map,(k)))
465
+ #define XkbKeySymsPtr(d,k) (XkbCMKeySymsPtr((d)->map,(k)))
466
+ #define XkbKeySym(d,k,n) (XkbKeySymsPtr(d,k)[n])
467
+ #define XkbKeySymEntry(d,k,sl,g) \
468
+ (XkbKeySym(d,k,((XkbKeyGroupsWidth(d,k)*(g))+(sl))))
469
+ #define XkbKeyAction(d,k,n) \
470
+ (XkbKeyHasActions(d,k)?&XkbKeyActionsPtr(d,k)[n]:NULL)
471
+ #define XkbKeyActionEntry(d,k,sl,g) \
472
+ (XkbKeyHasActions(d,k)?\
473
+ XkbKeyAction(d,k,((XkbKeyGroupsWidth(d,k)*(g))+(sl))):NULL)
474
+
475
+ #define XkbKeyHasActions(d,k) ((d)->server->key_acts[k]!=0)
476
+ #define XkbKeyNumActions(d,k) (XkbKeyHasActions(d,k)?XkbKeyNumSyms(d,k):1)
477
+ #define XkbKeyActionsPtr(d,k) (XkbSMKeyActionsPtr((d)->server,k))
478
+ #define XkbKeycodeInRange(d,k) (((k)>=(d)->min_key_code)&&\
479
+ ((k)<=(d)->max_key_code))
480
+ #define XkbNumKeys(d) ((d)->max_key_code-(d)->min_key_code+1)
481
+
482
+
483
+ /*
484
+ * The following structures can be used to track changes
485
+ * to a keyboard device
486
+ */
487
+ typedef struct _XkbMapChanges {
488
+ unsigned short changed;
489
+ KeyCode min_key_code;
490
+ KeyCode max_key_code;
491
+ unsigned char first_type;
492
+ unsigned char num_types;
493
+ KeyCode first_key_sym;
494
+ unsigned char num_key_syms;
495
+ KeyCode first_key_act;
496
+ unsigned char num_key_acts;
497
+ KeyCode first_key_behavior;
498
+ unsigned char num_key_behaviors;
499
+ KeyCode first_key_explicit;
500
+ unsigned char num_key_explicit;
501
+ KeyCode first_modmap_key;
502
+ unsigned char num_modmap_keys;
503
+ KeyCode first_vmodmap_key;
504
+ unsigned char num_vmodmap_keys;
505
+ unsigned char pad;
506
+ unsigned short vmods;
507
+ } XkbMapChangesRec,*XkbMapChangesPtr;
508
+
509
+ typedef struct _XkbControlsChanges {
510
+ unsigned int changed_ctrls;
511
+ unsigned int enabled_ctrls_changes;
512
+ Bool num_groups_changed;
513
+ } XkbControlsChangesRec,*XkbControlsChangesPtr;
514
+
515
+ typedef struct _XkbIndicatorChanges {
516
+ unsigned int state_changes;
517
+ unsigned int map_changes;
518
+ } XkbIndicatorChangesRec,*XkbIndicatorChangesPtr;
519
+
520
+ typedef struct _XkbNameChanges {
521
+ unsigned int changed;
522
+ unsigned char first_type;
523
+ unsigned char num_types;
524
+ unsigned char first_lvl;
525
+ unsigned char num_lvls;
526
+ unsigned char num_aliases;
527
+ unsigned char num_rg;
528
+ unsigned char first_key;
529
+ unsigned char num_keys;
530
+ unsigned short changed_vmods;
531
+ unsigned long changed_indicators;
532
+ unsigned char changed_groups;
533
+ } XkbNameChangesRec,*XkbNameChangesPtr;
534
+
535
+ typedef struct _XkbCompatChanges {
536
+ unsigned char changed_groups;
537
+ unsigned short first_si;
538
+ unsigned short num_si;
539
+ } XkbCompatChangesRec,*XkbCompatChangesPtr;
540
+
541
+ typedef struct _XkbChanges {
542
+ unsigned short device_spec;
543
+ unsigned short state_changes;
544
+ XkbMapChangesRec map;
545
+ XkbControlsChangesRec ctrls;
546
+ XkbIndicatorChangesRec indicators;
547
+ XkbNameChangesRec names;
548
+ XkbCompatChangesRec compat;
549
+ } XkbChangesRec, *XkbChangesPtr;
550
+
551
+ /*
552
+ * These data structures are used to construct a keymap from
553
+ * a set of components or to list components in the server
554
+ * database.
555
+ */
556
+ typedef struct _XkbComponentNames {
557
+ char * keymap;
558
+ char * keycodes;
559
+ char * types;
560
+ char * compat;
561
+ char * symbols;
562
+ char * geometry;
563
+ } XkbComponentNamesRec, *XkbComponentNamesPtr;
564
+
565
+ typedef struct _XkbComponentName {
566
+ unsigned short flags;
567
+ char * name;
568
+ } XkbComponentNameRec,*XkbComponentNamePtr;
569
+
570
+ typedef struct _XkbComponentList {
571
+ int num_keymaps;
572
+ int num_keycodes;
573
+ int num_types;
574
+ int num_compat;
575
+ int num_symbols;
576
+ int num_geometry;
577
+ XkbComponentNamePtr keymaps;
578
+ XkbComponentNamePtr keycodes;
579
+ XkbComponentNamePtr types;
580
+ XkbComponentNamePtr compat;
581
+ XkbComponentNamePtr symbols;
582
+ XkbComponentNamePtr geometry;
583
+ } XkbComponentListRec, *XkbComponentListPtr;
584
+
585
+ /*
586
+ * The following data structures describe and track changes to a
587
+ * non-keyboard extension device
588
+ */
589
+ typedef struct _XkbDeviceLedInfo {
590
+ unsigned short led_class;
591
+ unsigned short led_id;
592
+ unsigned int phys_indicators;
593
+ unsigned int maps_present;
594
+ unsigned int names_present;
595
+ unsigned int state;
596
+ Atom names[XkbNumIndicators];
597
+ XkbIndicatorMapRec maps[XkbNumIndicators];
598
+ } XkbDeviceLedInfoRec,*XkbDeviceLedInfoPtr;
599
+
600
+ typedef struct _XkbDeviceInfo {
601
+ char * name;
602
+ Atom type;
603
+ unsigned short device_spec;
604
+ Bool has_own_state;
605
+ unsigned short supported;
606
+ unsigned short unsupported;
607
+
608
+ /* btn_acts is an array of num_btn XkbAction entries */
609
+ unsigned short num_btns;
610
+ XkbAction * btn_acts;
611
+
612
+ unsigned short sz_leds;
613
+ unsigned short num_leds;
614
+ unsigned short dflt_kbd_fb;
615
+ unsigned short dflt_led_fb;
616
+ /* leds is an array of XkbDeviceLedInfoRec in which
617
+ sz_leds entries are allocated and num_leds entries are used */
618
+ XkbDeviceLedInfoPtr leds;
619
+ } XkbDeviceInfoRec,*XkbDeviceInfoPtr;
620
+
621
+ #define XkbXI_DevHasBtnActs(d) (((d)->num_btns>0)&&((d)->btn_acts!=NULL))
622
+ #define XkbXI_LegalDevBtn(d,b) (XkbXI_DevHasBtnActs(d)&&((b)<(d)->num_btns))
623
+ #define XkbXI_DevHasLeds(d) (((d)->num_leds>0)&&((d)->leds!=NULL))
624
+
625
+ typedef struct _XkbDeviceLedChanges {
626
+ unsigned short led_class;
627
+ unsigned short led_id;
628
+ unsigned int defined; /* names or maps changed */
629
+ struct _XkbDeviceLedChanges *next;
630
+ } XkbDeviceLedChangesRec,*XkbDeviceLedChangesPtr;
631
+
632
+ typedef struct _XkbDeviceChanges {
633
+ unsigned int changed;
634
+ unsigned short first_btn;
635
+ unsigned short num_btns;
636
+ XkbDeviceLedChangesRec leds;
637
+ } XkbDeviceChangesRec,*XkbDeviceChangesPtr;
638
+
639
+ #ifdef __clang__
640
+ #pragma clang diagnostic pop
641
+ #endif
642
+
643
+ #endif /* _XKBSTR_H_ */
data/miniconda3/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/include/X11/extensions/Xext.h ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ #ifndef _XEXT_H_
27
+ #define _XEXT_H_
28
+
29
+ #include <X11/Xfuncproto.h>
30
+
31
+ _XFUNCPROTOBEGIN
32
+
33
+ typedef int (*XextErrorHandler) (
34
+ Display * /* dpy */,
35
+ _Xconst char* /* ext_name */,
36
+ _Xconst char* /* reason */
37
+ );
38
+
39
+ extern XextErrorHandler XSetExtensionErrorHandler(
40
+ XextErrorHandler /* handler */
41
+ );
42
+
43
+ extern int XMissingExtension(
44
+ Display* /* dpy */,
45
+ _Xconst char* /* ext_name */
46
+ );
47
+
48
+ _XFUNCPROTOEND
49
+
50
+ #define X_EXTENSION_UNKNOWN "unknown"
51
+ #define X_EXTENSION_MISSING "missing"
52
+
53
+ #endif /* _XEXT_H_ */
data/miniconda3/envs/catiagent/include/X11/extensions/Xfixes.h ADDED
@@ -0,0 +1,279 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Copyright (c) 2006, Oracle and/or its affiliates.
3
+ * Copyright 2011, 2021 Red Hat, Inc.
4
+ *
5
+ * Permission is hereby granted, free of charge, to any person obtaining a
6
+ * copy of this software and associated documentation files (the "Software"),
7
+ * to deal in the Software without restriction, including without limitation
8
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9
+ * and/or sell copies of the Software, and to permit persons to whom the
10
+ * Software is furnished to do so, subject to the following conditions:
11
+ *
12
+ * The above copyright notice and this permission notice (including the next
13
+ * paragraph) shall be included in all copies or substantial portions of the
14
+ * Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
+ * DEALINGS IN THE SOFTWARE.
23
+ */
24
+ /*
25
+ * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
26
+ *
27
+ * Permission to use, copy, modify, distribute, and sell this software and its
28
+ * documentation for any purpose is hereby granted without fee, provided that
29
+ * the above copyright notice appear in all copies and that both that
30
+ * copyright notice and this permission notice appear in supporting
31
+ * documentation, and that the name of Keith Packard not be used in
32
+ * advertising or publicity pertaining to distribution of the software without
33
+ * specific, written prior permission. Keith Packard makes no
34
+ * representations about the suitability of this software for any purpose. It
35
+ * is provided "as is" without express or implied warranty.
36
+ *
37
+ * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
38
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
39
+ * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
40
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
41
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
42
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
43
+ * PERFORMANCE OF THIS SOFTWARE.
44
+ */
45
+
46
+ #ifndef _XFIXES_H_
47
+ #define _XFIXES_H_
48
+
49
+ #include <X11/extensions/xfixeswire.h>
50
+
51
+ #include <X11/Xfuncproto.h>
52
+ #include <X11/Xlib.h>
53
+
54
+ /*
55
+ * This revision number also appears in configure.ac, they have
56
+ * to be manually synchronized
57
+ */
58
+ #define XFIXES_REVISION 1
59
+ #define XFIXES_VERSION ((XFIXES_MAJOR * 10000) + (XFIXES_MINOR * 100) + (XFIXES_REVISION))
60
+
61
+ typedef struct {
62
+ int type; /* event base */
63
+ unsigned long serial;
64
+ Bool send_event;
65
+ Display *display;
66
+ Window window;
67
+ int subtype;
68
+ Window owner;
69
+ Atom selection;
70
+ Time timestamp;
71
+ Time selection_timestamp;
72
+ } XFixesSelectionNotifyEvent;
73
+
74
+ typedef struct {
75
+ int type; /* event base */
76
+ unsigned long serial;
77
+ Bool send_event;
78
+ Display *display;
79
+ Window window;
80
+ int subtype;
81
+ unsigned long cursor_serial;
82
+ Time timestamp;
83
+ Atom cursor_name;
84
+ } XFixesCursorNotifyEvent;
85
+
86
+ typedef struct {
87
+ short x, y;
88
+ unsigned short width, height;
89
+ unsigned short xhot, yhot;
90
+ unsigned long cursor_serial;
91
+ unsigned long *pixels;
92
+ #if XFIXES_MAJOR >= 2
93
+ Atom atom; /* Version >= 2 only */
94
+ const char *name; /* Version >= 2 only */
95
+ #endif
96
+ } XFixesCursorImage;
97
+
98
+ #if XFIXES_MAJOR >= 2
99
+ /* Version 2 types */
100
+
101
+ typedef XID XserverRegion;
102
+
103
+ typedef struct {
104
+ short x, y;
105
+ unsigned short width, height;
106
+ unsigned short xhot, yhot;
107
+ unsigned long cursor_serial;
108
+ unsigned long *pixels;
109
+ Atom atom;
110
+ const char *name;
111
+ } XFixesCursorImageAndName;
112
+
113
+ #endif
114
+
115
+ _XFUNCPROTOBEGIN
116
+
117
+ Bool XFixesQueryExtension (Display *dpy,
118
+ int *event_base_return,
119
+ int *error_base_return);
120
+ Status XFixesQueryVersion (Display *dpy,
121
+ int *major_version_return,
122
+ int *minor_version_return);
123
+
124
+ int XFixesVersion (void);
125
+
126
+ void
127
+ XFixesChangeSaveSet (Display *dpy,
128
+ Window win,
129
+ int mode,
130
+ int target,
131
+ int map);
132
+
133
+ void
134
+ XFixesSelectSelectionInput (Display *dpy,
135
+ Window win,
136
+ Atom selection,
137
+ unsigned long eventMask);
138
+
139
+ void
140
+ XFixesSelectCursorInput (Display *dpy,
141
+ Window win,
142
+ unsigned long eventMask);
143
+
144
+ XFixesCursorImage *
145
+ XFixesGetCursorImage (Display *dpy);
146
+
147
+ #if XFIXES_MAJOR >= 2
148
+ /* Version 2 functions */
149
+
150
+ XserverRegion
151
+ XFixesCreateRegion (Display *dpy, XRectangle *rectangles, int nrectangles);
152
+
153
+ XserverRegion
154
+ XFixesCreateRegionFromBitmap (Display *dpy, Pixmap bitmap);
155
+
156
+ XserverRegion
157
+ XFixesCreateRegionFromWindow (Display *dpy, Window window, int kind);
158
+
159
+ XserverRegion
160
+ XFixesCreateRegionFromGC (Display *dpy, GC gc);
161
+
162
+ XserverRegion
163
+ XFixesCreateRegionFromPicture (Display *dpy, XID picture);
164
+
165
+ void
166
+ XFixesDestroyRegion (Display *dpy, XserverRegion region);
167
+
168
+ void
169
+ XFixesSetRegion (Display *dpy, XserverRegion region,
170
+ XRectangle *rectangles, int nrectangles);
171
+
172
+ void
173
+ XFixesCopyRegion (Display *dpy, XserverRegion dst, XserverRegion src);
174
+
175
+ void
176
+ XFixesUnionRegion (Display *dpy, XserverRegion dst,
177
+ XserverRegion src1, XserverRegion src2);
178
+
179
+ void
180
+ XFixesIntersectRegion (Display *dpy, XserverRegion dst,
181
+ XserverRegion src1, XserverRegion src2);
182
+
183
+ void
184
+ XFixesSubtractRegion (Display *dpy, XserverRegion dst,
185
+ XserverRegion src1, XserverRegion src2);
186
+
187
+ void
188
+ XFixesInvertRegion (Display *dpy, XserverRegion dst,
189
+ XRectangle *rect, XserverRegion src);
190
+
191
+ void
192
+ XFixesTranslateRegion (Display *dpy, XserverRegion region, int dx, int dy);
193
+
194
+ void
195
+ XFixesRegionExtents (Display *dpy, XserverRegion dst, XserverRegion src);
196
+
197
+ XRectangle *
198
+ XFixesFetchRegion (Display *dpy, XserverRegion region, int *nrectanglesRet);
199
+
200
+ XRectangle *
201
+ XFixesFetchRegionAndBounds (Display *dpy, XserverRegion region,
202
+ int *nrectanglesRet,
203
+ XRectangle *bounds);
204
+
205
+ void
206
+ XFixesSetGCClipRegion (Display *dpy, GC gc,
207
+ int clip_x_origin, int clip_y_origin,
208
+ XserverRegion region);
209
+
210
+ void
211
+ XFixesSetWindowShapeRegion (Display *dpy, Window win, int shape_kind,
212
+ int x_off, int y_off, XserverRegion region);
213
+
214
+ void
215
+ XFixesSetPictureClipRegion (Display *dpy, XID picture,
216
+ int clip_x_origin, int clip_y_origin,
217
+ XserverRegion region);
218
+
219
+ void
220
+ XFixesSetCursorName (Display *dpy, Cursor cursor, const char *name);
221
+
222
+ const char *
223
+ XFixesGetCursorName (Display *dpy, Cursor cursor, Atom *atom);
224
+
225
+ void
226
+ XFixesChangeCursor (Display *dpy, Cursor source, Cursor destination);
227
+
228
+ void
229
+ XFixesChangeCursorByName (Display *dpy, Cursor source, const char *name);
230
+
231
+ #endif /* XFIXES_MAJOR >= 2 */
232
+
233
+ #if XFIXES_MAJOR >= 3
234
+
235
+ void
236
+ XFixesExpandRegion (Display *dpy, XserverRegion dst, XserverRegion src,
237
+ unsigned left, unsigned right,
238
+ unsigned top, unsigned bottom);
239
+
240
+ #endif /* XFIXES_MAJOR >= 3 */
241
+
242
+ #if XFIXES_MAJOR >= 4
243
+ /* Version 4.0 externs */
244
+
245
+ void
246
+ XFixesHideCursor (Display *dpy, Window win);
247
+
248
+ void
249
+ XFixesShowCursor (Display *dpy, Window win);
250
+
251
+ #endif /* XFIXES_MAJOR >= 4 */
252
+
253
+ #if XFIXES_MAJOR >= 5
254
+
255
+ typedef XID PointerBarrier;
256
+
257
+ PointerBarrier
258
+ XFixesCreatePointerBarrier(Display *dpy, Window w, int x1, int y1,
259
+ int x2, int y2, int directions,
260
+ int num_devices, int *devices);
261
+
262
+ void
263
+ XFixesDestroyPointerBarrier(Display *dpy, PointerBarrier b);
264
+
265
+ #endif /* XFIXES_MAJOR >= 5 */
266
+
267
+ #if XFIXES_MAJOR >= 6
268
+
269
+ void
270
+ XFixesSetClientDisconnectMode(Display *dpy, int disconnect_mode);
271
+
272
+ int
273
+ XFixesGetClientDisconnectMode(Display *dpy);
274
+
275
+ #endif /* XFIXES_MAJOR >= 6 */
276
+
277
+ _XFUNCPROTOEND
278
+
279
+ #endif /* _XFIXES_H_ */
data/miniconda3/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/include/X11/extensions/Xvproto.h ADDED
@@ -0,0 +1,603 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 XVPROTO_H
26
+ #define XVPROTO_H
27
+ /*
28
+ ** File:
29
+ **
30
+ ** Xvproto.h --- Xv protocol header file
31
+ **
32
+ ** Author:
33
+ **
34
+ ** David Carver (Digital Workstation Engineering/Project Athena)
35
+ **
36
+ ** Revisions:
37
+ **
38
+ ** 11.06.91 Carver
39
+ ** - changed SetPortControl to SetPortAttribute
40
+ ** - changed GetPortControl to GetPortAttribute
41
+ ** - changed QueryBestSize
42
+ **
43
+ ** 15.05.91 Carver
44
+ ** - version 2.0 upgrade
45
+ **
46
+ ** 24.01.91 Carver
47
+ ** - version 1.4 upgrade
48
+ **
49
+ */
50
+
51
+ #include <X11/Xmd.h>
52
+
53
+ /* Symbols: These are undefined at the end of this file to restore the
54
+ values they have in Xv.h */
55
+
56
+ #define XvPortID CARD32
57
+ #define XvEncodingID CARD32
58
+ #define ShmSeg CARD32
59
+ #define VisualID CARD32
60
+ #define Drawable CARD32
61
+ #define GContext CARD32
62
+ #define Time CARD32
63
+ #define Atom CARD32
64
+
65
+ /* Structures */
66
+
67
+ typedef struct {
68
+ INT32 numerator;
69
+ INT32 denominator;
70
+ } xvRational;
71
+ #define sz_xvRational 8
72
+
73
+ typedef struct {
74
+ XvPortID base_id;
75
+ CARD16 name_size;
76
+ CARD16 num_ports;
77
+ CARD16 num_formats;
78
+ CARD8 type;
79
+ CARD8 pad;
80
+ } xvAdaptorInfo;
81
+ #define sz_xvAdaptorInfo 12
82
+
83
+ typedef struct {
84
+ XvEncodingID encoding;
85
+ CARD16 name_size;
86
+ CARD16 width, height;
87
+ CARD16 pad;
88
+ xvRational rate;
89
+ } xvEncodingInfo;
90
+ #define sz_xvEncodingInfo (12 + sz_xvRational)
91
+
92
+ typedef struct {
93
+ VisualID visual;
94
+ CARD8 depth;
95
+ CARD8 pad1;
96
+ CARD16 pad2;
97
+ } xvFormat;
98
+ #define sz_xvFormat 8
99
+
100
+ typedef struct {
101
+ CARD32 flags;
102
+ INT32 min;
103
+ INT32 max;
104
+ CARD32 size;
105
+ } xvAttributeInfo;
106
+ #define sz_xvAttributeInfo 16
107
+
108
+ typedef struct {
109
+ CARD32 id;
110
+ CARD8 type;
111
+ CARD8 byte_order;
112
+ CARD16 pad1;
113
+ CARD8 guid[16];
114
+ CARD8 bpp;
115
+ CARD8 num_planes;
116
+ CARD16 pad2;
117
+ CARD8 depth;
118
+ CARD8 pad3;
119
+ CARD16 pad4;
120
+ CARD32 red_mask;
121
+ CARD32 green_mask;
122
+ CARD32 blue_mask;
123
+ CARD8 format;
124
+ CARD8 pad5;
125
+ CARD16 pad6;
126
+ CARD32 y_sample_bits;
127
+ CARD32 u_sample_bits;
128
+ CARD32 v_sample_bits;
129
+ CARD32 horz_y_period;
130
+ CARD32 horz_u_period;
131
+ CARD32 horz_v_period;
132
+ CARD32 vert_y_period;
133
+ CARD32 vert_u_period;
134
+ CARD32 vert_v_period;
135
+ CARD8 comp_order[32];
136
+ CARD8 scanline_order;
137
+ CARD8 pad7;
138
+ CARD16 pad8;
139
+ CARD32 pad9;
140
+ CARD32 pad10;
141
+ } xvImageFormatInfo;
142
+ #define sz_xvImageFormatInfo 128
143
+
144
+
145
+ /* Requests */
146
+
147
+ #define xv_QueryExtension 0
148
+ #define xv_QueryAdaptors 1
149
+ #define xv_QueryEncodings 2
150
+ #define xv_GrabPort 3
151
+ #define xv_UngrabPort 4
152
+ #define xv_PutVideo 5
153
+ #define xv_PutStill 6
154
+ #define xv_GetVideo 7
155
+ #define xv_GetStill 8
156
+ #define xv_StopVideo 9
157
+ #define xv_SelectVideoNotify 10
158
+ #define xv_SelectPortNotify 11
159
+ #define xv_QueryBestSize 12
160
+ #define xv_SetPortAttribute 13
161
+ #define xv_GetPortAttribute 14
162
+ #define xv_QueryPortAttributes 15
163
+ #define xv_ListImageFormats 16
164
+ #define xv_QueryImageAttributes 17
165
+ #define xv_PutImage 18
166
+ #define xv_ShmPutImage 19
167
+ #define xv_LastRequest xv_ShmPutImage
168
+
169
+ #define xvNumRequests (xv_LastRequest + 1)
170
+
171
+ typedef struct {
172
+ CARD8 reqType;
173
+ CARD8 xvReqType;
174
+ CARD16 length;
175
+ } xvQueryExtensionReq;
176
+ #define sz_xvQueryExtensionReq 4
177
+
178
+ typedef struct {
179
+ CARD8 reqType;
180
+ CARD8 xvReqType;
181
+ CARD16 length;
182
+ CARD32 window;
183
+ } xvQueryAdaptorsReq;
184
+ #define sz_xvQueryAdaptorsReq 8
185
+
186
+ typedef struct {
187
+ CARD8 reqType;
188
+ CARD8 xvReqType;
189
+ CARD16 length;
190
+ CARD32 port;
191
+ } xvQueryEncodingsReq;
192
+ #define sz_xvQueryEncodingsReq 8
193
+
194
+ typedef struct {
195
+ CARD8 reqType;
196
+ CARD8 xvReqType;
197
+ CARD16 length;
198
+ XvPortID port;
199
+ Drawable drawable;
200
+ GContext gc;
201
+ INT16 vid_x;
202
+ INT16 vid_y;
203
+ CARD16 vid_w;
204
+ CARD16 vid_h;
205
+ INT16 drw_x;
206
+ INT16 drw_y;
207
+ CARD16 drw_w;
208
+ CARD16 drw_h;
209
+ } xvPutVideoReq;
210
+ #define sz_xvPutVideoReq 32
211
+
212
+ typedef struct {
213
+ CARD8 reqType;
214
+ CARD8 xvReqType;
215
+ CARD16 length;
216
+ XvPortID port;
217
+ Drawable drawable;
218
+ GContext gc;
219
+ INT16 vid_x;
220
+ INT16 vid_y;
221
+ CARD16 vid_w;
222
+ CARD16 vid_h;
223
+ INT16 drw_x;
224
+ INT16 drw_y;
225
+ CARD16 drw_w;
226
+ CARD16 drw_h;
227
+ } xvPutStillReq;
228
+ #define sz_xvPutStillReq 32
229
+
230
+ typedef struct {
231
+ CARD8 reqType;
232
+ CARD8 xvReqType;
233
+ CARD16 length;
234
+ XvPortID port;
235
+ Drawable drawable;
236
+ GContext gc;
237
+ INT16 vid_x;
238
+ INT16 vid_y;
239
+ CARD16 vid_w;
240
+ CARD16 vid_h;
241
+ INT16 drw_x;
242
+ INT16 drw_y;
243
+ CARD16 drw_w;
244
+ CARD16 drw_h;
245
+ } xvGetVideoReq;
246
+ #define sz_xvGetVideoReq 32
247
+
248
+ typedef struct {
249
+ CARD8 reqType;
250
+ CARD8 xvReqType;
251
+ CARD16 length;
252
+ XvPortID port;
253
+ Drawable drawable;
254
+ GContext gc;
255
+ INT16 vid_x;
256
+ INT16 vid_y;
257
+ CARD16 vid_w;
258
+ CARD16 vid_h;
259
+ INT16 drw_x;
260
+ INT16 drw_y;
261
+ CARD16 drw_w;
262
+ CARD16 drw_h;
263
+ } xvGetStillReq;
264
+ #define sz_xvGetStillReq 32
265
+
266
+ typedef struct {
267
+ CARD8 reqType;
268
+ CARD8 xvReqType;
269
+ CARD16 length;
270
+ XvPortID port;
271
+ Time time;
272
+ } xvGrabPortReq;
273
+ #define sz_xvGrabPortReq 12
274
+
275
+ typedef struct {
276
+ CARD8 reqType;
277
+ CARD8 xvReqType;
278
+ CARD16 length;
279
+ XvPortID port;
280
+ Time time;
281
+ } xvUngrabPortReq;
282
+ #define sz_xvUngrabPortReq 12
283
+
284
+ typedef struct {
285
+ CARD8 reqType;
286
+ CARD8 xvReqType;
287
+ CARD16 length;
288
+ Drawable drawable;
289
+ BOOL onoff;
290
+ CARD8 pad1;
291
+ CARD16 pad2;
292
+ } xvSelectVideoNotifyReq;
293
+ #define sz_xvSelectVideoNotifyReq 12
294
+
295
+ typedef struct {
296
+ CARD8 reqType;
297
+ CARD8 xvReqType;
298
+ CARD16 length;
299
+ XvPortID port;
300
+ BOOL onoff;
301
+ CARD8 pad1;
302
+ CARD16 pad2;
303
+ } xvSelectPortNotifyReq;
304
+ #define sz_xvSelectPortNotifyReq 12
305
+
306
+ typedef struct {
307
+ CARD8 reqType;
308
+ CARD8 xvReqType;
309
+ CARD16 length;
310
+ XvPortID port;
311
+ Drawable drawable;
312
+ } xvStopVideoReq;
313
+ #define sz_xvStopVideoReq 12
314
+
315
+ typedef struct {
316
+ CARD8 reqType;
317
+ CARD8 xvReqType;
318
+ CARD16 length;
319
+ XvPortID port;
320
+ Atom attribute;
321
+ INT32 value;
322
+ } xvSetPortAttributeReq;
323
+ #define sz_xvSetPortAttributeReq 16
324
+
325
+ typedef struct {
326
+ CARD8 reqType;
327
+ CARD8 xvReqType;
328
+ CARD16 length;
329
+ XvPortID port;
330
+ Atom attribute;
331
+ } xvGetPortAttributeReq;
332
+ #define sz_xvGetPortAttributeReq 12
333
+
334
+ typedef struct {
335
+ CARD8 reqType;
336
+ CARD8 xvReqType;
337
+ CARD16 length;
338
+ XvPortID port;
339
+ CARD16 vid_w;
340
+ CARD16 vid_h;
341
+ CARD16 drw_w;
342
+ CARD16 drw_h;
343
+ CARD8 motion;
344
+ CARD8 pad1;
345
+ CARD16 pad2;
346
+ } xvQueryBestSizeReq;
347
+ #define sz_xvQueryBestSizeReq 20
348
+
349
+ typedef struct {
350
+ CARD8 reqType;
351
+ CARD8 xvReqType;
352
+ CARD16 length;
353
+ XvPortID port;
354
+ } xvQueryPortAttributesReq;
355
+ #define sz_xvQueryPortAttributesReq 8
356
+
357
+ typedef struct {
358
+ CARD8 reqType;
359
+ CARD8 xvReqType;
360
+ CARD16 length;
361
+ XvPortID port;
362
+ Drawable drawable;
363
+ GContext gc;
364
+ CARD32 id;
365
+ INT16 src_x;
366
+ INT16 src_y;
367
+ CARD16 src_w;
368
+ CARD16 src_h;
369
+ INT16 drw_x;
370
+ INT16 drw_y;
371
+ CARD16 drw_w;
372
+ CARD16 drw_h;
373
+ CARD16 width;
374
+ CARD16 height;
375
+ } xvPutImageReq;
376
+ #define sz_xvPutImageReq 40
377
+
378
+ typedef struct {
379
+ CARD8 reqType;
380
+ CARD8 xvReqType;
381
+ CARD16 length;
382
+ XvPortID port;
383
+ Drawable drawable;
384
+ GContext gc;
385
+ ShmSeg shmseg;
386
+ CARD32 id;
387
+ CARD32 offset;
388
+ INT16 src_x;
389
+ INT16 src_y;
390
+ CARD16 src_w;
391
+ CARD16 src_h;
392
+ INT16 drw_x;
393
+ INT16 drw_y;
394
+ CARD16 drw_w;
395
+ CARD16 drw_h;
396
+ CARD16 width;
397
+ CARD16 height;
398
+ CARD8 send_event;
399
+ CARD8 pad1;
400
+ CARD16 pad2;
401
+ } xvShmPutImageReq;
402
+ #define sz_xvShmPutImageReq 52
403
+
404
+ typedef struct {
405
+ CARD8 reqType;
406
+ CARD8 xvReqType;
407
+ CARD16 length;
408
+ XvPortID port;
409
+ } xvListImageFormatsReq;
410
+ #define sz_xvListImageFormatsReq 8
411
+
412
+ typedef struct {
413
+ CARD8 reqType;
414
+ CARD8 xvReqType;
415
+ CARD16 length;
416
+ CARD32 port;
417
+ CARD32 id;
418
+ CARD16 width;
419
+ CARD16 height;
420
+ } xvQueryImageAttributesReq;
421
+ #define sz_xvQueryImageAttributesReq 16
422
+
423
+
424
+ /* Replies */
425
+
426
+ typedef struct _QueryExtensionReply {
427
+ BYTE type; /* X_Reply */
428
+ CARD8 padb1;
429
+ CARD16 sequenceNumber;
430
+ CARD32 length;
431
+ CARD16 version;
432
+ CARD16 revision;
433
+ CARD32 padl4;
434
+ CARD32 padl5;
435
+ CARD32 padl6;
436
+ CARD32 padl7;
437
+ CARD32 padl8;
438
+ } xvQueryExtensionReply;
439
+ #define sz_xvQueryExtensionReply 32
440
+
441
+ typedef struct _QueryAdaptorsReply {
442
+ BYTE type; /* X_Reply */
443
+ CARD8 padb1;
444
+ CARD16 sequenceNumber;
445
+ CARD32 length;
446
+ CARD16 num_adaptors;
447
+ CARD16 pads3;
448
+ CARD32 padl4;
449
+ CARD32 padl5;
450
+ CARD32 padl6;
451
+ CARD32 padl7;
452
+ CARD32 padl8;
453
+ } xvQueryAdaptorsReply;
454
+ #define sz_xvQueryAdaptorsReply 32
455
+
456
+ typedef struct _QueryEncodingsReply {
457
+ BYTE type; /* X_Reply */
458
+ CARD8 padb1;
459
+ CARD16 sequenceNumber;
460
+ CARD32 length;
461
+ CARD16 num_encodings;
462
+ CARD16 padl3;
463
+ CARD32 padl4;
464
+ CARD32 padl5;
465
+ CARD32 padl6;
466
+ CARD32 padl7;
467
+ CARD32 padl8;
468
+ } xvQueryEncodingsReply;
469
+ #define sz_xvQueryEncodingsReply 32
470
+
471
+ typedef struct {
472
+ BYTE type; /* X_Reply */
473
+ BYTE result;
474
+ CARD16 sequenceNumber;
475
+ CARD32 length; /* 0 */
476
+ CARD32 padl3;
477
+ CARD32 padl4;
478
+ CARD32 padl5;
479
+ CARD32 padl6;
480
+ CARD32 padl7;
481
+ CARD32 padl8;
482
+ } xvGrabPortReply;
483
+ #define sz_xvGrabPortReply 32
484
+
485
+ typedef struct {
486
+ BYTE type; /* X_Reply */
487
+ BYTE padb1;
488
+ CARD16 sequenceNumber;
489
+ CARD32 length; /* 0 */
490
+ INT32 value;
491
+ CARD32 padl4;
492
+ CARD32 padl5;
493
+ CARD32 padl6;
494
+ CARD32 padl7;
495
+ CARD32 padl8;
496
+ } xvGetPortAttributeReply;
497
+ #define sz_xvGetPortAttributeReply 32
498
+
499
+ typedef struct {
500
+ BYTE type; /* X_Reply */
501
+ BYTE padb1;
502
+ CARD16 sequenceNumber;
503
+ CARD32 length; /* 0 */
504
+ CARD16 actual_width;
505
+ CARD16 actual_height;
506
+ CARD32 padl4;
507
+ CARD32 padl5;
508
+ CARD32 padl6;
509
+ CARD32 padl7;
510
+ CARD32 padl8;
511
+ } xvQueryBestSizeReply;
512
+ #define sz_xvQueryBestSizeReply 32
513
+
514
+ typedef struct {
515
+ BYTE type; /* X_Reply */
516
+ BYTE padb1;
517
+ CARD16 sequenceNumber;
518
+ CARD32 length; /* 0 */
519
+ CARD32 num_attributes;
520
+ CARD32 text_size;
521
+ CARD32 padl5;
522
+ CARD32 padl6;
523
+ CARD32 padl7;
524
+ CARD32 padl8;
525
+ } xvQueryPortAttributesReply;
526
+ #define sz_xvQueryPortAttributesReply 32
527
+
528
+ typedef struct {
529
+ BYTE type; /* X_Reply */
530
+ BYTE padb1;
531
+ CARD16 sequenceNumber;
532
+ CARD32 length;
533
+ CARD32 num_formats;
534
+ CARD32 padl4;
535
+ CARD32 padl5;
536
+ CARD32 padl6;
537
+ CARD32 padl7;
538
+ CARD32 padl8;
539
+ } xvListImageFormatsReply;
540
+ #define sz_xvListImageFormatsReply 32
541
+
542
+ typedef struct {
543
+ BYTE type; /* X_Reply */
544
+ BYTE padb1;
545
+ CARD16 sequenceNumber;
546
+ CARD32 length;
547
+ CARD32 num_planes;
548
+ CARD32 data_size;
549
+ CARD16 width;
550
+ CARD16 height;
551
+ CARD32 padl6;
552
+ CARD32 padl7;
553
+ CARD32 padl8;
554
+ } xvQueryImageAttributesReply;
555
+ #define sz_xvQueryImageAttributesReply 32
556
+
557
+ /* DEFINE EVENT STRUCTURE */
558
+
559
+ typedef struct {
560
+ union {
561
+ struct {
562
+ BYTE type;
563
+ BYTE detail;
564
+ CARD16 sequenceNumber;
565
+ } u;
566
+ struct {
567
+ BYTE type;
568
+ BYTE reason;
569
+ CARD16 sequenceNumber;
570
+ Time time;
571
+ Drawable drawable;
572
+ XvPortID port;
573
+ CARD32 padl5;
574
+ CARD32 padl6;
575
+ CARD32 padl7;
576
+ CARD32 padl8;
577
+ } videoNotify;
578
+ struct {
579
+ BYTE type;
580
+ BYTE padb1;
581
+ CARD16 sequenceNumber;
582
+ Time time;
583
+ XvPortID port;
584
+ Atom attribute;
585
+ INT32 value;
586
+ CARD32 padl6;
587
+ CARD32 padl7;
588
+ CARD32 padl8;
589
+ } portNotify;
590
+ } u;
591
+ } xvEvent;
592
+
593
+ #undef XvPortID
594
+ #undef XvEncodingID
595
+ #undef ShmSeg
596
+ #undef VisualID
597
+ #undef Drawable
598
+ #undef GContext
599
+ #undef Time
600
+ #undef Atom
601
+
602
+ #endif /* XVPROTO_H */
603
+
data/miniconda3/envs/catiagent/include/X11/extensions/ag.h ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 _AG_H_
28
+ #define _AG_H_
29
+
30
+ #define XAGNAME "XC-APPGROUP"
31
+
32
+ #define XAG_MAJOR_VERSION 1 /* current version numbers */
33
+ #define XAG_MINOR_VERSION 0
34
+
35
+ #define XagWindowTypeX11 0
36
+ #define XagWindowTypeMacintosh 1
37
+ #define XagWindowTypeWin32 2
38
+ #define XagWindowTypeWin16 3
39
+
40
+ #define XagBadAppGroup 0
41
+ #define XagNumberErrors (XagBadAppGroup + 1)
42
+
43
+ #define XagNsingleScreen 7
44
+ #define XagNdefaultRoot 1
45
+ #define XagNrootVisual 2
46
+ #define XagNdefaultColormap 3
47
+ #define XagNblackPixel 4
48
+ #define XagNwhitePixel 5
49
+ #define XagNappGroupLeader 6
50
+
51
+ #endif /* _AG_H_ */
52
+
data/miniconda3/envs/catiagent/include/X11/extensions/agproto.h ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Copyright 1996, 1998, 2001 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 _AGPROTO_H_ /* { */
28
+ #define _AGPROTO_H_
29
+
30
+ #include <X11/extensions/ag.h>
31
+
32
+ #define X_XagQueryVersion 0
33
+ #define X_XagCreate 1
34
+ #define X_XagDestroy 2
35
+ #define X_XagGetAttr 3
36
+ #define X_XagQuery 4
37
+ #define X_XagCreateAssoc 5
38
+ #define X_XagDestroyAssoc 6
39
+
40
+ #define XAppGroup CARD32
41
+
42
+ /*
43
+ * Redefine some basic types used by structures defined herein. This allows
44
+ * both the library and server to view communicated data as 32-bit entities,
45
+ * thus preventing problems on 64-bit architectures where libXext sees this
46
+ * data as 64 bits and the server sees it as 32 bits.
47
+ */
48
+
49
+ #define Colormap CARD32
50
+ #define VisualID CARD32
51
+ #define Window CARD32
52
+
53
+ typedef struct _XagQueryVersion {
54
+ CARD8 reqType; /* always XagReqCode */
55
+ CARD8 xagReqType; /* always X_XagQueryVersion */
56
+ CARD16 length;
57
+ CARD16 client_major_version;
58
+ CARD16 client_minor_version;
59
+ } xXagQueryVersionReq;
60
+ #define sz_xXagQueryVersionReq 8
61
+
62
+ typedef struct {
63
+ BYTE type; /* X_Reply */
64
+ BOOL pad1;
65
+ CARD16 sequence_number;
66
+ CARD32 length;
67
+ CARD16 server_major_version;
68
+ CARD16 server_minor_version;
69
+ CARD32 pad2;
70
+ CARD32 pad3;
71
+ CARD32 pad4;
72
+ CARD32 pad5;
73
+ CARD32 pad6;
74
+ } xXagQueryVersionReply;
75
+ #define sz_xXagQueryVersionReply 32
76
+
77
+ /* Set AppGroup Attributes masks */
78
+ #define XagSingleScreenMask 1 << 0
79
+ #define XagDefaultRootMask 1 << XagNdefaultRoot
80
+ #define XagRootVisualMask 1 << XagNrootVisual
81
+ #define XagDefaultColormapMask 1 << XagNdefaultColormap
82
+ #define XagBlackPixelMask 1 << XagNblackPixel
83
+ #define XagWhitePixelMask 1 << XagNwhitePixel
84
+ #define XagAppGroupLeaderMask 1 << XagNappGroupLeader
85
+
86
+ typedef struct _XagCreate {
87
+ CARD8 reqType; /* always XagReqCode */
88
+ CARD8 xagReqType; /* always X_XagCreate */
89
+ CARD16 length;
90
+ XAppGroup app_group;
91
+ CARD32 attrib_mask; /* LISTofVALUE follows */
92
+ } xXagCreateReq;
93
+ #define sz_xXagCreateReq 12
94
+
95
+ typedef struct _XagDestroy {
96
+ CARD8 reqType; /* always XagReqCode */
97
+ CARD8 xagReqType; /* always X_XagDestroy */
98
+ CARD16 length;
99
+ XAppGroup app_group;
100
+ } xXagDestroyReq;
101
+ #define sz_xXagDestroyReq 8
102
+
103
+ typedef struct _XagGetAttr {
104
+ CARD8 reqType; /* always XagReqCode */
105
+ CARD8 xagReqType; /* always X_XagGetAttr */
106
+ CARD16 length;
107
+ XAppGroup app_group;
108
+ } xXagGetAttrReq;
109
+ #define sz_xXagGetAttrReq 8
110
+
111
+ typedef struct {
112
+ BYTE type; /* X_Reply */
113
+ BOOL pad1;
114
+ CARD16 sequence_number;
115
+ CARD32 length;
116
+ Window default_root;
117
+ VisualID root_visual;
118
+ Colormap default_colormap;
119
+ CARD32 black_pixel;
120
+ CARD32 white_pixel;
121
+ BOOL single_screen;
122
+ BOOL app_group_leader;
123
+ CARD16 pad2;
124
+ } xXagGetAttrReply;
125
+ #define sz_xXagGetAttrReply 32
126
+
127
+ typedef struct _XagQuery {
128
+ CARD8 reqType; /* always XagReqCode */
129
+ CARD8 xagReqType; /* always X_XagQuery */
130
+ CARD16 length;
131
+ CARD32 resource;
132
+ } xXagQueryReq;
133
+ #define sz_xXagQueryReq 8
134
+
135
+ typedef struct {
136
+ BYTE type; /* X_Reply */
137
+ BOOL pad1;
138
+ CARD16 sequence_number;
139
+ CARD32 length;
140
+ XAppGroup app_group;
141
+ CARD32 pad2;
142
+ CARD32 pad3;
143
+ CARD32 pad4;
144
+ CARD32 pad5;
145
+ CARD32 pad6;
146
+ } xXagQueryReply;
147
+ #define sz_xXagQueryReply 32
148
+
149
+ typedef struct _XagCreateAssoc {
150
+ CARD8 reqType; /* always XagReqCode */
151
+ CARD8 xagReqType; /* always X_XagCreateAssoc */
152
+ CARD16 length;
153
+ Window window;
154
+ CARD16 window_type;
155
+ CARD16 system_window_len; /* LISTofCARD8 follows */
156
+ } xXagCreateAssocReq;
157
+ #define sz_xXagCreateAssocReq 12
158
+
159
+ typedef struct _XagDestroyAssoc {
160
+ CARD8 reqType; /* always XagReqCode */
161
+ CARD8 xagReqType; /* always X_XagDestroyAssoc */
162
+ CARD16 length;
163
+ Window window;
164
+ } xXagDestroyAssocReq;
165
+ #define sz_xXagDestroyAssocReq 8
166
+
167
+ #undef XAppGroup
168
+ /*
169
+ * Cancel the previous redefinition of the basic types, thus restoring their
170
+ * X.h definitions.
171
+ */
172
+
173
+ #undef Window
174
+ #undef Colormap
175
+ #undef VisualID
176
+
177
+ #endif /* } _AGPROTO_H_ */
178
+
data/miniconda3/envs/catiagent/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/envs/catiagent/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/envs/catiagent/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/envs/catiagent/include/X11/extensions/bigreqstr.h ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #warning "bigreqstr.h is obsolete and may be removed in the future."
2
+ #warning "include <X11/extensions/bigreqsproto.h> for the protocol defines."
3
+ #include <X11/extensions/bigreqsproto.h>
data/miniconda3/envs/catiagent/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/envs/catiagent/include/X11/extensions/compositeproto.h ADDED
@@ -0,0 +1,192 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 _COMPOSITEPROTO_H_
46
+ #define _COMPOSITEPROTO_H_
47
+
48
+ #include <X11/Xmd.h>
49
+ #include <X11/extensions/composite.h>
50
+
51
+ #define Window CARD32
52
+ #define Region CARD32
53
+ #define Pixmap CARD32
54
+
55
+ /*
56
+ * requests and replies
57
+ */
58
+ typedef struct {
59
+ CARD8 reqType;
60
+ CARD8 compositeReqType;
61
+ CARD16 length;
62
+ CARD32 majorVersion;
63
+ CARD32 minorVersion;
64
+ } xCompositeQueryVersionReq;
65
+
66
+ #define sz_xCompositeQueryVersionReq 12
67
+
68
+ typedef struct {
69
+ BYTE type; /* X_Reply */
70
+ BYTE pad1;
71
+ CARD16 sequenceNumber;
72
+ CARD32 length;
73
+ CARD32 majorVersion;
74
+ CARD32 minorVersion;
75
+ CARD32 pad2;
76
+ CARD32 pad3;
77
+ CARD32 pad4;
78
+ CARD32 pad5;
79
+ } xCompositeQueryVersionReply;
80
+
81
+ #define sz_xCompositeQueryVersionReply 32
82
+
83
+ typedef struct {
84
+ CARD8 reqType;
85
+ CARD8 compositeReqType;
86
+ CARD16 length;
87
+ Window window;
88
+ CARD8 update;
89
+ CARD8 pad1;
90
+ CARD16 pad2;
91
+ } xCompositeRedirectWindowReq;
92
+
93
+ #define sz_xCompositeRedirectWindowReq 12
94
+
95
+ typedef struct {
96
+ CARD8 reqType;
97
+ CARD8 compositeReqType;
98
+ CARD16 length;
99
+ Window window;
100
+ CARD8 update;
101
+ CARD8 pad1;
102
+ CARD16 pad2;
103
+ } xCompositeRedirectSubwindowsReq;
104
+
105
+ #define sz_xCompositeRedirectSubwindowsReq 12
106
+
107
+ typedef struct {
108
+ CARD8 reqType;
109
+ CARD8 compositeReqType;
110
+ CARD16 length;
111
+ Window window;
112
+ CARD8 update;
113
+ CARD8 pad1;
114
+ CARD16 pad2;
115
+ } xCompositeUnredirectWindowReq;
116
+
117
+ #define sz_xCompositeUnredirectWindowReq 12
118
+
119
+ typedef struct {
120
+ CARD8 reqType;
121
+ CARD8 compositeReqType;
122
+ CARD16 length;
123
+ Window window;
124
+ CARD8 update;
125
+ CARD8 pad1;
126
+ CARD16 pad2;
127
+ } xCompositeUnredirectSubwindowsReq;
128
+
129
+ #define sz_xCompositeUnredirectSubwindowsReq 12
130
+
131
+ typedef struct {
132
+ CARD8 reqType;
133
+ CARD8 compositeReqType;
134
+ CARD16 length;
135
+ Region region;
136
+ Window window;
137
+ } xCompositeCreateRegionFromBorderClipReq;
138
+
139
+ #define sz_xCompositeCreateRegionFromBorderClipReq 12
140
+
141
+ /* Version 0.2 additions */
142
+
143
+ typedef struct {
144
+ CARD8 reqType;
145
+ CARD8 compositeReqType;
146
+ CARD16 length;
147
+ Window window;
148
+ Pixmap pixmap;
149
+ } xCompositeNameWindowPixmapReq;
150
+
151
+ #define sz_xCompositeNameWindowPixmapReq 12
152
+
153
+ /* Version 0.3 additions */
154
+
155
+ typedef struct {
156
+ CARD8 reqType;
157
+ CARD8 compositeReqType;
158
+ CARD16 length;
159
+ Window window;
160
+ } xCompositeGetOverlayWindowReq;
161
+
162
+ #define sz_xCompositeGetOverlayWindowReq sizeof(xCompositeGetOverlayWindowReq)
163
+
164
+ typedef struct {
165
+ BYTE type; /* X_Reply */
166
+ BYTE pad1;
167
+ CARD16 sequenceNumber;
168
+ CARD32 length;
169
+ Window overlayWin;
170
+ CARD32 pad2;
171
+ CARD32 pad3;
172
+ CARD32 pad4;
173
+ CARD32 pad5;
174
+ CARD32 pad6;
175
+ } xCompositeGetOverlayWindowReply;
176
+
177
+ #define sz_xCompositeGetOverlayWindowReply sizeof(xCompositeGetOverlayWindowReply)
178
+
179
+ typedef struct {
180
+ CARD8 reqType;
181
+ CARD8 compositeReqType;
182
+ CARD16 length;
183
+ Window window;
184
+ } xCompositeReleaseOverlayWindowReq;
185
+
186
+ #define sz_xCompositeReleaseOverlayWindowReq sizeof(xCompositeReleaseOverlayWindowReq)
187
+
188
+ #undef Window
189
+ #undef Region
190
+ #undef Pixmap
191
+
192
+ #endif /* _COMPOSITEPROTO_H_ */
data/miniconda3/envs/catiagent/include/X11/extensions/cup.h ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 _CUP_H_
28
+ #define _CUP_H_
29
+
30
+ #define XCUPNAME "TOG-CUP"
31
+
32
+ #define XCUP_MAJOR_VERSION 1 /* current version numbers */
33
+ #define XCUP_MINOR_VERSION 0
34
+
35
+ #define XcupNumberErrors 0
36
+
37
+ #endif /* _CUP_H_ */
38
+