Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/XI2.h +259 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/XI2proto.h +1169 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/XIproto.h +1758 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/XKB.h +786 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/XKBproto.h +1282 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/XKBsrv.h +1184 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/XKBstr.h +643 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/XResproto.h +227 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/Xv.h +128 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/XvMC.h +138 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/XvMCproto.h +226 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/Xvproto.h +603 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/ag.h +52 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/agproto.h +178 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/applewmconst.h +84 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/applewmproto.h +293 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/bigreqsproto.h +67 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/bigreqstr.h +3 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/composite.h +71 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/compositeproto.h +192 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/cup.h +38 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/cupproto.h +105 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/damageproto.h +158 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/damagewire.h +56 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dbe.h +57 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dbeproto.h +224 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dmx.h +68 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dmxproto.h +445 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dpmsconst.h +46 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dpmsproto.h +201 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dri2proto.h +357 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dri2tokens.h +61 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dri3proto.h +288 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/ge.h +60 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/geproto.h +85 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/lbx.h +73 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/lbxproto.h +975 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/mitmiscconst.h +38 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/mitmiscproto.h +68 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/multibufconst.h +83 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/multibufproto.h +295 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/panoramiXproto.h +193 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/presentproto.h +280 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/presenttokens.h +115 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/randr.h +208 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/randrproto.h +1152 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/recordconst.h +54 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/recordproto.h +306 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/recordstr.h +4 -0
- miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/render.h +210 -0
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/XI2.h
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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_BarrierLe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 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_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/XIproto.h
ADDED
|
@@ -0,0 +1,1758 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/XKB.h
ADDED
|
@@ -0,0 +1,786 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/XKBproto.h
ADDED
|
@@ -0,0 +1,1282 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/X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
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 */
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
|
| 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_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/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 */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/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 |
+
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/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
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/XvMCproto.h
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/Xvproto.h
ADDED
|
@@ -0,0 +1,603 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/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 |
+
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/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_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/applewmproto.h
ADDED
|
@@ -0,0 +1,293 @@
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/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_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/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>
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/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_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/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_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/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 |
+
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/cupproto.h
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
|
| 3 |
+
Copyright 1987, 1988, 1998 The Open Group
|
| 4 |
+
|
| 5 |
+
Permission to use, copy, modify, distribute, and sell this software and its
|
| 6 |
+
documentation for any purpose is hereby granted without fee, provided that
|
| 7 |
+
the above copyright notice appear in all copies and that both that
|
| 8 |
+
copyright notice and this permission notice appear in supporting
|
| 9 |
+
documentation.
|
| 10 |
+
|
| 11 |
+
The above copyright notice and this permission notice shall be included in
|
| 12 |
+
all copies or substantial portions of the Software.
|
| 13 |
+
|
| 14 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 15 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 16 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 17 |
+
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
| 18 |
+
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 19 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 20 |
+
|
| 21 |
+
Except as contained in this notice, the name of The Open Group shall not be
|
| 22 |
+
used in advertising or otherwise to promote the sale, use or other dealings
|
| 23 |
+
in this Software without prior written authorization from The Open Group.
|
| 24 |
+
|
| 25 |
+
*/
|
| 26 |
+
|
| 27 |
+
#ifndef _XCUPPROTO_H_ /* { */
|
| 28 |
+
#define _XCUPPROTO_H_
|
| 29 |
+
|
| 30 |
+
#include <X11/extensions/cup.h>
|
| 31 |
+
|
| 32 |
+
#define X_XcupQueryVersion 0
|
| 33 |
+
#define X_XcupGetReservedColormapEntries 1
|
| 34 |
+
#define X_XcupStoreColors 2
|
| 35 |
+
|
| 36 |
+
typedef struct _XcupQueryVersion {
|
| 37 |
+
CARD8 reqType; /* always XcupReqCode */
|
| 38 |
+
CARD8 xcupReqType; /* always X_XcupQueryVersion */
|
| 39 |
+
CARD16 length;
|
| 40 |
+
CARD16 client_major_version;
|
| 41 |
+
CARD16 client_minor_version;
|
| 42 |
+
} xXcupQueryVersionReq;
|
| 43 |
+
#define sz_xXcupQueryVersionReq 8
|
| 44 |
+
|
| 45 |
+
typedef struct {
|
| 46 |
+
BYTE type; /* X_Reply */
|
| 47 |
+
BOOL pad1;
|
| 48 |
+
CARD16 sequence_number;
|
| 49 |
+
CARD32 length;
|
| 50 |
+
CARD16 server_major_version;
|
| 51 |
+
CARD16 server_minor_version;
|
| 52 |
+
CARD32 pad2;
|
| 53 |
+
CARD32 pad3;
|
| 54 |
+
CARD32 pad4;
|
| 55 |
+
CARD32 pad5;
|
| 56 |
+
CARD32 pad6;
|
| 57 |
+
} xXcupQueryVersionReply;
|
| 58 |
+
#define sz_xXcupQueryVersionReply 32
|
| 59 |
+
|
| 60 |
+
typedef struct _XcupGetReservedColormapEntries {
|
| 61 |
+
CARD8 reqType; /* always XcupReqCode */
|
| 62 |
+
CARD8 xcupReqType; /* always X_XcupGetReservedColormapEntries */
|
| 63 |
+
CARD16 length;
|
| 64 |
+
CARD32 screen;
|
| 65 |
+
} xXcupGetReservedColormapEntriesReq;
|
| 66 |
+
#define sz_xXcupGetReservedColormapEntriesReq 8
|
| 67 |
+
|
| 68 |
+
typedef struct {
|
| 69 |
+
BYTE type; /* X_Reply */
|
| 70 |
+
BOOL pad1;
|
| 71 |
+
CARD16 sequence_number;
|
| 72 |
+
CARD32 length;
|
| 73 |
+
CARD32 pad2;
|
| 74 |
+
CARD32 pad3;
|
| 75 |
+
CARD32 pad4;
|
| 76 |
+
CARD32 pad5;
|
| 77 |
+
CARD32 pad6;
|
| 78 |
+
CARD32 pad7;
|
| 79 |
+
} xXcupGetReservedColormapEntriesReply;
|
| 80 |
+
#define sz_xXcupGetReservedColormapEntriesReply 32
|
| 81 |
+
|
| 82 |
+
typedef struct _XcupStoreColors {
|
| 83 |
+
CARD8 reqType; /* always XcupReqCode */
|
| 84 |
+
CARD8 xcupReqType; /* always X_XcupStoreColors */
|
| 85 |
+
CARD16 length;
|
| 86 |
+
CARD32 cmap;
|
| 87 |
+
} xXcupStoreColorsReq;
|
| 88 |
+
#define sz_xXcupStoreColorsReq 8
|
| 89 |
+
|
| 90 |
+
typedef struct {
|
| 91 |
+
BYTE type; /* X_Reply */
|
| 92 |
+
BOOL pad1;
|
| 93 |
+
CARD16 sequence_number;
|
| 94 |
+
CARD32 length;
|
| 95 |
+
CARD32 pad2;
|
| 96 |
+
CARD32 pad3;
|
| 97 |
+
CARD32 pad4;
|
| 98 |
+
CARD32 pad5;
|
| 99 |
+
CARD32 pad6;
|
| 100 |
+
CARD32 pad7;
|
| 101 |
+
} xXcupStoreColorsReply;
|
| 102 |
+
#define sz_xXcupStoreColorsReply 32
|
| 103 |
+
|
| 104 |
+
#endif /* } _XCUPPROTO_H_ */
|
| 105 |
+
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/damageproto.h
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright © 2003 Keith Packard
|
| 3 |
+
* Copyright © 2007 Eric Anholt
|
| 4 |
+
*
|
| 5 |
+
* Permission to use, copy, modify, distribute, and sell this software and its
|
| 6 |
+
* documentation for any purpose is hereby granted without fee, provided that
|
| 7 |
+
* the above copyright notice appear in all copies and that both that
|
| 8 |
+
* copyright notice and this permission notice appear in supporting
|
| 9 |
+
* documentation, and that the name of Keith Packard not be used in
|
| 10 |
+
* advertising or publicity pertaining to distribution of the software without
|
| 11 |
+
* specific, written prior permission. Keith Packard makes no
|
| 12 |
+
* representations about the suitability of this software for any purpose. It
|
| 13 |
+
* is provided "as is" without express or implied warranty.
|
| 14 |
+
*
|
| 15 |
+
* KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
| 16 |
+
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
| 17 |
+
* EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
| 18 |
+
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
| 19 |
+
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
| 20 |
+
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
| 21 |
+
* PERFORMANCE OF THIS SOFTWARE.
|
| 22 |
+
*/
|
| 23 |
+
|
| 24 |
+
#ifndef _DAMAGEPROTO_H_
|
| 25 |
+
#define _DAMAGEPROTO_H_
|
| 26 |
+
|
| 27 |
+
#include <X11/Xmd.h>
|
| 28 |
+
#include <X11/extensions/xfixesproto.h>
|
| 29 |
+
#include <X11/extensions/damagewire.h>
|
| 30 |
+
|
| 31 |
+
#define Window CARD32
|
| 32 |
+
#define Drawable CARD32
|
| 33 |
+
#define Font CARD32
|
| 34 |
+
#define Pixmap CARD32
|
| 35 |
+
#define Cursor CARD32
|
| 36 |
+
#define Colormap CARD32
|
| 37 |
+
#define GContext CARD32
|
| 38 |
+
#define Atom CARD32
|
| 39 |
+
#define VisualID CARD32
|
| 40 |
+
#define Time CARD32
|
| 41 |
+
#define KeyCode CARD8
|
| 42 |
+
#define KeySym CARD32
|
| 43 |
+
#define Picture CARD32
|
| 44 |
+
#define Region CARD32
|
| 45 |
+
#define Damage CARD32
|
| 46 |
+
|
| 47 |
+
/************** Version 0 ******************/
|
| 48 |
+
|
| 49 |
+
typedef struct {
|
| 50 |
+
CARD8 reqType;
|
| 51 |
+
CARD8 damageReqType;
|
| 52 |
+
CARD16 length;
|
| 53 |
+
} xDamageReq;
|
| 54 |
+
|
| 55 |
+
/*
|
| 56 |
+
* requests and replies
|
| 57 |
+
*/
|
| 58 |
+
|
| 59 |
+
typedef struct {
|
| 60 |
+
CARD8 reqType;
|
| 61 |
+
CARD8 damageReqType;
|
| 62 |
+
CARD16 length;
|
| 63 |
+
CARD32 majorVersion;
|
| 64 |
+
CARD32 minorVersion;
|
| 65 |
+
} xDamageQueryVersionReq;
|
| 66 |
+
|
| 67 |
+
#define sz_xDamageQueryVersionReq 12
|
| 68 |
+
|
| 69 |
+
typedef struct {
|
| 70 |
+
BYTE type; /* X_Reply */
|
| 71 |
+
BYTE pad1;
|
| 72 |
+
CARD16 sequenceNumber;
|
| 73 |
+
CARD32 length;
|
| 74 |
+
CARD32 majorVersion;
|
| 75 |
+
CARD32 minorVersion;
|
| 76 |
+
CARD32 pad2;
|
| 77 |
+
CARD32 pad3;
|
| 78 |
+
CARD32 pad4;
|
| 79 |
+
CARD32 pad5;
|
| 80 |
+
} xDamageQueryVersionReply;
|
| 81 |
+
|
| 82 |
+
#define sz_xDamageQueryVersionReply 32
|
| 83 |
+
|
| 84 |
+
typedef struct {
|
| 85 |
+
CARD8 reqType;
|
| 86 |
+
CARD8 damageReqType;
|
| 87 |
+
CARD16 length;
|
| 88 |
+
Damage damage;
|
| 89 |
+
Drawable drawable;
|
| 90 |
+
CARD8 level;
|
| 91 |
+
CARD8 pad1;
|
| 92 |
+
CARD16 pad2;
|
| 93 |
+
} xDamageCreateReq;
|
| 94 |
+
|
| 95 |
+
#define sz_xDamageCreateReq 16
|
| 96 |
+
|
| 97 |
+
typedef struct {
|
| 98 |
+
CARD8 reqType;
|
| 99 |
+
CARD8 damageReqType;
|
| 100 |
+
CARD16 length;
|
| 101 |
+
Damage damage;
|
| 102 |
+
} xDamageDestroyReq;
|
| 103 |
+
|
| 104 |
+
#define sz_xDamageDestroyReq 8
|
| 105 |
+
|
| 106 |
+
typedef struct {
|
| 107 |
+
CARD8 reqType;
|
| 108 |
+
CARD8 damageReqType;
|
| 109 |
+
CARD16 length;
|
| 110 |
+
Damage damage;
|
| 111 |
+
Region repair;
|
| 112 |
+
Region parts;
|
| 113 |
+
} xDamageSubtractReq;
|
| 114 |
+
|
| 115 |
+
#define sz_xDamageSubtractReq 16
|
| 116 |
+
|
| 117 |
+
typedef struct {
|
| 118 |
+
CARD8 reqType;
|
| 119 |
+
CARD8 damageReqType;
|
| 120 |
+
CARD16 length;
|
| 121 |
+
Drawable drawable;
|
| 122 |
+
Region region;
|
| 123 |
+
} xDamageAddReq;
|
| 124 |
+
|
| 125 |
+
#define sz_xDamageAddReq 12
|
| 126 |
+
|
| 127 |
+
/* Events */
|
| 128 |
+
|
| 129 |
+
#define DamageNotifyMore 0x80
|
| 130 |
+
|
| 131 |
+
typedef struct {
|
| 132 |
+
CARD8 type;
|
| 133 |
+
CARD8 level;
|
| 134 |
+
CARD16 sequenceNumber;
|
| 135 |
+
Drawable drawable;
|
| 136 |
+
Damage damage;
|
| 137 |
+
Time timestamp;
|
| 138 |
+
xRectangle area;
|
| 139 |
+
xRectangle geometry;
|
| 140 |
+
} xDamageNotifyEvent;
|
| 141 |
+
|
| 142 |
+
#undef Damage
|
| 143 |
+
#undef Region
|
| 144 |
+
#undef Picture
|
| 145 |
+
#undef Window
|
| 146 |
+
#undef Drawable
|
| 147 |
+
#undef Font
|
| 148 |
+
#undef Pixmap
|
| 149 |
+
#undef Cursor
|
| 150 |
+
#undef Colormap
|
| 151 |
+
#undef GContext
|
| 152 |
+
#undef Atom
|
| 153 |
+
#undef VisualID
|
| 154 |
+
#undef Time
|
| 155 |
+
#undef KeyCode
|
| 156 |
+
#undef KeySym
|
| 157 |
+
|
| 158 |
+
#endif /* _DAMAGEPROTO_H_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/damagewire.h
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright © 2003 Keith Packard
|
| 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 Keith Packard not be used in
|
| 9 |
+
* advertising or publicity pertaining to distribution of the software without
|
| 10 |
+
* specific, written prior permission. Keith Packard makes no
|
| 11 |
+
* representations about the suitability of this software for any purpose. It
|
| 12 |
+
* is provided "as is" without express or implied warranty.
|
| 13 |
+
*
|
| 14 |
+
* KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
| 15 |
+
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
| 16 |
+
* EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
| 17 |
+
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
| 18 |
+
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
| 19 |
+
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
| 20 |
+
* PERFORMANCE OF THIS SOFTWARE.
|
| 21 |
+
*/
|
| 22 |
+
|
| 23 |
+
#ifndef _DAMAGEWIRE_H_
|
| 24 |
+
#define _DAMAGEWIRE_H_
|
| 25 |
+
|
| 26 |
+
#define DAMAGE_NAME "DAMAGE"
|
| 27 |
+
#define DAMAGE_MAJOR 1
|
| 28 |
+
#define DAMAGE_MINOR 1
|
| 29 |
+
|
| 30 |
+
/************* Version 1 ****************/
|
| 31 |
+
|
| 32 |
+
/* Constants */
|
| 33 |
+
#define XDamageReportRawRectangles 0
|
| 34 |
+
#define XDamageReportDeltaRectangles 1
|
| 35 |
+
#define XDamageReportBoundingBox 2
|
| 36 |
+
#define XDamageReportNonEmpty 3
|
| 37 |
+
|
| 38 |
+
/* Requests */
|
| 39 |
+
#define X_DamageQueryVersion 0
|
| 40 |
+
#define X_DamageCreate 1
|
| 41 |
+
#define X_DamageDestroy 2
|
| 42 |
+
#define X_DamageSubtract 3
|
| 43 |
+
#define X_DamageAdd 4
|
| 44 |
+
|
| 45 |
+
#define XDamageNumberRequests (X_DamageAdd + 1)
|
| 46 |
+
|
| 47 |
+
/* Events */
|
| 48 |
+
#define XDamageNotify 0
|
| 49 |
+
|
| 50 |
+
#define XDamageNumberEvents (XDamageNotify + 1)
|
| 51 |
+
|
| 52 |
+
/* Errors */
|
| 53 |
+
#define BadDamage 0
|
| 54 |
+
#define XDamageNumberErrors (BadDamage + 1)
|
| 55 |
+
|
| 56 |
+
#endif /* _DAMAGEWIRE_H_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dbe.h
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 DBE_H
|
| 34 |
+
#define DBE_H
|
| 35 |
+
|
| 36 |
+
/* Values for swap_action field of XdbeSwapInfo structure */
|
| 37 |
+
#define XdbeUndefined 0
|
| 38 |
+
#define XdbeBackground 1
|
| 39 |
+
#define XdbeUntouched 2
|
| 40 |
+
#define XdbeCopied 3
|
| 41 |
+
|
| 42 |
+
/* Errors */
|
| 43 |
+
#define XdbeBadBuffer 0
|
| 44 |
+
|
| 45 |
+
#define DBE_PROTOCOL_NAME "DOUBLE-BUFFER"
|
| 46 |
+
|
| 47 |
+
/* Current version numbers */
|
| 48 |
+
#define DBE_MAJOR_VERSION 1
|
| 49 |
+
#define DBE_MINOR_VERSION 0
|
| 50 |
+
|
| 51 |
+
/* Used when adding extension; also used in Xdbe macros */
|
| 52 |
+
#define DbeNumberEvents 0
|
| 53 |
+
#define DbeBadBuffer 0
|
| 54 |
+
#define DbeNumberErrors (DbeBadBuffer + 1)
|
| 55 |
+
|
| 56 |
+
#endif /* DBE_H */
|
| 57 |
+
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dbeproto.h
ADDED
|
@@ -0,0 +1,224 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 DBE_PROTO_H
|
| 34 |
+
#define DBE_PROTO_H
|
| 35 |
+
|
| 36 |
+
#include <X11/extensions/dbe.h>
|
| 37 |
+
|
| 38 |
+
/* Request values used in (S)ProcDbeDispatch() */
|
| 39 |
+
#define X_DbeGetVersion 0
|
| 40 |
+
#define X_DbeAllocateBackBufferName 1
|
| 41 |
+
#define X_DbeDeallocateBackBufferName 2
|
| 42 |
+
#define X_DbeSwapBuffers 3
|
| 43 |
+
#define X_DbeBeginIdiom 4
|
| 44 |
+
#define X_DbeEndIdiom 5
|
| 45 |
+
#define X_DbeGetVisualInfo 6
|
| 46 |
+
#define X_DbeGetBackBufferAttributes 7
|
| 47 |
+
|
| 48 |
+
typedef CARD8 xDbeSwapAction;
|
| 49 |
+
typedef CARD32 xDbeBackBuffer;
|
| 50 |
+
|
| 51 |
+
/* TYPEDEFS */
|
| 52 |
+
|
| 53 |
+
/* Protocol data types */
|
| 54 |
+
|
| 55 |
+
typedef struct
|
| 56 |
+
{
|
| 57 |
+
CARD32 window; /* window */
|
| 58 |
+
xDbeSwapAction swapAction; /* swap action */
|
| 59 |
+
CARD8 pad1; /* unused */
|
| 60 |
+
CARD16 pad2;
|
| 61 |
+
|
| 62 |
+
} xDbeSwapInfo;
|
| 63 |
+
|
| 64 |
+
typedef struct
|
| 65 |
+
{
|
| 66 |
+
CARD32 visualID; /* associated visual */
|
| 67 |
+
CARD8 depth; /* depth of visual */
|
| 68 |
+
CARD8 perfLevel; /* performance level hint */
|
| 69 |
+
CARD16 pad1;
|
| 70 |
+
|
| 71 |
+
} xDbeVisInfo;
|
| 72 |
+
#define sz_xDbeVisInfo 8
|
| 73 |
+
|
| 74 |
+
typedef struct
|
| 75 |
+
{
|
| 76 |
+
CARD32 n; /* number of visual info items in list */
|
| 77 |
+
|
| 78 |
+
} xDbeScreenVisInfo; /* followed by n xDbeVisInfo items */
|
| 79 |
+
|
| 80 |
+
typedef struct
|
| 81 |
+
{
|
| 82 |
+
CARD32 window; /* window */
|
| 83 |
+
|
| 84 |
+
} xDbeBufferAttributes;
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
/* Requests and replies */
|
| 88 |
+
|
| 89 |
+
typedef struct
|
| 90 |
+
{
|
| 91 |
+
CARD8 reqType; /* major-opcode: always codes->major_opcode */
|
| 92 |
+
CARD8 dbeReqType; /* minor-opcode: always X_DbeGetVersion (0) */
|
| 93 |
+
CARD16 length; /* request length: (2) */
|
| 94 |
+
CARD8 majorVersion; /* client-major-version */
|
| 95 |
+
CARD8 minorVersion; /* client-minor-version */
|
| 96 |
+
CARD16 unused; /* unused */
|
| 97 |
+
|
| 98 |
+
} xDbeGetVersionReq;
|
| 99 |
+
#define sz_xDbeGetVersionReq 8
|
| 100 |
+
|
| 101 |
+
typedef struct
|
| 102 |
+
{
|
| 103 |
+
BYTE type; /* Reply: X_Reply (1) */
|
| 104 |
+
CARD8 unused; /* unused */
|
| 105 |
+
CARD16 sequenceNumber; /* sequence number */
|
| 106 |
+
CARD32 length; /* reply length: (0) */
|
| 107 |
+
CARD8 majorVersion; /* server-major-version */
|
| 108 |
+
CARD8 minorVersion; /* server-minor-version */
|
| 109 |
+
CARD16 pad1; /* unused */
|
| 110 |
+
CARD32 pad2;
|
| 111 |
+
CARD32 pad3;
|
| 112 |
+
CARD32 pad4;
|
| 113 |
+
CARD32 pad5;
|
| 114 |
+
CARD32 pad6;
|
| 115 |
+
|
| 116 |
+
} xDbeGetVersionReply;
|
| 117 |
+
#define sz_xDbeGetVersionReply 32
|
| 118 |
+
|
| 119 |
+
typedef struct
|
| 120 |
+
{
|
| 121 |
+
CARD8 reqType; /* major-opcode: codes->major_opcode */
|
| 122 |
+
CARD8 dbeReqType; /* X_DbeAllocateBackBufferName (1) */
|
| 123 |
+
CARD16 length; /* request length: (4) */
|
| 124 |
+
CARD32 window; /* window */
|
| 125 |
+
xDbeBackBuffer buffer; /* back buffer name */
|
| 126 |
+
xDbeSwapAction swapAction; /* swap action hint */
|
| 127 |
+
CARD8 pad1; /* unused */
|
| 128 |
+
CARD16 pad2;
|
| 129 |
+
|
| 130 |
+
} xDbeAllocateBackBufferNameReq;
|
| 131 |
+
#define sz_xDbeAllocateBackBufferNameReq 16
|
| 132 |
+
|
| 133 |
+
typedef struct
|
| 134 |
+
{
|
| 135 |
+
CARD8 reqType; /* major-opcode: codes->major_opcode */
|
| 136 |
+
CARD8 dbeReqType; /* X_DbeDeallocateBackBufferName (2) */
|
| 137 |
+
CARD16 length; /* request length: (2) */
|
| 138 |
+
xDbeBackBuffer buffer; /* back buffer name */
|
| 139 |
+
|
| 140 |
+
} xDbeDeallocateBackBufferNameReq;
|
| 141 |
+
#define sz_xDbeDeallocateBackBufferNameReq 8
|
| 142 |
+
|
| 143 |
+
typedef struct
|
| 144 |
+
{
|
| 145 |
+
CARD8 reqType; /* major-opcode: always codes->major_opcode */
|
| 146 |
+
CARD8 dbeReqType; /* minor-opcode: always X_DbeSwapBuffers (3) */
|
| 147 |
+
CARD16 length; /* request length: (2+2n) */
|
| 148 |
+
CARD32 n; /* n, number of window/swap action pairs */
|
| 149 |
+
|
| 150 |
+
} xDbeSwapBuffersReq; /* followed by n window/swap action pairs */
|
| 151 |
+
#define sz_xDbeSwapBuffersReq 8
|
| 152 |
+
|
| 153 |
+
typedef struct
|
| 154 |
+
{
|
| 155 |
+
CARD8 reqType; /* major-opcode: always codes->major_opcode */
|
| 156 |
+
CARD8 dbeReqType; /* minor-opcode: always X_DbeBeginIdom (4) */
|
| 157 |
+
CARD16 length; /* request length: (1) */
|
| 158 |
+
|
| 159 |
+
} xDbeBeginIdiomReq;
|
| 160 |
+
#define sz_xDbeBeginIdiomReq 4
|
| 161 |
+
|
| 162 |
+
typedef struct
|
| 163 |
+
{
|
| 164 |
+
CARD8 reqType; /* major-opcode: always codes->major_opcode */
|
| 165 |
+
CARD8 dbeReqType; /* minor-opcode: always X_DbeEndIdom (5) */
|
| 166 |
+
CARD16 length; /* request length: (1) */
|
| 167 |
+
|
| 168 |
+
} xDbeEndIdiomReq;
|
| 169 |
+
#define sz_xDbeEndIdiomReq 4
|
| 170 |
+
|
| 171 |
+
typedef struct
|
| 172 |
+
{
|
| 173 |
+
CARD8 reqType; /* always codes->major_opcode */
|
| 174 |
+
CARD8 dbeReqType; /* always X_DbeGetVisualInfo (6) */
|
| 175 |
+
CARD16 length; /* request length: (2+n) */
|
| 176 |
+
CARD32 n; /* n, number of drawables in list */
|
| 177 |
+
|
| 178 |
+
} xDbeGetVisualInfoReq; /* followed by n drawables */
|
| 179 |
+
#define sz_xDbeGetVisualInfoReq 8
|
| 180 |
+
|
| 181 |
+
typedef struct
|
| 182 |
+
{
|
| 183 |
+
BYTE type; /* Reply: X_Reply (1) */
|
| 184 |
+
CARD8 unused; /* unused */
|
| 185 |
+
CARD16 sequenceNumber; /* sequence number */
|
| 186 |
+
CARD32 length; /* reply length */
|
| 187 |
+
CARD32 m; /* m, number of visual infos in list */
|
| 188 |
+
CARD32 pad1; /* unused */
|
| 189 |
+
CARD32 pad2;
|
| 190 |
+
CARD32 pad3;
|
| 191 |
+
CARD32 pad4;
|
| 192 |
+
CARD32 pad5;
|
| 193 |
+
|
| 194 |
+
} xDbeGetVisualInfoReply; /* followed by m visual infos */
|
| 195 |
+
#define sz_xDbeGetVisualInfoReply 32
|
| 196 |
+
|
| 197 |
+
typedef struct
|
| 198 |
+
{
|
| 199 |
+
CARD8 reqType; /* always codes->major_opcode */
|
| 200 |
+
CARD8 dbeReqType; /* X_DbeGetBackBufferAttributes (7) */
|
| 201 |
+
CARD16 length; /* request length: (2) */
|
| 202 |
+
xDbeBackBuffer buffer; /* back buffer name */
|
| 203 |
+
|
| 204 |
+
} xDbeGetBackBufferAttributesReq;
|
| 205 |
+
#define sz_xDbeGetBackBufferAttributesReq 8
|
| 206 |
+
|
| 207 |
+
typedef struct
|
| 208 |
+
{
|
| 209 |
+
BYTE type; /* Reply: X_Reply (1) */
|
| 210 |
+
CARD8 unused; /* unused */
|
| 211 |
+
CARD16 sequenceNumber; /* sequence number */
|
| 212 |
+
CARD32 length; /* reply length: (0) */
|
| 213 |
+
CARD32 attributes; /* attributes */
|
| 214 |
+
CARD32 pad1; /* unused */
|
| 215 |
+
CARD32 pad2;
|
| 216 |
+
CARD32 pad3;
|
| 217 |
+
CARD32 pad4;
|
| 218 |
+
CARD32 pad5;
|
| 219 |
+
|
| 220 |
+
} xDbeGetBackBufferAttributesReply;
|
| 221 |
+
#define sz_xDbeGetBackBufferAttributesReply 32
|
| 222 |
+
|
| 223 |
+
#endif /* DBE_PROTO_H */
|
| 224 |
+
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dmx.h
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 2002-2004 Red Hat Inc., Durham, North Carolina.
|
| 3 |
+
*
|
| 4 |
+
* All Rights Reserved.
|
| 5 |
+
*
|
| 6 |
+
* Permission is hereby granted, free of charge, to any person obtaining
|
| 7 |
+
* a copy of this software and associated documentation files (the
|
| 8 |
+
* "Software"), to deal in the Software without restriction, including
|
| 9 |
+
* without limitation on the rights to use, copy, modify, merge,
|
| 10 |
+
* publish, distribute, sublicense, and/or sell copies of the Software,
|
| 11 |
+
* and to permit persons to whom the Software is furnished to do so,
|
| 12 |
+
* subject to the following conditions:
|
| 13 |
+
*
|
| 14 |
+
* The above copyright notice and this permission notice (including the
|
| 15 |
+
* next paragraph) shall be included in all copies or substantial
|
| 16 |
+
* portions of the Software.
|
| 17 |
+
*
|
| 18 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 19 |
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 20 |
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 21 |
+
* NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
|
| 22 |
+
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 23 |
+
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 24 |
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 25 |
+
* SOFTWARE.
|
| 26 |
+
*/
|
| 27 |
+
|
| 28 |
+
/*
|
| 29 |
+
* Authors:
|
| 30 |
+
* Rickard E. (Rik) Faith <faith@redhat.com>
|
| 31 |
+
*
|
| 32 |
+
*/
|
| 33 |
+
|
| 34 |
+
/** \file
|
| 35 |
+
* This file describes the interface to the client-side libdmx.a
|
| 36 |
+
* library. All DMX-aware client-side applications should include this
|
| 37 |
+
* file. */
|
| 38 |
+
|
| 39 |
+
#ifndef _DMX_H_
|
| 40 |
+
#define _DMX_H_
|
| 41 |
+
|
| 42 |
+
/* These values must be larger than LastExtensionError.
|
| 43 |
+
The values in dmxext.h and dmxproto.h *MUST* match. */
|
| 44 |
+
#define DmxBadXinerama 1001
|
| 45 |
+
#define DmxBadValue 1002
|
| 46 |
+
#define DmxBadReply 1003
|
| 47 |
+
|
| 48 |
+
#define DMXScreenWindowWidth (1L<<0)
|
| 49 |
+
#define DMXScreenWindowHeight (1L<<1)
|
| 50 |
+
#define DMXScreenWindowXoffset (1L<<2)
|
| 51 |
+
#define DMXScreenWindowYoffset (1L<<3)
|
| 52 |
+
#define DMXRootWindowWidth (1L<<4)
|
| 53 |
+
#define DMXRootWindowHeight (1L<<5)
|
| 54 |
+
#define DMXRootWindowXoffset (1L<<6)
|
| 55 |
+
#define DMXRootWindowYoffset (1L<<7)
|
| 56 |
+
#define DMXRootWindowXorigin (1L<<8)
|
| 57 |
+
#define DMXRootWindowYorigin (1L<<9)
|
| 58 |
+
|
| 59 |
+
#define DMXDesktopWidth (1L<<0)
|
| 60 |
+
#define DMXDesktopHeight (1L<<1)
|
| 61 |
+
#define DMXDesktopShiftX (1L<<2)
|
| 62 |
+
#define DMXDesktopShiftY (1L<<3)
|
| 63 |
+
|
| 64 |
+
#define DMXInputType (1L<<0)
|
| 65 |
+
#define DMXInputPhysicalScreen (1L<<1)
|
| 66 |
+
#define DMXInputSendsCore (1L<<2)
|
| 67 |
+
|
| 68 |
+
#endif
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dmxproto.h
ADDED
|
@@ -0,0 +1,445 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 2002-2004 Red Hat Inc., Durham, North Carolina.
|
| 3 |
+
*
|
| 4 |
+
* All Rights Reserved.
|
| 5 |
+
*
|
| 6 |
+
* Permission is hereby granted, free of charge, to any person obtaining
|
| 7 |
+
* a copy of this software and associated documentation files (the
|
| 8 |
+
* "Software"), to deal in the Software without restriction, including
|
| 9 |
+
* without limitation on the rights to use, copy, modify, merge,
|
| 10 |
+
* publish, distribute, sublicense, and/or sell copies of the Software,
|
| 11 |
+
* and to permit persons to whom the Software is furnished to do so,
|
| 12 |
+
* subject to the following conditions:
|
| 13 |
+
*
|
| 14 |
+
* The above copyright notice and this permission notice (including the
|
| 15 |
+
* next paragraph) shall be included in all copies or substantial
|
| 16 |
+
* portions of the Software.
|
| 17 |
+
*
|
| 18 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 19 |
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 20 |
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 21 |
+
* NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
|
| 22 |
+
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 23 |
+
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 24 |
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 25 |
+
* SOFTWARE.
|
| 26 |
+
*/
|
| 27 |
+
|
| 28 |
+
/*
|
| 29 |
+
* Authors:
|
| 30 |
+
* Rickard E. (Rik) Faith <faith@redhat.com>
|
| 31 |
+
*
|
| 32 |
+
*/
|
| 33 |
+
|
| 34 |
+
/** \file
|
| 35 |
+
* This file describes the structures necessary to implement the wire
|
| 36 |
+
* protocol for the DMX protocol extension. It should be included only
|
| 37 |
+
* in files that implement the client-side (or server-side) part of the
|
| 38 |
+
* protocol (i.e., client-side applications should \b not include this
|
| 39 |
+
* file). */
|
| 40 |
+
|
| 41 |
+
#ifndef _DMXSTR_H_
|
| 42 |
+
#define _DMXSTR_H_
|
| 43 |
+
|
| 44 |
+
#define DMX_EXTENSION_NAME "DMX"
|
| 45 |
+
#define DMX_EXTENSION_MAJOR 2
|
| 46 |
+
#define DMX_EXTENSION_MINOR 2
|
| 47 |
+
#define DMX_EXTENSION_PATCH 20040604
|
| 48 |
+
|
| 49 |
+
/* These values must be larger than LastExtensionError.
|
| 50 |
+
The values in dmxext.h and dmxproto.h *MUST* match. */
|
| 51 |
+
#define DMX_BAD_XINERAMA 1001
|
| 52 |
+
#define DMX_BAD_VALUE 1002
|
| 53 |
+
|
| 54 |
+
#define X_DMXQueryVersion 0
|
| 55 |
+
#define X_DMXGetScreenCount 1
|
| 56 |
+
#define X_DMXGetScreenInformationDEPRECATED 2
|
| 57 |
+
#define X_DMXGetWindowAttributes 3
|
| 58 |
+
#define X_DMXGetInputCount 4
|
| 59 |
+
#define X_DMXGetInputAttributes 5
|
| 60 |
+
#define X_DMXForceWindowCreationDEPRECATED 6
|
| 61 |
+
#define X_DMXReconfigureScreenDEPRECATED 7
|
| 62 |
+
#define X_DMXSync 8
|
| 63 |
+
#define X_DMXForceWindowCreation 9
|
| 64 |
+
#define X_DMXGetScreenAttributes 10
|
| 65 |
+
#define X_DMXChangeScreensAttributes 11
|
| 66 |
+
#define X_DMXAddScreen 12
|
| 67 |
+
#define X_DMXRemoveScreen 13
|
| 68 |
+
#define X_DMXGetDesktopAttributes 14
|
| 69 |
+
#define X_DMXChangeDesktopAttributes 15
|
| 70 |
+
#define X_DMXAddInput 16
|
| 71 |
+
#define X_DMXRemoveInput 17
|
| 72 |
+
|
| 73 |
+
/** Wire-level description of DMXQueryVersion protocol request. */
|
| 74 |
+
typedef struct {
|
| 75 |
+
CARD8 reqType; /* dmxcode */
|
| 76 |
+
CARD8 dmxReqType; /* X_DMXQueryVersion */
|
| 77 |
+
CARD16 length;
|
| 78 |
+
} xDMXQueryVersionReq;
|
| 79 |
+
#define sz_xDMXQueryVersionReq 4
|
| 80 |
+
|
| 81 |
+
/** Wire-level description of DMXQueryVersion protocol reply. */
|
| 82 |
+
typedef struct {
|
| 83 |
+
BYTE type; /* X_Reply */
|
| 84 |
+
CARD8 ununsed;
|
| 85 |
+
CARD16 sequenceNumber;
|
| 86 |
+
CARD32 length;
|
| 87 |
+
CARD32 majorVersion;
|
| 88 |
+
CARD32 minorVersion;
|
| 89 |
+
CARD32 patchVersion;
|
| 90 |
+
CARD32 pad0;
|
| 91 |
+
CARD32 pad1;
|
| 92 |
+
CARD32 pad2;
|
| 93 |
+
} xDMXQueryVersionReply;
|
| 94 |
+
#define sz_xDMXQueryVersionReply 32
|
| 95 |
+
|
| 96 |
+
/** Wire-level description of DMXSync protocol request. */
|
| 97 |
+
typedef struct {
|
| 98 |
+
CARD8 reqType; /* DMXCode */
|
| 99 |
+
CARD8 dmxReqType; /* X_DMXSync */
|
| 100 |
+
CARD16 length;
|
| 101 |
+
} xDMXSyncReq;
|
| 102 |
+
#define sz_xDMXSyncReq 4
|
| 103 |
+
|
| 104 |
+
/** Wire-level description of DMXSync protocol reply. */
|
| 105 |
+
typedef struct {
|
| 106 |
+
BYTE type; /* X_Reply */
|
| 107 |
+
CARD8 unused;
|
| 108 |
+
CARD16 sequenceNumber;
|
| 109 |
+
CARD32 length;
|
| 110 |
+
CARD32 status;
|
| 111 |
+
CARD32 pad0;
|
| 112 |
+
CARD32 pad1;
|
| 113 |
+
CARD32 pad2;
|
| 114 |
+
CARD32 pad3;
|
| 115 |
+
CARD32 pad4;
|
| 116 |
+
} xDMXSyncReply;
|
| 117 |
+
#define sz_xDMXSyncReply 32
|
| 118 |
+
|
| 119 |
+
/** Wire-level description of DMXForceWindowCreation protocol request. */
|
| 120 |
+
typedef struct {
|
| 121 |
+
CARD8 reqType; /* DMXCode */
|
| 122 |
+
CARD8 dmxReqType; /* X_DMXForceWindowCreation */
|
| 123 |
+
CARD16 length;
|
| 124 |
+
CARD32 window;
|
| 125 |
+
} xDMXForceWindowCreationReq;
|
| 126 |
+
#define sz_xDMXForceWindowCreationReq 8
|
| 127 |
+
|
| 128 |
+
/** Wire-level description of DMXForceWindowCreation protocol reply. */
|
| 129 |
+
typedef struct {
|
| 130 |
+
BYTE type; /* X_Reply */
|
| 131 |
+
CARD8 unused;
|
| 132 |
+
CARD16 sequenceNumber;
|
| 133 |
+
CARD32 length;
|
| 134 |
+
CARD32 status;
|
| 135 |
+
CARD32 pad0;
|
| 136 |
+
CARD32 pad1;
|
| 137 |
+
CARD32 pad2;
|
| 138 |
+
CARD32 pad3;
|
| 139 |
+
CARD32 pad4;
|
| 140 |
+
} xDMXForceWindowCreationReply;
|
| 141 |
+
#define sz_xDMXForceWindowCreationReply 32
|
| 142 |
+
|
| 143 |
+
/** Wire-level description of DMXGetScreenCount protocol request. */
|
| 144 |
+
typedef struct {
|
| 145 |
+
CARD8 reqType; /* DMXCode */
|
| 146 |
+
CARD8 dmxReqType; /* X_DMXGetScreenCount */
|
| 147 |
+
CARD16 length;
|
| 148 |
+
} xDMXGetScreenCountReq;
|
| 149 |
+
#define sz_xDMXGetScreenCountReq 4
|
| 150 |
+
|
| 151 |
+
/** Wire-level description of DMXGetScreenCount protocol reply. */
|
| 152 |
+
typedef struct {
|
| 153 |
+
BYTE type; /* X_Reply */
|
| 154 |
+
CARD8 unused;
|
| 155 |
+
CARD16 sequenceNumber;
|
| 156 |
+
CARD32 length;
|
| 157 |
+
CARD32 screenCount;
|
| 158 |
+
CARD32 pad0;
|
| 159 |
+
CARD32 pad1;
|
| 160 |
+
CARD32 pad2;
|
| 161 |
+
CARD32 pad3;
|
| 162 |
+
CARD32 pad4;
|
| 163 |
+
} xDMXGetScreenCountReply;
|
| 164 |
+
#define sz_xDMXGetScreenCountReply 32
|
| 165 |
+
|
| 166 |
+
/** Wire-level description of DMXGetScreenAttributes protocol request. */
|
| 167 |
+
typedef struct {
|
| 168 |
+
CARD8 reqType; /* DMXCode */
|
| 169 |
+
CARD8 dmxReqType; /* X_DMXGetScreenAttributes */
|
| 170 |
+
CARD16 length;
|
| 171 |
+
CARD32 physicalScreen;
|
| 172 |
+
} xDMXGetScreenAttributesReq;
|
| 173 |
+
#define sz_xDMXGetScreenAttributesReq 8
|
| 174 |
+
|
| 175 |
+
/** Wire-level description of DMXGetScreenAttributes protocol reply. */
|
| 176 |
+
typedef struct {
|
| 177 |
+
BYTE type; /* X_Reply */
|
| 178 |
+
CARD8 unused;
|
| 179 |
+
CARD16 sequenceNumber;
|
| 180 |
+
CARD32 length;
|
| 181 |
+
CARD32 displayNameLength;
|
| 182 |
+
CARD32 logicalScreen;
|
| 183 |
+
|
| 184 |
+
CARD16 screenWindowWidth;
|
| 185 |
+
CARD16 screenWindowHeight;
|
| 186 |
+
INT16 screenWindowXoffset;
|
| 187 |
+
INT16 screenWindowYoffset;
|
| 188 |
+
|
| 189 |
+
CARD16 rootWindowWidth;
|
| 190 |
+
CARD16 rootWindowHeight;
|
| 191 |
+
INT16 rootWindowXoffset;
|
| 192 |
+
INT16 rootWindowYoffset;
|
| 193 |
+
INT16 rootWindowXorigin;
|
| 194 |
+
INT16 rootWindowYorigin;
|
| 195 |
+
} xDMXGetScreenAttributesReply;
|
| 196 |
+
#define sz_xDMXGetScreenAttributesReply 36
|
| 197 |
+
|
| 198 |
+
/** Wire-level description of DMXChangeScreensAttributes protocol request. */
|
| 199 |
+
typedef struct {
|
| 200 |
+
CARD8 reqType; /* DMXCode */
|
| 201 |
+
CARD8 dmxReqType; /* X_DMXChangeScreensAttributes */
|
| 202 |
+
CARD16 length;
|
| 203 |
+
CARD32 screenCount;
|
| 204 |
+
CARD32 maskCount;
|
| 205 |
+
} xDMXChangeScreensAttributesReq;
|
| 206 |
+
#define sz_xDMXChangeScreensAttributesReq 12
|
| 207 |
+
|
| 208 |
+
/** Wire-level description of DMXChangeScreensAttributes protocol reply. */
|
| 209 |
+
typedef struct {
|
| 210 |
+
BYTE type; /* X_Reply */
|
| 211 |
+
CARD8 unused;
|
| 212 |
+
CARD16 sequenceNumber;
|
| 213 |
+
CARD32 length;
|
| 214 |
+
CARD32 status;
|
| 215 |
+
CARD32 errorScreen;
|
| 216 |
+
CARD32 pad0;
|
| 217 |
+
CARD32 pad1;
|
| 218 |
+
CARD32 pad2;
|
| 219 |
+
CARD32 pad3;
|
| 220 |
+
} xDMXChangeScreensAttributesReply;
|
| 221 |
+
#define sz_xDMXChangeScreensAttributesReply 32
|
| 222 |
+
|
| 223 |
+
/** Wire-level description of DMXAddScreen protocol request. */
|
| 224 |
+
typedef struct {
|
| 225 |
+
CARD8 reqType; /* DMXCode */
|
| 226 |
+
CARD8 dmxReqType; /* X_DMXAddScreen */
|
| 227 |
+
CARD16 length;
|
| 228 |
+
CARD32 displayNameLength;
|
| 229 |
+
CARD32 physicalScreen;
|
| 230 |
+
CARD32 valueMask;
|
| 231 |
+
} xDMXAddScreenReq;
|
| 232 |
+
#define sz_xDMXAddScreenReq 16
|
| 233 |
+
|
| 234 |
+
/** Wire-level description of DMXAddScreen protocol reply. */
|
| 235 |
+
typedef struct {
|
| 236 |
+
BYTE type; /* X_Reply */
|
| 237 |
+
CARD8 unused;
|
| 238 |
+
CARD16 sequenceNumber;
|
| 239 |
+
CARD32 length;
|
| 240 |
+
CARD32 status;
|
| 241 |
+
CARD32 physicalScreen;
|
| 242 |
+
CARD32 pad0;
|
| 243 |
+
CARD32 pad1;
|
| 244 |
+
CARD32 pad2;
|
| 245 |
+
CARD32 pad3;
|
| 246 |
+
} xDMXAddScreenReply;
|
| 247 |
+
#define sz_xDMXAddScreenReply 32
|
| 248 |
+
|
| 249 |
+
/** Wire-level description of DMXRemoveScreen protocol request. */
|
| 250 |
+
typedef struct {
|
| 251 |
+
CARD8 reqType; /* DMXCode */
|
| 252 |
+
CARD8 dmxReqType; /* X_DMXRemoveScreen */
|
| 253 |
+
CARD16 length;
|
| 254 |
+
CARD32 physicalScreen;
|
| 255 |
+
} xDMXRemoveScreenReq;
|
| 256 |
+
#define sz_xDMXRemoveScreenReq 8
|
| 257 |
+
|
| 258 |
+
/** Wire-level description of DMXRemoveScreen protocol reply. */
|
| 259 |
+
typedef struct {
|
| 260 |
+
BYTE type; /* X_Reply */
|
| 261 |
+
CARD8 unused;
|
| 262 |
+
CARD16 sequenceNumber;
|
| 263 |
+
CARD32 length;
|
| 264 |
+
CARD32 status;
|
| 265 |
+
CARD32 pad0;
|
| 266 |
+
CARD32 pad1;
|
| 267 |
+
CARD32 pad2;
|
| 268 |
+
CARD32 pad3;
|
| 269 |
+
CARD32 pad4;
|
| 270 |
+
} xDMXRemoveScreenReply;
|
| 271 |
+
#define sz_xDMXRemoveScreenReply 32
|
| 272 |
+
|
| 273 |
+
/** Wire-level description of DMXGetWindowAttributes protocol request. */
|
| 274 |
+
typedef struct {
|
| 275 |
+
CARD8 reqType; /* DMXCode */
|
| 276 |
+
CARD8 dmxReqType; /* X_DMXGetWindowAttributes */
|
| 277 |
+
CARD16 length;
|
| 278 |
+
CARD32 window;
|
| 279 |
+
} xDMXGetWindowAttributesReq;
|
| 280 |
+
#define sz_xDMXGetWindowAttributesReq 8
|
| 281 |
+
|
| 282 |
+
/** Wire-level description of DMXGetWindowAttributes protocol reply. */
|
| 283 |
+
typedef struct {
|
| 284 |
+
BYTE type; /* X_Reply */
|
| 285 |
+
CARD8 unused;
|
| 286 |
+
CARD16 sequenceNumber;
|
| 287 |
+
CARD32 length;
|
| 288 |
+
CARD32 screenCount;
|
| 289 |
+
CARD32 pad0;
|
| 290 |
+
CARD32 pad1;
|
| 291 |
+
CARD32 pad2;
|
| 292 |
+
CARD32 pad3;
|
| 293 |
+
CARD32 pad4;
|
| 294 |
+
} xDMXGetWindowAttributesReply;
|
| 295 |
+
#define sz_xDMXGetWindowAttributesReply 32
|
| 296 |
+
|
| 297 |
+
/** Wire-level description of DMXGetDesktopAttributes protocol request. */
|
| 298 |
+
typedef struct {
|
| 299 |
+
CARD8 reqType; /* DMXCode */
|
| 300 |
+
CARD8 dmxReqType; /* X_DMXGetDesktopAttributes */
|
| 301 |
+
CARD16 length;
|
| 302 |
+
} xDMXGetDesktopAttributesReq;
|
| 303 |
+
#define sz_xDMXGetDesktopAttributesReq 4
|
| 304 |
+
|
| 305 |
+
/** Wire-level description of DMXGetDesktopAttributes protocol reply. */
|
| 306 |
+
typedef struct {
|
| 307 |
+
BYTE type; /* X_Reply */
|
| 308 |
+
CARD8 unused;
|
| 309 |
+
CARD16 sequenceNumber;
|
| 310 |
+
CARD32 length;
|
| 311 |
+
INT16 width;
|
| 312 |
+
INT16 height;
|
| 313 |
+
INT16 shiftX;
|
| 314 |
+
INT16 shiftY;
|
| 315 |
+
CARD32 pad0;
|
| 316 |
+
CARD32 pad1;
|
| 317 |
+
CARD32 pad2;
|
| 318 |
+
CARD32 pad3;
|
| 319 |
+
} xDMXGetDesktopAttributesReply;
|
| 320 |
+
#define sz_xDMXGetDesktopAttributesReply 32
|
| 321 |
+
|
| 322 |
+
/** Wire-level description of DMXChangeDesktopAttributes protocol request. */
|
| 323 |
+
typedef struct {
|
| 324 |
+
CARD8 reqType; /* DMXCode */
|
| 325 |
+
CARD8 dmxReqType; /* X_DMXChangeDesktopAttributes */
|
| 326 |
+
CARD16 length;
|
| 327 |
+
CARD32 valueMask;
|
| 328 |
+
} xDMXChangeDesktopAttributesReq;
|
| 329 |
+
#define sz_xDMXChangeDesktopAttributesReq 8
|
| 330 |
+
|
| 331 |
+
/** Wire-level description of DMXChangeDesktopAttributes protocol reply. */
|
| 332 |
+
typedef struct {
|
| 333 |
+
BYTE type; /* X_Reply */
|
| 334 |
+
CARD8 unused;
|
| 335 |
+
CARD16 sequenceNumber;
|
| 336 |
+
CARD32 length;
|
| 337 |
+
CARD32 status;
|
| 338 |
+
CARD32 pad0;
|
| 339 |
+
CARD32 pad1;
|
| 340 |
+
CARD32 pad2;
|
| 341 |
+
CARD32 pad3;
|
| 342 |
+
CARD32 pad4;
|
| 343 |
+
} xDMXChangeDesktopAttributesReply;
|
| 344 |
+
#define sz_xDMXChangeDesktopAttributesReply 32
|
| 345 |
+
|
| 346 |
+
/** Wire-level description of DMXGetInputCount protocol request. */
|
| 347 |
+
typedef struct {
|
| 348 |
+
CARD8 reqType; /* DMXCode */
|
| 349 |
+
CARD8 dmxReqType; /* X_DMXGetInputCount */
|
| 350 |
+
CARD16 length;
|
| 351 |
+
} xDMXGetInputCountReq;
|
| 352 |
+
#define sz_xDMXGetInputCountReq 4
|
| 353 |
+
|
| 354 |
+
/** Wire-level description of DMXGetInputCount protocol reply. */
|
| 355 |
+
typedef struct {
|
| 356 |
+
BYTE type; /* X_Reply */
|
| 357 |
+
CARD8 unused;
|
| 358 |
+
CARD16 sequenceNumber;
|
| 359 |
+
CARD32 length;
|
| 360 |
+
CARD32 inputCount;
|
| 361 |
+
CARD32 pad0;
|
| 362 |
+
CARD32 pad1;
|
| 363 |
+
CARD32 pad2;
|
| 364 |
+
CARD32 pad3;
|
| 365 |
+
CARD32 pad4;
|
| 366 |
+
} xDMXGetInputCountReply;
|
| 367 |
+
#define sz_xDMXGetInputCountReply 32
|
| 368 |
+
|
| 369 |
+
/** Wire-level description of DMXGetInputAttributes protocol request. */
|
| 370 |
+
typedef struct {
|
| 371 |
+
CARD8 reqType; /* DMXCode */
|
| 372 |
+
CARD8 dmxReqType; /* X_DMXGetInputAttributes */
|
| 373 |
+
CARD16 length;
|
| 374 |
+
CARD32 deviceId;
|
| 375 |
+
} xDMXGetInputAttributesReq;
|
| 376 |
+
#define sz_xDMXGetInputAttributesReq 8
|
| 377 |
+
|
| 378 |
+
/** Wire-level description of DMXGetInputAttributes protocol reply. */
|
| 379 |
+
typedef struct {
|
| 380 |
+
BYTE type; /* X_Reply */
|
| 381 |
+
CARD8 unused;
|
| 382 |
+
CARD16 sequenceNumber;
|
| 383 |
+
CARD32 length;
|
| 384 |
+
CARD32 inputType;
|
| 385 |
+
CARD32 physicalScreen;
|
| 386 |
+
CARD32 physicalId;
|
| 387 |
+
CARD32 nameLength;
|
| 388 |
+
BOOL isCore;
|
| 389 |
+
BOOL sendsCore;
|
| 390 |
+
BOOL detached;
|
| 391 |
+
CARD8 pad0;
|
| 392 |
+
CARD32 pad1;
|
| 393 |
+
} xDMXGetInputAttributesReply;
|
| 394 |
+
#define sz_xDMXGetInputAttributesReply 32
|
| 395 |
+
|
| 396 |
+
/** Wire-level description of DMXAddInput protocol request. */
|
| 397 |
+
typedef struct {
|
| 398 |
+
CARD8 reqType; /* DMXCode */
|
| 399 |
+
CARD8 dmxReqType; /* X_DMXAddInput */
|
| 400 |
+
CARD16 length;
|
| 401 |
+
CARD32 displayNameLength;
|
| 402 |
+
CARD32 valueMask;
|
| 403 |
+
} xDMXAddInputReq;
|
| 404 |
+
#define sz_xDMXAddInputReq 12
|
| 405 |
+
|
| 406 |
+
/** Wire-level description of DMXAddInput protocol reply. */
|
| 407 |
+
typedef struct {
|
| 408 |
+
BYTE type; /* X_Reply */
|
| 409 |
+
CARD8 unused;
|
| 410 |
+
CARD16 sequenceNumber;
|
| 411 |
+
CARD32 length;
|
| 412 |
+
CARD32 status;
|
| 413 |
+
CARD32 physicalId;
|
| 414 |
+
CARD32 pad0;
|
| 415 |
+
CARD32 pad1;
|
| 416 |
+
CARD32 pad2;
|
| 417 |
+
CARD32 pad3;
|
| 418 |
+
} xDMXAddInputReply;
|
| 419 |
+
#define sz_xDMXAddInputReply 32
|
| 420 |
+
|
| 421 |
+
/** Wire-level description of DMXRemoveInput protocol request. */
|
| 422 |
+
typedef struct {
|
| 423 |
+
CARD8 reqType; /* DMXCode */
|
| 424 |
+
CARD8 dmxReqType; /* X_DMXRemoveInput */
|
| 425 |
+
CARD16 length;
|
| 426 |
+
CARD32 physicalId;
|
| 427 |
+
} xDMXRemoveInputReq;
|
| 428 |
+
#define sz_xDMXRemoveInputReq 8
|
| 429 |
+
|
| 430 |
+
/** Wire-level description of DMXRemoveInput protocol reply. */
|
| 431 |
+
typedef struct {
|
| 432 |
+
BYTE type;
|
| 433 |
+
CARD8 unused;
|
| 434 |
+
CARD16 sequenceNumber;
|
| 435 |
+
CARD32 length;
|
| 436 |
+
CARD32 status;
|
| 437 |
+
CARD32 pad0;
|
| 438 |
+
CARD32 pad1;
|
| 439 |
+
CARD32 pad2;
|
| 440 |
+
CARD32 pad3;
|
| 441 |
+
CARD32 pad4;
|
| 442 |
+
} xDMXRemoveInputReply;
|
| 443 |
+
#define sz_xDMXRemoveInputReply 32
|
| 444 |
+
|
| 445 |
+
#endif
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dpmsconst.h
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*****************************************************************
|
| 2 |
+
|
| 3 |
+
Copyright (c) 1996 Digital Equipment Corporation, Maynard, Massachusetts.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software.
|
| 10 |
+
|
| 11 |
+
The above copyright notice and this permission notice shall be included in
|
| 12 |
+
all copies or substantial portions of the Software.
|
| 13 |
+
|
| 14 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 15 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 16 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
| 17 |
+
DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
|
| 18 |
+
BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
|
| 19 |
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
| 20 |
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 21 |
+
|
| 22 |
+
Except as contained in this notice, the name of Digital Equipment Corporation
|
| 23 |
+
shall not be used in advertising or otherwise to promote the sale, use or other
|
| 24 |
+
dealings in this Software without prior written authorization from Digital
|
| 25 |
+
Equipment Corporation.
|
| 26 |
+
|
| 27 |
+
******************************************************************/
|
| 28 |
+
|
| 29 |
+
#ifndef _DPMSCONST_H
|
| 30 |
+
#define _DPMSCONST_H 1
|
| 31 |
+
|
| 32 |
+
#define DPMSMajorVersion 1
|
| 33 |
+
#define DPMSMinorVersion 2
|
| 34 |
+
|
| 35 |
+
#define DPMSExtensionName "DPMS"
|
| 36 |
+
|
| 37 |
+
#define DPMSModeOn 0
|
| 38 |
+
#define DPMSModeStandby 1
|
| 39 |
+
#define DPMSModeSuspend 2
|
| 40 |
+
#define DPMSModeOff 3
|
| 41 |
+
|
| 42 |
+
#define DPMSInfoNotifyMask (1L << 0)
|
| 43 |
+
#define DPMSInfoNotify 0
|
| 44 |
+
|
| 45 |
+
#endif /* !_DPMSCONST_H */
|
| 46 |
+
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dpmsproto.h
ADDED
|
@@ -0,0 +1,201 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*****************************************************************
|
| 2 |
+
|
| 3 |
+
Copyright (c) 1996 Digital Equipment Corporation, Maynard, Massachusetts.
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software.
|
| 10 |
+
|
| 11 |
+
The above copyright notice and this permission notice shall be included in
|
| 12 |
+
all copies or substantial portions of the Software.
|
| 13 |
+
|
| 14 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 15 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 16 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
| 17 |
+
DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
|
| 18 |
+
BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
|
| 19 |
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
| 20 |
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 21 |
+
|
| 22 |
+
Except as contained in this notice, the name of Digital Equipment Corporation
|
| 23 |
+
shall not be used in advertising or otherwise to promote the sale, use or other
|
| 24 |
+
dealings in this Software without prior written authorization from Digital
|
| 25 |
+
Equipment Corporation.
|
| 26 |
+
|
| 27 |
+
******************************************************************/
|
| 28 |
+
|
| 29 |
+
#ifndef _DPMSPROTO_H_
|
| 30 |
+
#define _DPMSPROTO_H_
|
| 31 |
+
|
| 32 |
+
#include <X11/extensions/dpmsconst.h>
|
| 33 |
+
|
| 34 |
+
#define X_DPMSGetVersion 0
|
| 35 |
+
#define X_DPMSCapable 1
|
| 36 |
+
#define X_DPMSGetTimeouts 2
|
| 37 |
+
#define X_DPMSSetTimeouts 3
|
| 38 |
+
#define X_DPMSEnable 4
|
| 39 |
+
#define X_DPMSDisable 5
|
| 40 |
+
#define X_DPMSForceLevel 6
|
| 41 |
+
#define X_DPMSInfo 7
|
| 42 |
+
#define X_DPMSSelectInput 8
|
| 43 |
+
|
| 44 |
+
#define DPMSNumberEvents 0
|
| 45 |
+
|
| 46 |
+
#define DPMSNumberErrors 0
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
typedef struct {
|
| 50 |
+
CARD8 reqType; /* always DPMSCode */
|
| 51 |
+
CARD8 dpmsReqType; /* always X_DPMSGetVersion */
|
| 52 |
+
CARD16 length;
|
| 53 |
+
CARD16 majorVersion;
|
| 54 |
+
CARD16 minorVersion;
|
| 55 |
+
} xDPMSGetVersionReq;
|
| 56 |
+
#define sz_xDPMSGetVersionReq 8
|
| 57 |
+
|
| 58 |
+
typedef struct {
|
| 59 |
+
BYTE type; /* X_Reply */
|
| 60 |
+
CARD8 pad0;
|
| 61 |
+
CARD16 sequenceNumber;
|
| 62 |
+
CARD32 length;
|
| 63 |
+
CARD16 majorVersion;
|
| 64 |
+
CARD16 minorVersion;
|
| 65 |
+
CARD32 pad1;
|
| 66 |
+
CARD32 pad2;
|
| 67 |
+
CARD32 pad3;
|
| 68 |
+
CARD32 pad4;
|
| 69 |
+
CARD32 pad5;
|
| 70 |
+
} xDPMSGetVersionReply;
|
| 71 |
+
#define sz_xDPMSGetVersionReply 32
|
| 72 |
+
|
| 73 |
+
typedef struct {
|
| 74 |
+
CARD8 reqType; /* always DPMSCode */
|
| 75 |
+
CARD8 dpmsReqType; /* always X_DPMSCapable */
|
| 76 |
+
CARD16 length;
|
| 77 |
+
} xDPMSCapableReq;
|
| 78 |
+
#define sz_xDPMSCapableReq 4
|
| 79 |
+
|
| 80 |
+
typedef struct {
|
| 81 |
+
BYTE type; /* X_Reply */
|
| 82 |
+
CARD8 pad0;
|
| 83 |
+
CARD16 sequenceNumber;
|
| 84 |
+
CARD32 length;
|
| 85 |
+
BOOL capable;
|
| 86 |
+
CARD8 pad1;
|
| 87 |
+
CARD16 pad2;
|
| 88 |
+
CARD32 pad3;
|
| 89 |
+
CARD32 pad4;
|
| 90 |
+
CARD32 pad5;
|
| 91 |
+
CARD32 pad6;
|
| 92 |
+
CARD32 pad7;
|
| 93 |
+
} xDPMSCapableReply;
|
| 94 |
+
#define sz_xDPMSCapableReply 32
|
| 95 |
+
|
| 96 |
+
typedef struct {
|
| 97 |
+
CARD8 reqType; /* always DPMSCode */
|
| 98 |
+
CARD8 dpmsReqType; /* always X_DPMSGetTimeouts */
|
| 99 |
+
CARD16 length;
|
| 100 |
+
} xDPMSGetTimeoutsReq;
|
| 101 |
+
#define sz_xDPMSGetTimeoutsReq 4
|
| 102 |
+
|
| 103 |
+
typedef struct {
|
| 104 |
+
BYTE type; /* X_Reply */
|
| 105 |
+
CARD8 pad0;
|
| 106 |
+
CARD16 sequenceNumber;
|
| 107 |
+
CARD32 length;
|
| 108 |
+
CARD16 standby;
|
| 109 |
+
CARD16 suspend;
|
| 110 |
+
CARD16 off;
|
| 111 |
+
CARD16 pad1;
|
| 112 |
+
CARD32 pad2;
|
| 113 |
+
CARD32 pad3;
|
| 114 |
+
CARD32 pad4;
|
| 115 |
+
CARD32 pad5;
|
| 116 |
+
} xDPMSGetTimeoutsReply;
|
| 117 |
+
#define sz_xDPMSGetTimeoutsReply 32
|
| 118 |
+
|
| 119 |
+
typedef struct {
|
| 120 |
+
CARD8 reqType; /* always DPMSCode */
|
| 121 |
+
CARD8 dpmsReqType; /* always X_DPMSSetTimeouts */
|
| 122 |
+
CARD16 length;
|
| 123 |
+
CARD16 standby;
|
| 124 |
+
CARD16 suspend;
|
| 125 |
+
CARD16 off;
|
| 126 |
+
CARD16 pad0;
|
| 127 |
+
} xDPMSSetTimeoutsReq;
|
| 128 |
+
#define sz_xDPMSSetTimeoutsReq 12
|
| 129 |
+
|
| 130 |
+
typedef struct {
|
| 131 |
+
CARD8 reqType; /* always DPMSCode */
|
| 132 |
+
CARD8 dpmsReqType; /* always X_DPMSEnable */
|
| 133 |
+
CARD16 length;
|
| 134 |
+
} xDPMSEnableReq;
|
| 135 |
+
#define sz_xDPMSEnableReq 4
|
| 136 |
+
|
| 137 |
+
typedef struct {
|
| 138 |
+
CARD8 reqType; /* always DPMSCode */
|
| 139 |
+
CARD8 dpmsReqType; /* always X_DPMSDisable */
|
| 140 |
+
CARD16 length;
|
| 141 |
+
} xDPMSDisableReq;
|
| 142 |
+
#define sz_xDPMSDisableReq 4
|
| 143 |
+
|
| 144 |
+
typedef struct {
|
| 145 |
+
CARD8 reqType; /* always DPMSCode */
|
| 146 |
+
CARD8 dpmsReqType; /* always X_DPMSForceLevel */
|
| 147 |
+
CARD16 length;
|
| 148 |
+
CARD16 level; /* power level requested */
|
| 149 |
+
CARD16 pad0;
|
| 150 |
+
} xDPMSForceLevelReq;
|
| 151 |
+
#define sz_xDPMSForceLevelReq 8
|
| 152 |
+
|
| 153 |
+
typedef struct {
|
| 154 |
+
CARD8 reqType; /* always DPMSCode */
|
| 155 |
+
CARD8 dpmsReqType; /* always X_DPMSInfo */
|
| 156 |
+
CARD16 length;
|
| 157 |
+
} xDPMSInfoReq;
|
| 158 |
+
#define sz_xDPMSInfoReq 4
|
| 159 |
+
|
| 160 |
+
typedef struct {
|
| 161 |
+
BYTE type; /* X_Reply */
|
| 162 |
+
CARD8 pad0;
|
| 163 |
+
CARD16 sequenceNumber;
|
| 164 |
+
CARD32 length;
|
| 165 |
+
CARD16 power_level;
|
| 166 |
+
BOOL state;
|
| 167 |
+
CARD8 pad1;
|
| 168 |
+
CARD32 pad2;
|
| 169 |
+
CARD32 pad3;
|
| 170 |
+
CARD32 pad4;
|
| 171 |
+
CARD32 pad5;
|
| 172 |
+
CARD32 pad6;
|
| 173 |
+
} xDPMSInfoReply;
|
| 174 |
+
#define sz_xDPMSInfoReply 32
|
| 175 |
+
|
| 176 |
+
typedef struct {
|
| 177 |
+
CARD8 reqType; /* always DPMSCode */
|
| 178 |
+
CARD8 dpmsReqType; /* always X_DPMSSelectInput */
|
| 179 |
+
CARD16 length B16;
|
| 180 |
+
CARD32 eventMask B32;
|
| 181 |
+
} xDPMSSelectInputReq;
|
| 182 |
+
#define sz_xDPMSSelectInputReq 8
|
| 183 |
+
|
| 184 |
+
typedef struct {
|
| 185 |
+
CARD8 type;
|
| 186 |
+
CARD8 extension;
|
| 187 |
+
CARD16 sequenceNumber B16;
|
| 188 |
+
CARD32 length;
|
| 189 |
+
CARD16 evtype B16;
|
| 190 |
+
CARD16 pad0 B16;
|
| 191 |
+
Time timestamp B32;
|
| 192 |
+
CARD16 power_level B16;
|
| 193 |
+
BOOL state;
|
| 194 |
+
CARD8 pad1;
|
| 195 |
+
CARD32 pad2 B32;
|
| 196 |
+
CARD32 pad3 B32;
|
| 197 |
+
CARD32 pad4 B32;
|
| 198 |
+
} xDPMSInfoNotifyEvent;
|
| 199 |
+
#define sz_xDPMSInfoNotifyEvent 32
|
| 200 |
+
|
| 201 |
+
#endif /* _DPMSPROTO_H_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dri2proto.h
ADDED
|
@@ -0,0 +1,357 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 Red Hat, Inc.
|
| 3 |
+
*
|
| 4 |
+
* Permission is hereby granted, free of charge, to any person obtaining a
|
| 5 |
+
* copy of this software and associated documentation files (the "Soft-
|
| 6 |
+
* ware"), to deal in the Software without restriction, including without
|
| 7 |
+
* limitation the rights to use, copy, modify, merge, publish, distribute,
|
| 8 |
+
* and/or sell copies of the Software, and to permit persons to whom the
|
| 9 |
+
* Software is furnished to do so, provided that the above copyright
|
| 10 |
+
* notice(s) and this permission notice appear in all copies of the Soft-
|
| 11 |
+
* ware and that both the above copyright notice(s) and this permission
|
| 12 |
+
* notice appear in supporting documentation.
|
| 13 |
+
*
|
| 14 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
| 15 |
+
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
|
| 16 |
+
* ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY
|
| 17 |
+
* RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN
|
| 18 |
+
* THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSE-
|
| 19 |
+
* QUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
| 20 |
+
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
| 21 |
+
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFOR-
|
| 22 |
+
* MANCE OF THIS SOFTWARE.
|
| 23 |
+
*
|
| 24 |
+
* Except as contained in this notice, the name of a copyright holder shall
|
| 25 |
+
* not be used in advertising or otherwise to promote the sale, use or
|
| 26 |
+
* other dealings in this Software without prior written authorization of
|
| 27 |
+
* the copyright holder.
|
| 28 |
+
*
|
| 29 |
+
* Authors:
|
| 30 |
+
* Kristian Høgsberg (krh@redhat.com)
|
| 31 |
+
*/
|
| 32 |
+
|
| 33 |
+
#ifndef _DRI2_PROTO_H_
|
| 34 |
+
#define _DRI2_PROTO_H_
|
| 35 |
+
|
| 36 |
+
#define DRI2_NAME "DRI2"
|
| 37 |
+
#define DRI2_MAJOR 1
|
| 38 |
+
#define DRI2_MINOR 4
|
| 39 |
+
|
| 40 |
+
#define DRI2NumberErrors 0
|
| 41 |
+
#define DRI2NumberEvents 2
|
| 42 |
+
#define DRI2NumberRequests 14
|
| 43 |
+
|
| 44 |
+
#define X_DRI2QueryVersion 0
|
| 45 |
+
#define X_DRI2Connect 1
|
| 46 |
+
#define X_DRI2Authenticate 2
|
| 47 |
+
#define X_DRI2CreateDrawable 3
|
| 48 |
+
#define X_DRI2DestroyDrawable 4
|
| 49 |
+
#define X_DRI2GetBuffers 5
|
| 50 |
+
#define X_DRI2CopyRegion 6
|
| 51 |
+
#define X_DRI2GetBuffersWithFormat 7
|
| 52 |
+
#define X_DRI2SwapBuffers 8
|
| 53 |
+
#define X_DRI2GetMSC 9
|
| 54 |
+
#define X_DRI2WaitMSC 10
|
| 55 |
+
#define X_DRI2WaitSBC 11
|
| 56 |
+
#define X_DRI2SwapInterval 12
|
| 57 |
+
#define X_DRI2GetParam 13
|
| 58 |
+
|
| 59 |
+
/*
|
| 60 |
+
* Events
|
| 61 |
+
*/
|
| 62 |
+
#define DRI2_BufferSwapComplete 0
|
| 63 |
+
#define DRI2_InvalidateBuffers 1
|
| 64 |
+
|
| 65 |
+
typedef struct {
|
| 66 |
+
CARD32 attachment;
|
| 67 |
+
CARD32 name;
|
| 68 |
+
CARD32 pitch;
|
| 69 |
+
CARD32 cpp;
|
| 70 |
+
CARD32 flags;
|
| 71 |
+
} xDRI2Buffer;
|
| 72 |
+
|
| 73 |
+
typedef struct {
|
| 74 |
+
CARD8 reqType;
|
| 75 |
+
CARD8 dri2ReqType;
|
| 76 |
+
CARD16 length;
|
| 77 |
+
CARD32 majorVersion;
|
| 78 |
+
CARD32 minorVersion;
|
| 79 |
+
} xDRI2QueryVersionReq;
|
| 80 |
+
#define sz_xDRI2QueryVersionReq 12
|
| 81 |
+
|
| 82 |
+
typedef struct {
|
| 83 |
+
BYTE type; /* X_Reply */
|
| 84 |
+
BYTE pad1;
|
| 85 |
+
CARD16 sequenceNumber;
|
| 86 |
+
CARD32 length;
|
| 87 |
+
CARD32 majorVersion;
|
| 88 |
+
CARD32 minorVersion;
|
| 89 |
+
CARD32 pad2;
|
| 90 |
+
CARD32 pad3;
|
| 91 |
+
CARD32 pad4;
|
| 92 |
+
CARD32 pad5;
|
| 93 |
+
} xDRI2QueryVersionReply;
|
| 94 |
+
#define sz_xDRI2QueryVersionReply 32
|
| 95 |
+
|
| 96 |
+
typedef struct {
|
| 97 |
+
CARD8 reqType;
|
| 98 |
+
CARD8 dri2ReqType;
|
| 99 |
+
CARD16 length;
|
| 100 |
+
CARD32 window;
|
| 101 |
+
CARD32 driverType;
|
| 102 |
+
} xDRI2ConnectReq;
|
| 103 |
+
#define sz_xDRI2ConnectReq 12
|
| 104 |
+
|
| 105 |
+
typedef struct {
|
| 106 |
+
BYTE type; /* X_Reply */
|
| 107 |
+
BYTE pad1;
|
| 108 |
+
CARD16 sequenceNumber;
|
| 109 |
+
CARD32 length;
|
| 110 |
+
CARD32 driverNameLength;
|
| 111 |
+
CARD32 deviceNameLength;
|
| 112 |
+
CARD32 pad2;
|
| 113 |
+
CARD32 pad3;
|
| 114 |
+
CARD32 pad4;
|
| 115 |
+
CARD32 pad5;
|
| 116 |
+
} xDRI2ConnectReply;
|
| 117 |
+
#define sz_xDRI2ConnectReply 32
|
| 118 |
+
|
| 119 |
+
typedef struct {
|
| 120 |
+
CARD8 reqType;
|
| 121 |
+
CARD8 dri2ReqType;
|
| 122 |
+
CARD16 length;
|
| 123 |
+
CARD32 window;
|
| 124 |
+
CARD32 magic;
|
| 125 |
+
} xDRI2AuthenticateReq;
|
| 126 |
+
#define sz_xDRI2AuthenticateReq 12
|
| 127 |
+
|
| 128 |
+
typedef struct {
|
| 129 |
+
BYTE type; /* X_Reply */
|
| 130 |
+
BYTE pad1;
|
| 131 |
+
CARD16 sequenceNumber;
|
| 132 |
+
CARD32 length;
|
| 133 |
+
CARD32 authenticated;
|
| 134 |
+
CARD32 pad2;
|
| 135 |
+
CARD32 pad3;
|
| 136 |
+
CARD32 pad4;
|
| 137 |
+
CARD32 pad5;
|
| 138 |
+
CARD32 pad6;
|
| 139 |
+
} xDRI2AuthenticateReply;
|
| 140 |
+
#define sz_xDRI2AuthenticateReply 32
|
| 141 |
+
|
| 142 |
+
typedef struct {
|
| 143 |
+
CARD8 reqType;
|
| 144 |
+
CARD8 dri2ReqType;
|
| 145 |
+
CARD16 length;
|
| 146 |
+
CARD32 drawable;
|
| 147 |
+
} xDRI2CreateDrawableReq;
|
| 148 |
+
#define sz_xDRI2CreateDrawableReq 8
|
| 149 |
+
|
| 150 |
+
typedef struct {
|
| 151 |
+
CARD8 reqType;
|
| 152 |
+
CARD8 dri2ReqType;
|
| 153 |
+
CARD16 length;
|
| 154 |
+
CARD32 drawable;
|
| 155 |
+
} xDRI2DestroyDrawableReq;
|
| 156 |
+
#define sz_xDRI2DestroyDrawableReq 8
|
| 157 |
+
|
| 158 |
+
typedef struct {
|
| 159 |
+
CARD8 reqType;
|
| 160 |
+
CARD8 dri2ReqType;
|
| 161 |
+
CARD16 length;
|
| 162 |
+
CARD32 drawable;
|
| 163 |
+
CARD32 count;
|
| 164 |
+
} xDRI2GetBuffersReq;
|
| 165 |
+
#define sz_xDRI2GetBuffersReq 12
|
| 166 |
+
|
| 167 |
+
typedef struct {
|
| 168 |
+
BYTE type; /* X_Reply */
|
| 169 |
+
BYTE pad1;
|
| 170 |
+
CARD16 sequenceNumber;
|
| 171 |
+
CARD32 length;
|
| 172 |
+
CARD32 width;
|
| 173 |
+
CARD32 height;
|
| 174 |
+
CARD32 count;
|
| 175 |
+
CARD32 pad2;
|
| 176 |
+
CARD32 pad3;
|
| 177 |
+
CARD32 pad4;
|
| 178 |
+
} xDRI2GetBuffersReply;
|
| 179 |
+
#define sz_xDRI2GetBuffersReply 32
|
| 180 |
+
|
| 181 |
+
typedef struct {
|
| 182 |
+
CARD8 reqType;
|
| 183 |
+
CARD8 dri2ReqType;
|
| 184 |
+
CARD16 length;
|
| 185 |
+
CARD32 drawable;
|
| 186 |
+
CARD32 region;
|
| 187 |
+
CARD32 dest;
|
| 188 |
+
CARD32 src;
|
| 189 |
+
} xDRI2CopyRegionReq;
|
| 190 |
+
#define sz_xDRI2CopyRegionReq 20
|
| 191 |
+
|
| 192 |
+
typedef struct {
|
| 193 |
+
BYTE type; /* X_Reply */
|
| 194 |
+
BYTE pad1;
|
| 195 |
+
CARD16 sequenceNumber;
|
| 196 |
+
CARD32 length;
|
| 197 |
+
CARD32 pad2;
|
| 198 |
+
CARD32 pad3;
|
| 199 |
+
CARD32 pad4;
|
| 200 |
+
CARD32 pad5;
|
| 201 |
+
CARD32 pad6;
|
| 202 |
+
CARD32 pad7;
|
| 203 |
+
} xDRI2CopyRegionReply;
|
| 204 |
+
#define sz_xDRI2CopyRegionReply 32
|
| 205 |
+
|
| 206 |
+
typedef struct {
|
| 207 |
+
CARD8 reqType;
|
| 208 |
+
CARD8 dri2ReqType;
|
| 209 |
+
CARD16 length;
|
| 210 |
+
CARD32 drawable;
|
| 211 |
+
CARD32 target_msc_hi;
|
| 212 |
+
CARD32 target_msc_lo;
|
| 213 |
+
CARD32 divisor_hi;
|
| 214 |
+
CARD32 divisor_lo;
|
| 215 |
+
CARD32 remainder_hi;
|
| 216 |
+
CARD32 remainder_lo;
|
| 217 |
+
} xDRI2SwapBuffersReq;
|
| 218 |
+
#define sz_xDRI2SwapBuffersReq 32
|
| 219 |
+
|
| 220 |
+
typedef struct {
|
| 221 |
+
BYTE type; /* X_Reply */
|
| 222 |
+
BYTE pad1;
|
| 223 |
+
CARD16 sequenceNumber;
|
| 224 |
+
CARD32 length;
|
| 225 |
+
CARD32 swap_hi;
|
| 226 |
+
CARD32 swap_lo;
|
| 227 |
+
CARD32 pad2;
|
| 228 |
+
CARD32 pad3;
|
| 229 |
+
CARD32 pad4;
|
| 230 |
+
CARD32 pad5;
|
| 231 |
+
} xDRI2SwapBuffersReply;
|
| 232 |
+
#define sz_xDRI2SwapBuffersReply 32
|
| 233 |
+
|
| 234 |
+
typedef struct {
|
| 235 |
+
CARD8 reqType;
|
| 236 |
+
CARD8 dri2ReqType;
|
| 237 |
+
CARD16 length;
|
| 238 |
+
CARD32 drawable;
|
| 239 |
+
} xDRI2GetMSCReq;
|
| 240 |
+
#define sz_xDRI2GetMSCReq 8
|
| 241 |
+
|
| 242 |
+
typedef struct {
|
| 243 |
+
CARD8 reqType;
|
| 244 |
+
CARD8 dri2ReqType;
|
| 245 |
+
CARD16 length;
|
| 246 |
+
CARD32 drawable;
|
| 247 |
+
CARD32 target_msc_hi;
|
| 248 |
+
CARD32 target_msc_lo;
|
| 249 |
+
CARD32 divisor_hi;
|
| 250 |
+
CARD32 divisor_lo;
|
| 251 |
+
CARD32 remainder_hi;
|
| 252 |
+
CARD32 remainder_lo;
|
| 253 |
+
} xDRI2WaitMSCReq;
|
| 254 |
+
#define sz_xDRI2WaitMSCReq 32
|
| 255 |
+
|
| 256 |
+
typedef struct {
|
| 257 |
+
CARD8 reqType;
|
| 258 |
+
CARD8 dri2ReqType;
|
| 259 |
+
CARD16 length;
|
| 260 |
+
CARD32 drawable;
|
| 261 |
+
CARD32 target_sbc_hi;
|
| 262 |
+
CARD32 target_sbc_lo;
|
| 263 |
+
} xDRI2WaitSBCReq;
|
| 264 |
+
#define sz_xDRI2WaitSBCReq 16
|
| 265 |
+
|
| 266 |
+
typedef struct {
|
| 267 |
+
CARD8 type;
|
| 268 |
+
CARD8 pad1;
|
| 269 |
+
CARD16 sequenceNumber;
|
| 270 |
+
CARD32 length;
|
| 271 |
+
CARD32 ust_hi;
|
| 272 |
+
CARD32 ust_lo;
|
| 273 |
+
CARD32 msc_hi;
|
| 274 |
+
CARD32 msc_lo;
|
| 275 |
+
CARD32 sbc_hi;
|
| 276 |
+
CARD32 sbc_lo;
|
| 277 |
+
} xDRI2MSCReply;
|
| 278 |
+
#define sz_xDRI2MSCReply 32
|
| 279 |
+
|
| 280 |
+
typedef struct {
|
| 281 |
+
CARD8 reqType;
|
| 282 |
+
CARD8 dri2ReqType;
|
| 283 |
+
CARD16 length;
|
| 284 |
+
CARD32 drawable;
|
| 285 |
+
CARD32 interval;
|
| 286 |
+
} xDRI2SwapIntervalReq;
|
| 287 |
+
#define sz_xDRI2SwapIntervalReq 12
|
| 288 |
+
|
| 289 |
+
typedef struct {
|
| 290 |
+
CARD8 type;
|
| 291 |
+
CARD8 pad;
|
| 292 |
+
CARD16 sequenceNumber;
|
| 293 |
+
CARD16 event_type;
|
| 294 |
+
CARD16 pad2;
|
| 295 |
+
CARD32 drawable;
|
| 296 |
+
CARD32 ust_hi;
|
| 297 |
+
CARD32 ust_lo;
|
| 298 |
+
CARD32 msc_hi;
|
| 299 |
+
CARD32 msc_lo;
|
| 300 |
+
CARD32 sbc_hi;
|
| 301 |
+
CARD32 sbc_lo;
|
| 302 |
+
} xDRI2BufferSwapComplete;
|
| 303 |
+
#define sz_xDRI2BufferSwapComplete 32
|
| 304 |
+
|
| 305 |
+
typedef struct {
|
| 306 |
+
CARD8 type;
|
| 307 |
+
CARD8 pad;
|
| 308 |
+
CARD16 sequenceNumber;
|
| 309 |
+
CARD16 event_type;
|
| 310 |
+
CARD16 pad2;
|
| 311 |
+
CARD32 drawable;
|
| 312 |
+
CARD32 ust_hi;
|
| 313 |
+
CARD32 ust_lo;
|
| 314 |
+
CARD32 msc_hi;
|
| 315 |
+
CARD32 msc_lo;
|
| 316 |
+
CARD32 sbc;
|
| 317 |
+
} xDRI2BufferSwapComplete2;
|
| 318 |
+
#define sz_xDRI2BufferSwapComplete2 32
|
| 319 |
+
|
| 320 |
+
typedef struct {
|
| 321 |
+
CARD8 type;
|
| 322 |
+
CARD8 pad;
|
| 323 |
+
CARD16 sequenceNumber;
|
| 324 |
+
CARD32 drawable;
|
| 325 |
+
CARD32 pad1;
|
| 326 |
+
CARD32 pad2;
|
| 327 |
+
CARD32 pad3;
|
| 328 |
+
CARD32 pad4;
|
| 329 |
+
CARD32 pad5;
|
| 330 |
+
CARD32 pad6;
|
| 331 |
+
} xDRI2InvalidateBuffers;
|
| 332 |
+
#define sz_xDRI2InvalidateBuffers 32
|
| 333 |
+
|
| 334 |
+
typedef struct {
|
| 335 |
+
CARD8 reqType;
|
| 336 |
+
CARD8 dri2ReqType;
|
| 337 |
+
CARD16 length;
|
| 338 |
+
CARD32 drawable;
|
| 339 |
+
CARD32 param;
|
| 340 |
+
} xDRI2GetParamReq;
|
| 341 |
+
#define sz_xDRI2GetParamReq 12
|
| 342 |
+
|
| 343 |
+
typedef struct {
|
| 344 |
+
BYTE type; /*X_Reply*/
|
| 345 |
+
BOOL is_param_recognized;
|
| 346 |
+
CARD16 sequenceNumber;
|
| 347 |
+
CARD32 length;
|
| 348 |
+
CARD32 value_hi;
|
| 349 |
+
CARD32 value_lo;
|
| 350 |
+
CARD32 pad1;
|
| 351 |
+
CARD32 pad2;
|
| 352 |
+
CARD32 pad3;
|
| 353 |
+
CARD32 pad4;
|
| 354 |
+
} xDRI2GetParamReply;
|
| 355 |
+
#define sz_xDRI2GetParamReply 32
|
| 356 |
+
|
| 357 |
+
#endif
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dri2tokens.h
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright © 2008 Red Hat, Inc.
|
| 3 |
+
*
|
| 4 |
+
* Permission is hereby granted, free of charge, to any person obtaining a
|
| 5 |
+
* copy of this software and associated documentation files (the "Soft-
|
| 6 |
+
* ware"), to deal in the Software without restriction, including without
|
| 7 |
+
* limitation the rights to use, copy, modify, merge, publish, distribute,
|
| 8 |
+
* and/or sell copies of the Software, and to permit persons to whom the
|
| 9 |
+
* Software is furnished to do so, provided that the above copyright
|
| 10 |
+
* notice(s) and this permission notice appear in all copies of the Soft-
|
| 11 |
+
* ware and that both the above copyright notice(s) and this permission
|
| 12 |
+
* notice appear in supporting documentation.
|
| 13 |
+
*
|
| 14 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
| 15 |
+
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
|
| 16 |
+
* ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY
|
| 17 |
+
* RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN
|
| 18 |
+
* THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSE-
|
| 19 |
+
* QUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
| 20 |
+
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
| 21 |
+
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFOR-
|
| 22 |
+
* MANCE OF THIS SOFTWARE.
|
| 23 |
+
*
|
| 24 |
+
* Except as contained in this notice, the name of a copyright holder shall
|
| 25 |
+
* not be used in advertising or otherwise to promote the sale, use or
|
| 26 |
+
* other dealings in this Software without prior written authorization of
|
| 27 |
+
* the copyright holder.
|
| 28 |
+
*
|
| 29 |
+
* Authors:
|
| 30 |
+
* Kristian Høgsberg (krh@redhat.com)
|
| 31 |
+
*/
|
| 32 |
+
|
| 33 |
+
#ifndef _DRI2_TOKENS_H_
|
| 34 |
+
#define _DRI2_TOKENS_H_
|
| 35 |
+
|
| 36 |
+
#define DRI2BufferFrontLeft 0
|
| 37 |
+
#define DRI2BufferBackLeft 1
|
| 38 |
+
#define DRI2BufferFrontRight 2
|
| 39 |
+
#define DRI2BufferBackRight 3
|
| 40 |
+
#define DRI2BufferDepth 4
|
| 41 |
+
#define DRI2BufferStencil 5
|
| 42 |
+
#define DRI2BufferAccum 6
|
| 43 |
+
#define DRI2BufferFakeFrontLeft 7
|
| 44 |
+
#define DRI2BufferFakeFrontRight 8
|
| 45 |
+
#define DRI2BufferDepthStencil 9
|
| 46 |
+
#define DRI2BufferHiz 10
|
| 47 |
+
|
| 48 |
+
/* keep bits 16 and above for prime IDs */
|
| 49 |
+
#define DRI2DriverPrimeMask 7 /* 0 - 7 - allows for 6 devices*/
|
| 50 |
+
#define DRI2DriverPrimeShift 16
|
| 51 |
+
#define DRI2DriverPrimeId(x) (((x) >> DRI2DriverPrimeShift) & (DRI2DriverPrimeMask))
|
| 52 |
+
|
| 53 |
+
#define DRI2DriverDRI 0
|
| 54 |
+
#define DRI2DriverVDPAU 1
|
| 55 |
+
|
| 56 |
+
/* Event sub-types for the swap complete event */
|
| 57 |
+
#define DRI2_EXCHANGE_COMPLETE 0x1
|
| 58 |
+
#define DRI2_BLIT_COMPLETE 0x2
|
| 59 |
+
#define DRI2_FLIP_COMPLETE 0x3
|
| 60 |
+
|
| 61 |
+
#endif
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/dri3proto.h
ADDED
|
@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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright © 2013 Keith Packard
|
| 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 copyright
|
| 7 |
+
* notice and this permission notice appear in supporting documentation, and
|
| 8 |
+
* that the name of the copyright holders not be used in advertising or
|
| 9 |
+
* publicity pertaining to distribution of the software without specific,
|
| 10 |
+
* written prior permission. The copyright holders make no representations
|
| 11 |
+
* about the suitability of this software for any purpose. It is provided "as
|
| 12 |
+
* is" without express or implied warranty.
|
| 13 |
+
*
|
| 14 |
+
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
| 15 |
+
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
| 16 |
+
* EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
| 17 |
+
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
| 18 |
+
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
| 19 |
+
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 20 |
+
* OF THIS SOFTWARE.
|
| 21 |
+
*/
|
| 22 |
+
|
| 23 |
+
#ifndef _DRI3_PROTO_H_
|
| 24 |
+
#define _DRI3_PROTO_H_
|
| 25 |
+
|
| 26 |
+
#define DRI3_NAME "DRI3"
|
| 27 |
+
#define DRI3_MAJOR 1
|
| 28 |
+
#define DRI3_MINOR 4
|
| 29 |
+
|
| 30 |
+
#define DRI3NumberErrors 0
|
| 31 |
+
#define DRI3NumberEvents 0
|
| 32 |
+
|
| 33 |
+
#define X_DRI3QueryVersion 0
|
| 34 |
+
#define X_DRI3Open 1
|
| 35 |
+
#define X_DRI3PixmapFromBuffer 2
|
| 36 |
+
#define X_DRI3BufferFromPixmap 3
|
| 37 |
+
#define X_DRI3FenceFromFD 4
|
| 38 |
+
#define X_DRI3FDFromFence 5
|
| 39 |
+
|
| 40 |
+
/* v1.2 */
|
| 41 |
+
#define xDRI3GetSupportedModifiers 6
|
| 42 |
+
#define xDRI3PixmapFromBuffers 7
|
| 43 |
+
#define xDRI3BuffersFromPixmap 8
|
| 44 |
+
|
| 45 |
+
/* v1.3 */
|
| 46 |
+
#define xDRI3SetDRMDeviceInUse 9
|
| 47 |
+
|
| 48 |
+
/* v1.4 */
|
| 49 |
+
#define xDRI3ImportSyncobj 10
|
| 50 |
+
#define xDRI3FreeSyncobj 11
|
| 51 |
+
|
| 52 |
+
#define DRI3NumberRequests 12
|
| 53 |
+
|
| 54 |
+
#define DRI3Syncobj CARD32
|
| 55 |
+
|
| 56 |
+
typedef struct {
|
| 57 |
+
CARD8 reqType;
|
| 58 |
+
CARD8 dri3ReqType;
|
| 59 |
+
CARD16 length;
|
| 60 |
+
CARD32 majorVersion;
|
| 61 |
+
CARD32 minorVersion;
|
| 62 |
+
} xDRI3QueryVersionReq;
|
| 63 |
+
#define sz_xDRI3QueryVersionReq 12
|
| 64 |
+
|
| 65 |
+
typedef struct {
|
| 66 |
+
BYTE type; /* X_Reply */
|
| 67 |
+
BYTE pad1;
|
| 68 |
+
CARD16 sequenceNumber;
|
| 69 |
+
CARD32 length;
|
| 70 |
+
CARD32 majorVersion;
|
| 71 |
+
CARD32 minorVersion;
|
| 72 |
+
CARD32 pad2;
|
| 73 |
+
CARD32 pad3;
|
| 74 |
+
CARD32 pad4;
|
| 75 |
+
CARD32 pad5;
|
| 76 |
+
} xDRI3QueryVersionReply;
|
| 77 |
+
#define sz_xDRI3QueryVersionReply 32
|
| 78 |
+
|
| 79 |
+
typedef struct {
|
| 80 |
+
CARD8 reqType;
|
| 81 |
+
CARD8 dri3ReqType;
|
| 82 |
+
CARD16 length;
|
| 83 |
+
CARD32 drawable;
|
| 84 |
+
CARD32 provider;
|
| 85 |
+
} xDRI3OpenReq;
|
| 86 |
+
#define sz_xDRI3OpenReq 12
|
| 87 |
+
|
| 88 |
+
typedef struct {
|
| 89 |
+
BYTE type; /* X_Reply */
|
| 90 |
+
CARD8 nfd;
|
| 91 |
+
CARD16 sequenceNumber;
|
| 92 |
+
CARD32 length;
|
| 93 |
+
CARD32 pad2;
|
| 94 |
+
CARD32 pad3;
|
| 95 |
+
CARD32 pad4;
|
| 96 |
+
CARD32 pad5;
|
| 97 |
+
CARD32 pad6;
|
| 98 |
+
CARD32 pad7;
|
| 99 |
+
} xDRI3OpenReply;
|
| 100 |
+
#define sz_xDRI3OpenReply 32
|
| 101 |
+
|
| 102 |
+
typedef struct {
|
| 103 |
+
CARD8 reqType;
|
| 104 |
+
CARD8 dri3ReqType;
|
| 105 |
+
CARD16 length;
|
| 106 |
+
CARD32 pixmap;
|
| 107 |
+
CARD32 drawable;
|
| 108 |
+
CARD32 size;
|
| 109 |
+
CARD16 width;
|
| 110 |
+
CARD16 height;
|
| 111 |
+
CARD16 stride;
|
| 112 |
+
CARD8 depth;
|
| 113 |
+
CARD8 bpp;
|
| 114 |
+
} xDRI3PixmapFromBufferReq;
|
| 115 |
+
|
| 116 |
+
#define sz_xDRI3PixmapFromBufferReq 24
|
| 117 |
+
|
| 118 |
+
typedef struct {
|
| 119 |
+
CARD8 reqType;
|
| 120 |
+
CARD8 dri3ReqType;
|
| 121 |
+
CARD16 length;
|
| 122 |
+
CARD32 pixmap;
|
| 123 |
+
} xDRI3BufferFromPixmapReq;
|
| 124 |
+
#define sz_xDRI3BufferFromPixmapReq 8
|
| 125 |
+
|
| 126 |
+
typedef struct {
|
| 127 |
+
BYTE type; /* X_Reply */
|
| 128 |
+
CARD8 nfd; /* Number of file descriptors returned (1) */
|
| 129 |
+
CARD16 sequenceNumber;
|
| 130 |
+
CARD32 length;
|
| 131 |
+
CARD32 size;
|
| 132 |
+
CARD16 width;
|
| 133 |
+
CARD16 height;
|
| 134 |
+
CARD16 stride;
|
| 135 |
+
CARD8 depth;
|
| 136 |
+
CARD8 bpp;
|
| 137 |
+
CARD32 pad20;
|
| 138 |
+
CARD32 pad24;
|
| 139 |
+
CARD32 pad28;
|
| 140 |
+
} xDRI3BufferFromPixmapReply;
|
| 141 |
+
#define sz_xDRI3BufferFromPixmapReply 32
|
| 142 |
+
|
| 143 |
+
typedef struct {
|
| 144 |
+
CARD8 reqType;
|
| 145 |
+
CARD8 dri3ReqType;
|
| 146 |
+
CARD16 length;
|
| 147 |
+
CARD32 drawable;
|
| 148 |
+
CARD32 fence;
|
| 149 |
+
BOOL initially_triggered;
|
| 150 |
+
CARD8 pad13;
|
| 151 |
+
CARD16 pad14;
|
| 152 |
+
} xDRI3FenceFromFDReq;
|
| 153 |
+
|
| 154 |
+
#define sz_xDRI3FenceFromFDReq 16
|
| 155 |
+
|
| 156 |
+
typedef struct {
|
| 157 |
+
CARD8 reqType;
|
| 158 |
+
CARD8 dri3ReqType;
|
| 159 |
+
CARD16 length;
|
| 160 |
+
CARD32 drawable;
|
| 161 |
+
CARD32 fence;
|
| 162 |
+
} xDRI3FDFromFenceReq;
|
| 163 |
+
|
| 164 |
+
#define sz_xDRI3FDFromFenceReq 12
|
| 165 |
+
|
| 166 |
+
typedef struct {
|
| 167 |
+
BYTE type; /* X_Reply */
|
| 168 |
+
CARD8 nfd; /* Number of file descriptors returned (1) */
|
| 169 |
+
CARD16 sequenceNumber;
|
| 170 |
+
CARD32 length;
|
| 171 |
+
CARD32 pad08;
|
| 172 |
+
CARD32 pad12;
|
| 173 |
+
CARD32 pad16;
|
| 174 |
+
CARD32 pad20;
|
| 175 |
+
CARD32 pad24;
|
| 176 |
+
CARD32 pad28;
|
| 177 |
+
} xDRI3FDFromFenceReply;
|
| 178 |
+
|
| 179 |
+
#define sz_xDRI3FDFromFenceReply 32
|
| 180 |
+
|
| 181 |
+
/* v1.2 */
|
| 182 |
+
|
| 183 |
+
typedef struct {
|
| 184 |
+
CARD8 reqType;
|
| 185 |
+
CARD8 dri3ReqType;
|
| 186 |
+
CARD16 length;
|
| 187 |
+
CARD32 window;
|
| 188 |
+
CARD8 depth;
|
| 189 |
+
CARD8 bpp;
|
| 190 |
+
CARD16 pad10;
|
| 191 |
+
} xDRI3GetSupportedModifiersReq;
|
| 192 |
+
#define sz_xDRI3GetSupportedModifiersReq 12
|
| 193 |
+
|
| 194 |
+
typedef struct {
|
| 195 |
+
BYTE type; /* X_Reply */
|
| 196 |
+
CARD8 pad1;
|
| 197 |
+
CARD16 sequenceNumber;
|
| 198 |
+
CARD32 length;
|
| 199 |
+
CARD32 numWindowModifiers;
|
| 200 |
+
CARD32 numScreenModifiers;
|
| 201 |
+
CARD32 pad16;
|
| 202 |
+
CARD32 pad20;
|
| 203 |
+
CARD32 pad24;
|
| 204 |
+
CARD32 pad28;
|
| 205 |
+
} xDRI3GetSupportedModifiersReply;
|
| 206 |
+
#define sz_xDRI3GetSupportedModifiersReply 32
|
| 207 |
+
|
| 208 |
+
typedef struct {
|
| 209 |
+
CARD8 reqType;
|
| 210 |
+
CARD8 dri3ReqType;
|
| 211 |
+
CARD16 length;
|
| 212 |
+
CARD32 pixmap;
|
| 213 |
+
CARD32 window;
|
| 214 |
+
CARD8 num_buffers; /* Number of file descriptors passed */
|
| 215 |
+
CARD8 pad13;
|
| 216 |
+
CARD16 pad14;
|
| 217 |
+
CARD16 width;
|
| 218 |
+
CARD16 height;
|
| 219 |
+
CARD32 stride0;
|
| 220 |
+
CARD32 offset0;
|
| 221 |
+
CARD32 stride1;
|
| 222 |
+
CARD32 offset1;
|
| 223 |
+
CARD32 stride2;
|
| 224 |
+
CARD32 offset2;
|
| 225 |
+
CARD32 stride3;
|
| 226 |
+
CARD32 offset3;
|
| 227 |
+
CARD8 depth;
|
| 228 |
+
CARD8 bpp;
|
| 229 |
+
CARD16 pad54;
|
| 230 |
+
CARD64 modifier;
|
| 231 |
+
} xDRI3PixmapFromBuffersReq;
|
| 232 |
+
#define sz_xDRI3PixmapFromBuffersReq 64
|
| 233 |
+
|
| 234 |
+
typedef struct {
|
| 235 |
+
CARD8 reqType;
|
| 236 |
+
CARD8 dri3ReqType;
|
| 237 |
+
CARD16 length;
|
| 238 |
+
CARD32 pixmap;
|
| 239 |
+
} xDRI3BuffersFromPixmapReq;
|
| 240 |
+
#define sz_xDRI3BuffersFromPixmapReq 8
|
| 241 |
+
|
| 242 |
+
typedef struct {
|
| 243 |
+
BYTE type; /* X_Reply */
|
| 244 |
+
CARD8 nfd; /* Number of file descriptors returned */
|
| 245 |
+
CARD16 sequenceNumber;
|
| 246 |
+
CARD32 length;
|
| 247 |
+
CARD16 width;
|
| 248 |
+
CARD16 height;
|
| 249 |
+
CARD32 pad12;
|
| 250 |
+
CARD64 modifier;
|
| 251 |
+
CARD8 depth;
|
| 252 |
+
CARD8 bpp;
|
| 253 |
+
CARD16 pad26;
|
| 254 |
+
CARD32 pad28;
|
| 255 |
+
} xDRI3BuffersFromPixmapReply;
|
| 256 |
+
#define sz_xDRI3BuffersFromPixmapReply 32
|
| 257 |
+
|
| 258 |
+
/* v1.3 */
|
| 259 |
+
|
| 260 |
+
typedef struct {
|
| 261 |
+
CARD8 reqType;
|
| 262 |
+
CARD8 dri3ReqType;
|
| 263 |
+
CARD16 length;
|
| 264 |
+
CARD32 window;
|
| 265 |
+
CARD32 drmMajor;
|
| 266 |
+
CARD32 drmMinor;
|
| 267 |
+
} xDRI3SetDRMDeviceInUseReq;
|
| 268 |
+
#define sz_xDRI3SetDRMDeviceInUseReq 16
|
| 269 |
+
|
| 270 |
+
/* v1.4 */
|
| 271 |
+
typedef struct {
|
| 272 |
+
CARD8 reqType;
|
| 273 |
+
CARD8 dri3ReqType;
|
| 274 |
+
CARD16 length;
|
| 275 |
+
DRI3Syncobj syncobj;
|
| 276 |
+
CARD32 drawable;
|
| 277 |
+
} xDRI3ImportSyncobjReq;
|
| 278 |
+
#define sz_xDRI3ImportSyncobjReq 12
|
| 279 |
+
|
| 280 |
+
typedef struct {
|
| 281 |
+
CARD8 reqType;
|
| 282 |
+
CARD8 dri3ReqType;
|
| 283 |
+
CARD16 length;
|
| 284 |
+
DRI3Syncobj syncobj;
|
| 285 |
+
} xDRI3FreeSyncobjReq;
|
| 286 |
+
#define sz_xDRI3FreeSyncobjReq 8
|
| 287 |
+
|
| 288 |
+
#endif
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/ge.h
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright © 2007-2008 Peter Hutterer
|
| 3 |
+
*
|
| 4 |
+
* Permission is hereby granted, free of charge, to any person obtaining a
|
| 5 |
+
* copy of this software and associated documentation files (the "Software"),
|
| 6 |
+
* to deal in the Software without restriction, including without limitation
|
| 7 |
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
| 8 |
+
* and/or sell copies of the Software, and to permit persons to whom the
|
| 9 |
+
* Software is furnished to do so, subject to the following conditions:
|
| 10 |
+
*
|
| 11 |
+
* The above copyright notice and this permission notice (including the next
|
| 12 |
+
* paragraph) shall be included in all copies or substantial portions of the
|
| 13 |
+
* Software.
|
| 14 |
+
*
|
| 15 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
| 18 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
| 20 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
| 21 |
+
* DEALINGS IN THE SOFTWARE.
|
| 22 |
+
*
|
| 23 |
+
* Authors: Peter Hutterer, University of South Australia, NICTA
|
| 24 |
+
*
|
| 25 |
+
*/
|
| 26 |
+
|
| 27 |
+
#ifndef _GE_H_
|
| 28 |
+
#define _GE_H_
|
| 29 |
+
|
| 30 |
+
#define GE_NAME "Generic Event Extension"
|
| 31 |
+
#define GE_MAJOR 1
|
| 32 |
+
#define GE_MINOR 0
|
| 33 |
+
|
| 34 |
+
/*********************************************************
|
| 35 |
+
*
|
| 36 |
+
* Requests
|
| 37 |
+
*
|
| 38 |
+
*/
|
| 39 |
+
|
| 40 |
+
#define X_GEQueryVersion 0
|
| 41 |
+
|
| 42 |
+
#define GENumberRequests (X_GEQueryVersion + 1)
|
| 43 |
+
|
| 44 |
+
/*********************************************************
|
| 45 |
+
*
|
| 46 |
+
* Events
|
| 47 |
+
*
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#define GENumberEvents 0
|
| 51 |
+
|
| 52 |
+
/*********************************************************
|
| 53 |
+
*
|
| 54 |
+
* Errors
|
| 55 |
+
*
|
| 56 |
+
*/
|
| 57 |
+
|
| 58 |
+
#define GENumberErrors 0
|
| 59 |
+
|
| 60 |
+
#endif /* _GE_H_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/geproto.h
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright © 2007-2008 Peter Hutterer
|
| 3 |
+
*
|
| 4 |
+
* Permission is hereby granted, free of charge, to any person obtaining a
|
| 5 |
+
* copy of this software and associated documentation files (the "Software"),
|
| 6 |
+
* to deal in the Software without restriction, including without limitation
|
| 7 |
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
| 8 |
+
* and/or sell copies of the Software, and to permit persons to whom the
|
| 9 |
+
* Software is furnished to do so, subject to the following conditions:
|
| 10 |
+
*
|
| 11 |
+
* The above copyright notice and this permission notice (including the next
|
| 12 |
+
* paragraph) shall be included in all copies or substantial portions of the
|
| 13 |
+
* Software.
|
| 14 |
+
*
|
| 15 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
| 18 |
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
| 20 |
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
| 21 |
+
* DEALINGS IN THE SOFTWARE.
|
| 22 |
+
*
|
| 23 |
+
* Authors: Peter Hutterer, University of South Australia, NICTA
|
| 24 |
+
*
|
| 25 |
+
*/
|
| 26 |
+
|
| 27 |
+
#ifndef _GEPROTO_H_
|
| 28 |
+
#define _GEPROTO_H_
|
| 29 |
+
|
| 30 |
+
#include<X11/Xproto.h>
|
| 31 |
+
#include<X11/X.h>
|
| 32 |
+
#include<X11/extensions/ge.h>
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
/*********************************************************
|
| 36 |
+
*
|
| 37 |
+
* Protocol request constants
|
| 38 |
+
*
|
| 39 |
+
*/
|
| 40 |
+
|
| 41 |
+
#define X_GEGetExtensionVersion 1
|
| 42 |
+
|
| 43 |
+
/*********************************************************
|
| 44 |
+
*
|
| 45 |
+
* XGE protocol requests/replies
|
| 46 |
+
*
|
| 47 |
+
*/
|
| 48 |
+
|
| 49 |
+
/* generic request */
|
| 50 |
+
typedef struct {
|
| 51 |
+
CARD8 reqType;
|
| 52 |
+
CARD8 ReqType;
|
| 53 |
+
CARD16 length;
|
| 54 |
+
} xGEReq;
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
/* QueryVersion */
|
| 58 |
+
typedef struct {
|
| 59 |
+
CARD8 reqType; /* input extension major code */
|
| 60 |
+
CARD8 ReqType; /* always X_GEQueryVersion */
|
| 61 |
+
CARD16 length;
|
| 62 |
+
CARD16 majorVersion;
|
| 63 |
+
CARD16 minorVersion;
|
| 64 |
+
} xGEQueryVersionReq;
|
| 65 |
+
|
| 66 |
+
#define sz_xGEQueryVersionReq 8
|
| 67 |
+
|
| 68 |
+
typedef struct {
|
| 69 |
+
CARD8 repType; /* X_Reply */
|
| 70 |
+
CARD8 RepType; /* always X_GEQueryVersion */
|
| 71 |
+
CARD16 sequenceNumber;
|
| 72 |
+
CARD32 length;
|
| 73 |
+
CARD16 majorVersion;
|
| 74 |
+
CARD16 minorVersion;
|
| 75 |
+
CARD32 pad00;
|
| 76 |
+
CARD32 pad01;
|
| 77 |
+
CARD32 pad02;
|
| 78 |
+
CARD32 pad03;
|
| 79 |
+
CARD32 pad04;
|
| 80 |
+
} xGEQueryVersionReply;
|
| 81 |
+
|
| 82 |
+
#define sz_xGEQueryVersionReply 32
|
| 83 |
+
|
| 84 |
+
#endif /* _GEPROTO_H_ */
|
| 85 |
+
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/lbx.h
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 1992 Network Computing Devices
|
| 3 |
+
*
|
| 4 |
+
* Permission to use, copy, modify, distribute, and sell this software and its
|
| 5 |
+
* documentation for any purpose is hereby granted without fee, provided that
|
| 6 |
+
* the above copyright notice appear in all copies and that both that
|
| 7 |
+
* copyright notice and this permission notice appear in supporting
|
| 8 |
+
* documentation, and that the name of NCD. not be used in advertising or
|
| 9 |
+
* publicity pertaining to distribution of the software without specific,
|
| 10 |
+
* written prior permission. NCD. makes no representations about the
|
| 11 |
+
* suitability of this software for any purpose. It is provided "as is"
|
| 12 |
+
* without express or implied warranty.
|
| 13 |
+
*
|
| 14 |
+
* NCD. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
|
| 15 |
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NCD.
|
| 16 |
+
* BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 17 |
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
| 18 |
+
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
| 19 |
+
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 20 |
+
*
|
| 21 |
+
*/
|
| 22 |
+
|
| 23 |
+
#ifndef _LBX_H_
|
| 24 |
+
#define _LBX_H_
|
| 25 |
+
|
| 26 |
+
#define LBXNAME "LBX"
|
| 27 |
+
|
| 28 |
+
#define LBX_MAJOR_VERSION 1
|
| 29 |
+
#define LBX_MINOR_VERSION 0
|
| 30 |
+
|
| 31 |
+
#define LbxNumberReqs 44
|
| 32 |
+
#define LbxEvent 0
|
| 33 |
+
#define LbxQuickMotionDeltaEvent 1
|
| 34 |
+
#define LbxNumberEvents 2
|
| 35 |
+
|
| 36 |
+
/* This is always the master client */
|
| 37 |
+
#define LbxMasterClientIndex 0
|
| 38 |
+
|
| 39 |
+
/* LbxEvent lbxType sub-fields */
|
| 40 |
+
#define LbxSwitchEvent 0
|
| 41 |
+
#define LbxCloseEvent 1
|
| 42 |
+
#define LbxDeltaEvent 2
|
| 43 |
+
#define LbxInvalidateTagEvent 3
|
| 44 |
+
#define LbxSendTagDataEvent 4
|
| 45 |
+
#define LbxListenToOne 5
|
| 46 |
+
#define LbxListenToAll 6
|
| 47 |
+
#define LbxMotionDeltaEvent 7
|
| 48 |
+
#define LbxReleaseCmapEvent 8
|
| 49 |
+
#define LbxFreeCellsEvent 9
|
| 50 |
+
|
| 51 |
+
/*
|
| 52 |
+
* Lbx image compression methods
|
| 53 |
+
*
|
| 54 |
+
* No compression is always assigned the value of 0.
|
| 55 |
+
*
|
| 56 |
+
* The rest of the compression method opcodes are assigned dynamically
|
| 57 |
+
* at option negotiation time.
|
| 58 |
+
*/
|
| 59 |
+
|
| 60 |
+
#define LbxImageCompressNone 0
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
#define BadLbxClient 0
|
| 64 |
+
#define LbxNumberErrors (BadLbxClient + 1)
|
| 65 |
+
|
| 66 |
+
/* tagged data types */
|
| 67 |
+
#define LbxTagTypeModmap 1
|
| 68 |
+
#define LbxTagTypeKeymap 2
|
| 69 |
+
#define LbxTagTypeProperty 3
|
| 70 |
+
#define LbxTagTypeFont 4
|
| 71 |
+
#define LbxTagTypeConnInfo 5
|
| 72 |
+
|
| 73 |
+
#endif
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/lbxproto.h
ADDED
|
@@ -0,0 +1,975 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 1992 Network Computing Devices
|
| 3 |
+
*
|
| 4 |
+
* Permission to use, copy, modify, distribute, and sell this software and its
|
| 5 |
+
* documentation for any purpose is hereby granted without fee, provided that
|
| 6 |
+
* the above copyright notice appear in all copies and that both that
|
| 7 |
+
* copyright notice and this permission notice appear in supporting
|
| 8 |
+
* documentation, and that the name of NCD. not be used in advertising or
|
| 9 |
+
* publicity pertaining to distribution of the software without specific,
|
| 10 |
+
* written prior permission. NCD. makes no representations about the
|
| 11 |
+
* suitability of this software for any purpose. It is provided "as is"
|
| 12 |
+
* without express or implied warranty.
|
| 13 |
+
*
|
| 14 |
+
* NCD. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
|
| 15 |
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NCD.
|
| 16 |
+
* BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 17 |
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
| 18 |
+
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
| 19 |
+
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 20 |
+
*
|
| 21 |
+
*/
|
| 22 |
+
|
| 23 |
+
#ifndef _LBXPROTO_H_
|
| 24 |
+
#define _LBXPROTO_H_
|
| 25 |
+
|
| 26 |
+
#include <X11/extensions/lbx.h>
|
| 27 |
+
/*
|
| 28 |
+
* NOTE: any changes or additions to the opcodes needs to be reflected
|
| 29 |
+
* in the lbxCacheable array in Xserver/lbx/lbxmain.c
|
| 30 |
+
*/
|
| 31 |
+
|
| 32 |
+
#define X_LbxQueryVersion 0
|
| 33 |
+
#define X_LbxStartProxy 1
|
| 34 |
+
#define X_LbxStopProxy 2
|
| 35 |
+
#define X_LbxSwitch 3
|
| 36 |
+
#define X_LbxNewClient 4
|
| 37 |
+
#define X_LbxCloseClient 5
|
| 38 |
+
#define X_LbxModifySequence 6
|
| 39 |
+
#define X_LbxAllowMotion 7
|
| 40 |
+
#define X_LbxIncrementPixel 8
|
| 41 |
+
#define X_LbxDelta 9
|
| 42 |
+
#define X_LbxGetModifierMapping 10
|
| 43 |
+
#define X_LbxInvalidateTag 12
|
| 44 |
+
#define X_LbxPolyPoint 13
|
| 45 |
+
#define X_LbxPolyLine 14
|
| 46 |
+
#define X_LbxPolySegment 15
|
| 47 |
+
#define X_LbxPolyRectangle 16
|
| 48 |
+
#define X_LbxPolyArc 17
|
| 49 |
+
#define X_LbxFillPoly 18
|
| 50 |
+
#define X_LbxPolyFillRectangle 19
|
| 51 |
+
#define X_LbxPolyFillArc 20
|
| 52 |
+
#define X_LbxGetKeyboardMapping 21
|
| 53 |
+
#define X_LbxQueryFont 22
|
| 54 |
+
#define X_LbxChangeProperty 23
|
| 55 |
+
#define X_LbxGetProperty 24
|
| 56 |
+
#define X_LbxTagData 25
|
| 57 |
+
|
| 58 |
+
#define X_LbxCopyArea 26
|
| 59 |
+
#define X_LbxCopyPlane 27
|
| 60 |
+
#define X_LbxPolyText8 28
|
| 61 |
+
#define X_LbxPolyText16 29
|
| 62 |
+
#define X_LbxImageText8 30
|
| 63 |
+
#define X_LbxImageText16 31
|
| 64 |
+
|
| 65 |
+
#define X_LbxQueryExtension 32
|
| 66 |
+
#define X_LbxPutImage 33
|
| 67 |
+
#define X_LbxGetImage 34
|
| 68 |
+
|
| 69 |
+
#define X_LbxBeginLargeRequest 35
|
| 70 |
+
#define X_LbxLargeRequestData 36
|
| 71 |
+
#define X_LbxEndLargeRequest 37
|
| 72 |
+
|
| 73 |
+
#define X_LbxInternAtoms 38
|
| 74 |
+
#define X_LbxGetWinAttrAndGeom 39
|
| 75 |
+
|
| 76 |
+
#define X_LbxGrabCmap 40
|
| 77 |
+
#define X_LbxReleaseCmap 41
|
| 78 |
+
#define X_LbxAllocColor 42
|
| 79 |
+
|
| 80 |
+
#define X_LbxSync 43
|
| 81 |
+
|
| 82 |
+
/*
|
| 83 |
+
* Redefine some basic types used by structures defined herein. This removes
|
| 84 |
+
* any possibility on 64-bit architectures of one entity viewing communicated
|
| 85 |
+
* data as 32-bit quantities and another entity viewing the same data as 64-bit
|
| 86 |
+
* quantities.
|
| 87 |
+
*/
|
| 88 |
+
#define XID CARD32
|
| 89 |
+
#define Atom CARD32
|
| 90 |
+
#define Colormap CARD32
|
| 91 |
+
#define Drawable CARD32
|
| 92 |
+
#define VisualID CARD32
|
| 93 |
+
#define Window CARD32
|
| 94 |
+
|
| 95 |
+
typedef struct {
|
| 96 |
+
BOOL success; /* TRUE */
|
| 97 |
+
BOOL changeType;
|
| 98 |
+
CARD16 majorVersion,
|
| 99 |
+
minorVersion;
|
| 100 |
+
CARD16 length; /* 1/4 additional bytes in setup info */
|
| 101 |
+
CARD32 tag;
|
| 102 |
+
} xLbxConnSetupPrefix;
|
| 103 |
+
|
| 104 |
+
typedef struct _LbxQueryVersion {
|
| 105 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 106 |
+
CARD8 lbxReqType; /* always X_LbxQueryVersion */
|
| 107 |
+
CARD16 length;
|
| 108 |
+
} xLbxQueryVersionReq;
|
| 109 |
+
#define sz_xLbxQueryVersionReq 4
|
| 110 |
+
|
| 111 |
+
typedef struct {
|
| 112 |
+
BYTE type; /* X_Reply */
|
| 113 |
+
CARD8 unused;
|
| 114 |
+
CARD16 sequenceNumber;
|
| 115 |
+
CARD32 length;
|
| 116 |
+
CARD16 majorVersion; /* major version of LBX protocol */
|
| 117 |
+
CARD16 minorVersion; /* minor version of LBX protocol */
|
| 118 |
+
CARD32 pad0;
|
| 119 |
+
CARD32 pad1;
|
| 120 |
+
CARD32 pad2;
|
| 121 |
+
CARD32 pad3;
|
| 122 |
+
CARD32 pad4;
|
| 123 |
+
} xLbxQueryVersionReply;
|
| 124 |
+
#define sz_xLbxQueryVersionReply 32
|
| 125 |
+
|
| 126 |
+
typedef struct _LbxStartProxy {
|
| 127 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 128 |
+
CARD8 lbxReqType; /* always X_LbxStartProxy */
|
| 129 |
+
CARD16 length;
|
| 130 |
+
} xLbxStartProxyReq;
|
| 131 |
+
#define sz_xLbxStartProxyReq 4
|
| 132 |
+
|
| 133 |
+
typedef struct _LbxStopProxy {
|
| 134 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 135 |
+
CARD8 lbxReqType; /* always X_LbxStopProxy */
|
| 136 |
+
CARD16 length;
|
| 137 |
+
} xLbxStopProxyReq;
|
| 138 |
+
#define sz_xLbxStopProxyReq 4
|
| 139 |
+
|
| 140 |
+
typedef struct _LbxSwitch {
|
| 141 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 142 |
+
CARD8 lbxReqType; /* always X_LbxSwitch */
|
| 143 |
+
CARD16 length;
|
| 144 |
+
CARD32 client; /* new client */
|
| 145 |
+
} xLbxSwitchReq;
|
| 146 |
+
#define sz_xLbxSwitchReq 8
|
| 147 |
+
|
| 148 |
+
typedef struct _LbxNewClient {
|
| 149 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 150 |
+
CARD8 lbxReqType; /* always X_LbxNewClient */
|
| 151 |
+
CARD16 length;
|
| 152 |
+
CARD32 client; /* new client */
|
| 153 |
+
} xLbxNewClientReq;
|
| 154 |
+
#define sz_xLbxNewClientReq 8
|
| 155 |
+
|
| 156 |
+
typedef struct _LbxCloseClient {
|
| 157 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 158 |
+
CARD8 lbxReqType; /* always X_LbxCloseClient */
|
| 159 |
+
CARD16 length;
|
| 160 |
+
CARD32 client; /* new client */
|
| 161 |
+
} xLbxCloseClientReq;
|
| 162 |
+
#define sz_xLbxCloseClientReq 8
|
| 163 |
+
|
| 164 |
+
typedef struct _LbxModifySequence {
|
| 165 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 166 |
+
CARD8 lbxReqType; /* always X_LbxModifySequence */
|
| 167 |
+
CARD16 length;
|
| 168 |
+
CARD32 adjust;
|
| 169 |
+
} xLbxModifySequenceReq;
|
| 170 |
+
#define sz_xLbxModifySequenceReq 8
|
| 171 |
+
|
| 172 |
+
typedef struct _LbxAllowMotion {
|
| 173 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 174 |
+
CARD8 lbxReqType; /* always X_LbxAllowMotion */
|
| 175 |
+
CARD16 length;
|
| 176 |
+
CARD32 num;
|
| 177 |
+
} xLbxAllowMotionReq;
|
| 178 |
+
#define sz_xLbxAllowMotionReq 8
|
| 179 |
+
|
| 180 |
+
typedef struct {
|
| 181 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 182 |
+
CARD8 lbxReqType; /* always X_LbxGrabCmap */
|
| 183 |
+
CARD16 length;
|
| 184 |
+
Colormap cmap;
|
| 185 |
+
} xLbxGrabCmapReq;
|
| 186 |
+
#define sz_xLbxGrabCmapReq 8
|
| 187 |
+
|
| 188 |
+
#define LBX_SMART_GRAB 0x80
|
| 189 |
+
#define LBX_AUTO_RELEASE 0x40
|
| 190 |
+
#define LBX_3CHANNELS 0x20
|
| 191 |
+
#define LBX_2BYTE_PIXELS 0x10
|
| 192 |
+
#define LBX_RGB_BITS_MASK 0x0f
|
| 193 |
+
|
| 194 |
+
#define LBX_LIST_END 0
|
| 195 |
+
#define LBX_PIXEL_PRIVATE 1
|
| 196 |
+
#define LBX_PIXEL_SHARED 2
|
| 197 |
+
#define LBX_PIXEL_RANGE_PRIVATE 3
|
| 198 |
+
#define LBX_PIXEL_RANGE_SHARED 4
|
| 199 |
+
#define LBX_NEXT_CHANNEL 5
|
| 200 |
+
|
| 201 |
+
typedef struct {
|
| 202 |
+
BYTE type; /* X_Reply */
|
| 203 |
+
CARD8 flags;
|
| 204 |
+
CARD16 sequenceNumber;
|
| 205 |
+
CARD32 length;
|
| 206 |
+
CARD32 pad0;
|
| 207 |
+
CARD32 pad1;
|
| 208 |
+
CARD32 pad2;
|
| 209 |
+
CARD32 pad3;
|
| 210 |
+
CARD32 pad4;
|
| 211 |
+
CARD32 pad5;
|
| 212 |
+
} xLbxGrabCmapReply;
|
| 213 |
+
#define sz_xLbxGrabCmapReply 32
|
| 214 |
+
#define sz_xLbxGrabCmapReplyHdr 8
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
typedef struct {
|
| 218 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 219 |
+
CARD8 lbxReqType; /* always X_LbxReleaseCmap */
|
| 220 |
+
CARD16 length;
|
| 221 |
+
Colormap cmap;
|
| 222 |
+
} xLbxReleaseCmapReq;
|
| 223 |
+
#define sz_xLbxReleaseCmapReq 8
|
| 224 |
+
|
| 225 |
+
typedef struct {
|
| 226 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 227 |
+
CARD8 lbxReqType; /* always X_LbxAllocColor */
|
| 228 |
+
CARD16 length;
|
| 229 |
+
Colormap cmap;
|
| 230 |
+
CARD32 pixel;
|
| 231 |
+
CARD16 red, green, blue;
|
| 232 |
+
CARD16 pad;
|
| 233 |
+
} xLbxAllocColorReq;
|
| 234 |
+
#define sz_xLbxAllocColorReq 20
|
| 235 |
+
|
| 236 |
+
typedef struct _LbxIncrementPixel {
|
| 237 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 238 |
+
CARD8 lbxReqType; /* always X_LbxIncrementPixel */
|
| 239 |
+
CARD16 length;
|
| 240 |
+
CARD32 cmap;
|
| 241 |
+
CARD32 pixel;
|
| 242 |
+
} xLbxIncrementPixelReq;
|
| 243 |
+
#define sz_xLbxIncrementPixelReq 12
|
| 244 |
+
|
| 245 |
+
typedef struct _LbxDelta {
|
| 246 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 247 |
+
CARD8 lbxReqType; /* always X_LbxDelta */
|
| 248 |
+
CARD16 length;
|
| 249 |
+
CARD8 diffs; /* number of diffs */
|
| 250 |
+
CARD8 cindex; /* cache index */
|
| 251 |
+
/* list of diffs follows */
|
| 252 |
+
} xLbxDeltaReq;
|
| 253 |
+
#define sz_xLbxDeltaReq 6
|
| 254 |
+
|
| 255 |
+
typedef struct _LbxGetModifierMapping {
|
| 256 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 257 |
+
CARD8 lbxReqType; /* always X_LbxGetModifierMapping */
|
| 258 |
+
CARD16 length;
|
| 259 |
+
} xLbxGetModifierMappingReq;
|
| 260 |
+
#define sz_xLbxGetModifierMappingReq 4
|
| 261 |
+
|
| 262 |
+
typedef struct {
|
| 263 |
+
BYTE type; /* X_Reply */
|
| 264 |
+
CARD8 keyspermod;
|
| 265 |
+
CARD16 sequenceNumber;
|
| 266 |
+
CARD32 length;
|
| 267 |
+
CARD32 tag;
|
| 268 |
+
CARD32 pad0;
|
| 269 |
+
CARD32 pad1;
|
| 270 |
+
CARD32 pad2;
|
| 271 |
+
CARD32 pad3;
|
| 272 |
+
CARD32 pad4;
|
| 273 |
+
} xLbxGetModifierMappingReply;
|
| 274 |
+
#define sz_xLbxGetModifierMappingReply 32
|
| 275 |
+
|
| 276 |
+
typedef struct _LbxGetKeyboardMapping {
|
| 277 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 278 |
+
CARD8 lbxReqType; /* always X_LbxGetKeyboardMapping */
|
| 279 |
+
CARD16 length;
|
| 280 |
+
KeyCode firstKeyCode;
|
| 281 |
+
CARD8 count;
|
| 282 |
+
CARD16 pad1;
|
| 283 |
+
} xLbxGetKeyboardMappingReq;
|
| 284 |
+
#define sz_xLbxGetKeyboardMappingReq 8
|
| 285 |
+
|
| 286 |
+
typedef struct {
|
| 287 |
+
BYTE type; /* X_Reply */
|
| 288 |
+
CARD8 keysperkeycode;
|
| 289 |
+
CARD16 sequenceNumber;
|
| 290 |
+
CARD32 length;
|
| 291 |
+
CARD32 tag;
|
| 292 |
+
CARD32 pad0;
|
| 293 |
+
CARD32 pad1;
|
| 294 |
+
CARD32 pad2;
|
| 295 |
+
CARD32 pad3;
|
| 296 |
+
CARD32 pad4;
|
| 297 |
+
} xLbxGetKeyboardMappingReply;
|
| 298 |
+
#define sz_xLbxGetKeyboardMappingReply 32
|
| 299 |
+
|
| 300 |
+
typedef struct _LbxQueryFont {
|
| 301 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 302 |
+
CARD8 lbxReqType; /* always X_LbxQueryFont */
|
| 303 |
+
CARD16 length;
|
| 304 |
+
CARD32 fid;
|
| 305 |
+
} xLbxQueryFontReq;
|
| 306 |
+
#define sz_xLbxQueryFontReq 8
|
| 307 |
+
|
| 308 |
+
typedef struct _LbxInternAtoms {
|
| 309 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 310 |
+
CARD8 lbxReqType; /* always X_LbxInternAtoms */
|
| 311 |
+
CARD16 length;
|
| 312 |
+
CARD16 num;
|
| 313 |
+
} xLbxInternAtomsReq;
|
| 314 |
+
#define sz_xLbxInternAtomsReq 6
|
| 315 |
+
|
| 316 |
+
typedef struct {
|
| 317 |
+
BYTE type; /* X_Reply */
|
| 318 |
+
CARD8 unused;
|
| 319 |
+
CARD16 sequenceNumber;
|
| 320 |
+
CARD32 length;
|
| 321 |
+
CARD32 atomsStart;
|
| 322 |
+
CARD32 pad0;
|
| 323 |
+
CARD32 pad1;
|
| 324 |
+
CARD32 pad2;
|
| 325 |
+
CARD32 pad3;
|
| 326 |
+
CARD32 pad4;
|
| 327 |
+
} xLbxInternAtomsReply;
|
| 328 |
+
#define sz_xLbxInternAtomsReply 32
|
| 329 |
+
#define sz_xLbxInternAtomsReplyHdr 8
|
| 330 |
+
|
| 331 |
+
|
| 332 |
+
typedef struct _LbxGetWinAttrAndGeom {
|
| 333 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 334 |
+
CARD8 lbxReqType; /* always X_LbxGetWinAttrAndGeom */
|
| 335 |
+
CARD16 length;
|
| 336 |
+
CARD32 id; /* window id */
|
| 337 |
+
} xLbxGetWinAttrAndGeomReq;
|
| 338 |
+
#define sz_xLbxGetWinAttrAndGeomReq 8
|
| 339 |
+
|
| 340 |
+
typedef struct {
|
| 341 |
+
BYTE type; /* X_Reply */
|
| 342 |
+
CARD8 backingStore;
|
| 343 |
+
CARD16 sequenceNumber;
|
| 344 |
+
CARD32 length; /* NOT 0; this is an extra-large reply */
|
| 345 |
+
VisualID visualID;
|
| 346 |
+
#if defined(__cplusplus) || defined(c_plusplus)
|
| 347 |
+
CARD16 c_class;
|
| 348 |
+
#else
|
| 349 |
+
CARD16 class;
|
| 350 |
+
#endif
|
| 351 |
+
CARD8 bitGravity;
|
| 352 |
+
CARD8 winGravity;
|
| 353 |
+
CARD32 backingBitPlanes;
|
| 354 |
+
CARD32 backingPixel;
|
| 355 |
+
BOOL saveUnder;
|
| 356 |
+
BOOL mapInstalled;
|
| 357 |
+
CARD8 mapState;
|
| 358 |
+
BOOL override;
|
| 359 |
+
Colormap colormap;
|
| 360 |
+
CARD32 allEventMasks;
|
| 361 |
+
CARD32 yourEventMask;
|
| 362 |
+
CARD16 doNotPropagateMask;
|
| 363 |
+
CARD16 pad1;
|
| 364 |
+
Window root;
|
| 365 |
+
INT16 x, y;
|
| 366 |
+
CARD16 width, height;
|
| 367 |
+
CARD16 borderWidth;
|
| 368 |
+
CARD8 depth;
|
| 369 |
+
CARD8 pad2;
|
| 370 |
+
} xLbxGetWinAttrAndGeomReply;
|
| 371 |
+
#define sz_xLbxGetWinAttrAndGeomReply 60
|
| 372 |
+
|
| 373 |
+
|
| 374 |
+
typedef struct {
|
| 375 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 376 |
+
CARD8 lbxReqType; /* always X_LbxSync */
|
| 377 |
+
CARD16 length;
|
| 378 |
+
} xLbxSyncReq;
|
| 379 |
+
#define sz_xLbxSyncReq 4
|
| 380 |
+
|
| 381 |
+
typedef struct {
|
| 382 |
+
BYTE type; /* X_Reply */
|
| 383 |
+
CARD8 pad0;
|
| 384 |
+
CARD16 sequenceNumber;
|
| 385 |
+
CARD32 length;
|
| 386 |
+
CARD32 pad1;
|
| 387 |
+
CARD32 pad2;
|
| 388 |
+
CARD32 pad3;
|
| 389 |
+
CARD32 pad4;
|
| 390 |
+
CARD32 pad5;
|
| 391 |
+
CARD32 pad6;
|
| 392 |
+
} xLbxSyncReply;
|
| 393 |
+
#define sz_xLbxSyncReply 32
|
| 394 |
+
|
| 395 |
+
|
| 396 |
+
/* an LBX squished charinfo packs the data in a CARD32 as follows */
|
| 397 |
+
#define LBX_WIDTH_SHIFT 26
|
| 398 |
+
#define LBX_LEFT_SHIFT 20
|
| 399 |
+
#define LBX_RIGHT_SHIFT 13
|
| 400 |
+
#define LBX_ASCENT_SHIFT 7
|
| 401 |
+
#define LBX_DESCENT_SHIFT 0
|
| 402 |
+
|
| 403 |
+
#define LBX_WIDTH_BITS 6
|
| 404 |
+
#define LBX_LEFT_BITS 6
|
| 405 |
+
#define LBX_RIGHT_BITS 7
|
| 406 |
+
#define LBX_ASCENT_BITS 6
|
| 407 |
+
#define LBX_DESCENT_BITS 7
|
| 408 |
+
|
| 409 |
+
#define LBX_WIDTH_MASK 0xfc000000
|
| 410 |
+
#define LBX_LEFT_MASK 0x03f00000
|
| 411 |
+
#define LBX_RIGHT_MASK 0x000fe000
|
| 412 |
+
#define LBX_ASCENT_MASK 0x00001f80
|
| 413 |
+
#define LBX_DESCENT_MASK 0x0000007f
|
| 414 |
+
|
| 415 |
+
#define LBX_MASK_BITS(val, n) ((unsigned int) ((val) & ((1 << (n)) - 1)))
|
| 416 |
+
|
| 417 |
+
typedef struct {
|
| 418 |
+
CARD32 metrics;
|
| 419 |
+
} xLbxCharInfo;
|
| 420 |
+
|
| 421 |
+
/* note that this is identical to xQueryFontReply except for missing
|
| 422 |
+
* first 2 words
|
| 423 |
+
*/
|
| 424 |
+
typedef struct {
|
| 425 |
+
xCharInfo minBounds;
|
| 426 |
+
/* XXX do we need to leave this gunk? */
|
| 427 |
+
#ifndef WORD64
|
| 428 |
+
CARD32 walign1;
|
| 429 |
+
#endif
|
| 430 |
+
xCharInfo maxBounds;
|
| 431 |
+
#ifndef WORD64
|
| 432 |
+
CARD32 walign2;
|
| 433 |
+
#endif
|
| 434 |
+
CARD16 minCharOrByte2, maxCharOrByte2;
|
| 435 |
+
CARD16 defaultChar;
|
| 436 |
+
CARD16 nFontProps; /* followed by this many xFontProp structures */
|
| 437 |
+
CARD8 drawDirection;
|
| 438 |
+
CARD8 minByte1, maxByte1;
|
| 439 |
+
BOOL allCharsExist;
|
| 440 |
+
INT16 fontAscent, fontDescent;
|
| 441 |
+
CARD32 nCharInfos; /* followed by this many xLbxCharInfo structures */
|
| 442 |
+
} xLbxFontInfo;
|
| 443 |
+
|
| 444 |
+
typedef struct {
|
| 445 |
+
BYTE type; /* X_Reply */
|
| 446 |
+
CARD8 compression;
|
| 447 |
+
CARD16 sequenceNumber;
|
| 448 |
+
CARD32 length;
|
| 449 |
+
CARD32 tag;
|
| 450 |
+
CARD32 pad0;
|
| 451 |
+
CARD32 pad1;
|
| 452 |
+
CARD32 pad2;
|
| 453 |
+
CARD32 pad3;
|
| 454 |
+
CARD32 pad4;
|
| 455 |
+
/* X_QueryFont sticks much of the data in the base reply packet,
|
| 456 |
+
* but we hope that it won't be needed, (and it won't fit in 32 bytes
|
| 457 |
+
* with the tag anyways)
|
| 458 |
+
*
|
| 459 |
+
* if any additional data is needed, its sent in a xLbxFontInfo
|
| 460 |
+
*/
|
| 461 |
+
} xLbxQueryFontReply;
|
| 462 |
+
#define sz_xLbxQueryFontReply 32
|
| 463 |
+
|
| 464 |
+
typedef struct _LbxChangeProperty {
|
| 465 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 466 |
+
CARD8 lbxReqType; /* always X_LbxChangeProperty */
|
| 467 |
+
CARD16 length;
|
| 468 |
+
Window window;
|
| 469 |
+
Atom property;
|
| 470 |
+
Atom type;
|
| 471 |
+
CARD8 format;
|
| 472 |
+
CARD8 mode;
|
| 473 |
+
BYTE pad[2];
|
| 474 |
+
CARD32 nUnits;
|
| 475 |
+
} xLbxChangePropertyReq;
|
| 476 |
+
#define sz_xLbxChangePropertyReq 24
|
| 477 |
+
|
| 478 |
+
typedef struct {
|
| 479 |
+
BYTE type; /* X_Reply */
|
| 480 |
+
CARD8 pad;
|
| 481 |
+
CARD16 sequenceNumber;
|
| 482 |
+
CARD32 length;
|
| 483 |
+
CARD32 tag;
|
| 484 |
+
CARD32 pad0;
|
| 485 |
+
CARD32 pad1;
|
| 486 |
+
CARD32 pad2;
|
| 487 |
+
CARD32 pad3;
|
| 488 |
+
CARD32 pad4;
|
| 489 |
+
} xLbxChangePropertyReply;
|
| 490 |
+
#define sz_xLbxChangePropertyReply 32
|
| 491 |
+
|
| 492 |
+
typedef struct _LbxGetProperty {
|
| 493 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 494 |
+
CARD8 lbxReqType; /* always X_LbxGetProperty */
|
| 495 |
+
CARD16 length;
|
| 496 |
+
Window window;
|
| 497 |
+
Atom property;
|
| 498 |
+
Atom type;
|
| 499 |
+
CARD8 delete;
|
| 500 |
+
BYTE pad[3];
|
| 501 |
+
CARD32 longOffset;
|
| 502 |
+
CARD32 longLength;
|
| 503 |
+
} xLbxGetPropertyReq;
|
| 504 |
+
#define sz_xLbxGetPropertyReq 28
|
| 505 |
+
|
| 506 |
+
typedef struct {
|
| 507 |
+
BYTE type; /* X_Reply */
|
| 508 |
+
CARD8 format;
|
| 509 |
+
CARD16 sequenceNumber;
|
| 510 |
+
CARD32 length;
|
| 511 |
+
Atom propertyType;
|
| 512 |
+
CARD32 bytesAfter;
|
| 513 |
+
CARD32 nItems;
|
| 514 |
+
CARD32 tag;
|
| 515 |
+
CARD32 pad1;
|
| 516 |
+
CARD32 pad2;
|
| 517 |
+
} xLbxGetPropertyReply;
|
| 518 |
+
#define sz_xLbxGetPropertyReply 32
|
| 519 |
+
|
| 520 |
+
typedef struct _LbxTagData {
|
| 521 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 522 |
+
CARD8 lbxReqType; /* always X_LbxTagData */
|
| 523 |
+
CARD16 length;
|
| 524 |
+
XID tag;
|
| 525 |
+
CARD32 real_length;
|
| 526 |
+
/* data */
|
| 527 |
+
} xLbxTagDataReq;
|
| 528 |
+
#define sz_xLbxTagDataReq 12
|
| 529 |
+
|
| 530 |
+
typedef struct _LbxInvalidateTag {
|
| 531 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 532 |
+
CARD8 lbxReqType; /* always X_LbxInvalidateTag */
|
| 533 |
+
CARD16 length;
|
| 534 |
+
CARD32 tag;
|
| 535 |
+
} xLbxInvalidateTagReq;
|
| 536 |
+
#define sz_xLbxInvalidateTagReq 8
|
| 537 |
+
|
| 538 |
+
typedef struct _LbxPutImage {
|
| 539 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 540 |
+
CARD8 lbxReqType; /* always X_LbxPutImage */
|
| 541 |
+
CARD16 length;
|
| 542 |
+
CARD8 compressionMethod;
|
| 543 |
+
CARD8 cacheEnts;
|
| 544 |
+
CARD8 bitPacked;
|
| 545 |
+
/* rest is variable */
|
| 546 |
+
} xLbxPutImageReq;
|
| 547 |
+
#define sz_xLbxPutImageReq 7
|
| 548 |
+
|
| 549 |
+
typedef struct {
|
| 550 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 551 |
+
CARD8 lbxReqType; /* always X_LbxGetImage */
|
| 552 |
+
CARD16 length;
|
| 553 |
+
Drawable drawable;
|
| 554 |
+
INT16 x, y;
|
| 555 |
+
CARD16 width, height;
|
| 556 |
+
CARD32 planeMask;
|
| 557 |
+
CARD8 format;
|
| 558 |
+
CARD8 pad1;
|
| 559 |
+
CARD16 pad2;
|
| 560 |
+
} xLbxGetImageReq;
|
| 561 |
+
|
| 562 |
+
#define sz_xLbxGetImageReq 24
|
| 563 |
+
|
| 564 |
+
typedef struct {
|
| 565 |
+
BYTE type; /* X_Reply */
|
| 566 |
+
CARD8 depth;
|
| 567 |
+
CARD16 sequenceNumber;
|
| 568 |
+
CARD32 lbxLength;
|
| 569 |
+
CARD32 xLength;
|
| 570 |
+
VisualID visual;
|
| 571 |
+
CARD8 compressionMethod;
|
| 572 |
+
CARD8 pad1;
|
| 573 |
+
CARD16 pad2;
|
| 574 |
+
CARD32 pad3;
|
| 575 |
+
CARD32 pad4;
|
| 576 |
+
CARD32 pad5;
|
| 577 |
+
} xLbxGetImageReply;
|
| 578 |
+
|
| 579 |
+
#define sz_xLbxGetImageReply 32
|
| 580 |
+
|
| 581 |
+
/* Following used for LbxPolyPoint, LbxPolyLine, LbxPolySegment,
|
| 582 |
+
LbxPolyRectangle, LbxPolyArc, LbxPolyFillRectangle and LbxPolyFillArc */
|
| 583 |
+
|
| 584 |
+
#define GFX_CACHE_SIZE 15
|
| 585 |
+
|
| 586 |
+
#define GFXdCacheEnt(e) ((e) & 0xf)
|
| 587 |
+
#define GFXgCacheEnt(e) (((e) >> 4) & 0xf)
|
| 588 |
+
#define GFXCacheEnts(d,g) (((d) & 0xf) | (((g) & 0xf) << 4))
|
| 589 |
+
|
| 590 |
+
#define GFXCacheNone 0xf
|
| 591 |
+
|
| 592 |
+
typedef struct _LbxPolyPoint {
|
| 593 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 594 |
+
CARD8 lbxReqType;
|
| 595 |
+
CARD16 length;
|
| 596 |
+
CARD8 cacheEnts;
|
| 597 |
+
CARD8 padBytes;
|
| 598 |
+
} xLbxPolyPointReq;
|
| 599 |
+
|
| 600 |
+
#define sz_xLbxPolyPointReq 6
|
| 601 |
+
|
| 602 |
+
typedef xLbxPolyPointReq xLbxPolyLineReq;
|
| 603 |
+
typedef xLbxPolyPointReq xLbxPolySegmentReq;
|
| 604 |
+
typedef xLbxPolyPointReq xLbxPolyRectangleReq;
|
| 605 |
+
typedef xLbxPolyPointReq xLbxPolyArcReq;
|
| 606 |
+
typedef xLbxPolyPointReq xLbxPolyFillRectangleReq;
|
| 607 |
+
typedef xLbxPolyPointReq xLbxPolyFillArcReq;
|
| 608 |
+
|
| 609 |
+
#define sz_xLbxPolyLineReq sz_xLbxPolyPointReq
|
| 610 |
+
#define sz_xLbxPolySegmentReq sz_xLbxPolyPointReq
|
| 611 |
+
#define sz_xLbxPolyRectangleReq sz_xLbxPolyPointReq
|
| 612 |
+
#define sz_xLbxPolyArcReq sz_xLbxPolyPointReq
|
| 613 |
+
#define sz_xLbxPolyFillRectangleReq sz_xLbxPolyPointReq
|
| 614 |
+
#define sz_xLbxPolyFillArc sz_xLbxPolyPointReq
|
| 615 |
+
|
| 616 |
+
typedef struct _LbxFillPoly {
|
| 617 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 618 |
+
CARD8 lbxReqType;
|
| 619 |
+
CARD16 length;
|
| 620 |
+
CARD8 cacheEnts;
|
| 621 |
+
BYTE shape;
|
| 622 |
+
CARD8 padBytes;
|
| 623 |
+
} xLbxFillPolyReq;
|
| 624 |
+
#define sz_xLbxFillPolyReq 7
|
| 625 |
+
|
| 626 |
+
typedef struct _LbxCopyArea {
|
| 627 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 628 |
+
CARD8 lbxReqType;
|
| 629 |
+
CARD16 length;
|
| 630 |
+
CARD8 srcCache; /* source drawable */
|
| 631 |
+
CARD8 cacheEnts; /* dest drawable and gc */
|
| 632 |
+
/* followed by encoded src x, src y, dst x, dst y, width, height */
|
| 633 |
+
} xLbxCopyAreaReq;
|
| 634 |
+
|
| 635 |
+
#define sz_xLbxCopyAreaReq 6
|
| 636 |
+
|
| 637 |
+
typedef struct _LbxCopyPlane {
|
| 638 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 639 |
+
CARD8 lbxReqType;
|
| 640 |
+
CARD16 length;
|
| 641 |
+
CARD32 bitPlane;
|
| 642 |
+
CARD8 srcCache; /* source drawable */
|
| 643 |
+
CARD8 cacheEnts; /* dest drawable and gc */
|
| 644 |
+
/* followed by encoded src x, src y, dst x, dst y, width, height */
|
| 645 |
+
} xLbxCopyPlaneReq;
|
| 646 |
+
|
| 647 |
+
#define sz_xLbxCopyPlaneReq 10
|
| 648 |
+
|
| 649 |
+
typedef struct _LbxPolyText {
|
| 650 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 651 |
+
CARD8 lbxReqType;
|
| 652 |
+
CARD16 length;
|
| 653 |
+
CARD8 cacheEnts;
|
| 654 |
+
/* followed by encoded src x, src y coordinates and text elts */
|
| 655 |
+
} xLbxPolyTextReq;
|
| 656 |
+
|
| 657 |
+
#define sz_xLbxPolyTextReq 5
|
| 658 |
+
|
| 659 |
+
typedef xLbxPolyTextReq xLbxPolyText8Req;
|
| 660 |
+
typedef xLbxPolyTextReq xLbxPolyText16Req;
|
| 661 |
+
|
| 662 |
+
#define sz_xLbxPolyTextReq 5
|
| 663 |
+
#define sz_xLbxPolyText8Req 5
|
| 664 |
+
#define sz_xLbxPolyText16Req 5
|
| 665 |
+
|
| 666 |
+
typedef struct _LbxImageText {
|
| 667 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 668 |
+
CARD8 lbxReqType;
|
| 669 |
+
CARD16 length;
|
| 670 |
+
CARD8 cacheEnts;
|
| 671 |
+
CARD8 nChars;
|
| 672 |
+
/* followed by encoded src x, src y coordinates and string */
|
| 673 |
+
} xLbxImageTextReq;
|
| 674 |
+
|
| 675 |
+
typedef xLbxImageTextReq xLbxImageText8Req;
|
| 676 |
+
typedef xLbxImageTextReq xLbxImageText16Req;
|
| 677 |
+
|
| 678 |
+
#define sz_xLbxImageTextReq 6
|
| 679 |
+
#define sz_xLbxImageText8Req 6
|
| 680 |
+
#define sz_xLbxImageText16Req 6
|
| 681 |
+
|
| 682 |
+
typedef struct {
|
| 683 |
+
CARD8 offset;
|
| 684 |
+
CARD8 diff;
|
| 685 |
+
} xLbxDiffItem;
|
| 686 |
+
#define sz_xLbxDiffItem 2
|
| 687 |
+
|
| 688 |
+
typedef struct {
|
| 689 |
+
BYTE type; /* X_Reply */
|
| 690 |
+
CARD8 nOpts;
|
| 691 |
+
CARD16 sequenceNumber;
|
| 692 |
+
CARD32 length;
|
| 693 |
+
CARD32 optDataStart;
|
| 694 |
+
CARD32 pad0;
|
| 695 |
+
CARD32 pad1;
|
| 696 |
+
CARD32 pad2;
|
| 697 |
+
CARD32 pad3;
|
| 698 |
+
CARD32 pad4;
|
| 699 |
+
} xLbxStartReply;
|
| 700 |
+
#define sz_xLbxStartReply 32
|
| 701 |
+
#define sz_xLbxStartReplyHdr 8
|
| 702 |
+
|
| 703 |
+
typedef struct _LbxQueryExtension {
|
| 704 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 705 |
+
CARD8 lbxReqType; /* always X_LbxQueryExtension */
|
| 706 |
+
CARD16 length;
|
| 707 |
+
CARD32 nbytes;
|
| 708 |
+
} xLbxQueryExtensionReq;
|
| 709 |
+
#define sz_xLbxQueryExtensionReq 8
|
| 710 |
+
|
| 711 |
+
typedef struct _LbxQueryExtensionReply {
|
| 712 |
+
BYTE type; /* X_Reply */
|
| 713 |
+
CARD8 numReqs;
|
| 714 |
+
CARD16 sequenceNumber;
|
| 715 |
+
CARD32 length;
|
| 716 |
+
BOOL present;
|
| 717 |
+
CARD8 major_opcode;
|
| 718 |
+
CARD8 first_event;
|
| 719 |
+
CARD8 first_error;
|
| 720 |
+
CARD32 pad0;
|
| 721 |
+
CARD32 pad1;
|
| 722 |
+
CARD32 pad2;
|
| 723 |
+
CARD32 pad3;
|
| 724 |
+
CARD32 pad4;
|
| 725 |
+
|
| 726 |
+
/* reply & event generating requests */
|
| 727 |
+
} xLbxQueryExtensionReply;
|
| 728 |
+
#define sz_xLbxQueryExtensionReply 32
|
| 729 |
+
|
| 730 |
+
|
| 731 |
+
typedef struct _LbxBeginLargeRequest {
|
| 732 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 733 |
+
CARD8 lbxReqType; /* always X_LbxBeginLargeRequest */
|
| 734 |
+
CARD16 length;
|
| 735 |
+
CARD32 largeReqLength;
|
| 736 |
+
} xLbxBeginLargeRequestReq;
|
| 737 |
+
#define sz_BeginLargeRequestReq 8
|
| 738 |
+
|
| 739 |
+
typedef struct _LbxLargeRequestData {
|
| 740 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 741 |
+
CARD8 lbxReqType; /* always X_LbxLargeRequestData */
|
| 742 |
+
CARD16 length;
|
| 743 |
+
/* followed by LISTofCARD8 data */
|
| 744 |
+
} xLbxLargeRequestDataReq;
|
| 745 |
+
#define sz_LargeRequestDataReq 4
|
| 746 |
+
|
| 747 |
+
typedef struct _LbxEndLargeRequest {
|
| 748 |
+
CARD8 reqType; /* always LbxReqCode */
|
| 749 |
+
CARD8 lbxReqType; /* always X_LbxEndLargeRequest */
|
| 750 |
+
CARD16 length;
|
| 751 |
+
} xLbxEndLargeRequestReq;
|
| 752 |
+
#define sz_EndLargeRequestReq 4
|
| 753 |
+
|
| 754 |
+
|
| 755 |
+
|
| 756 |
+
typedef struct _LbxSwitchEvent {
|
| 757 |
+
BYTE type; /* always eventBase + LbxEvent */
|
| 758 |
+
BYTE lbxType; /* LbxSwitchEvent */
|
| 759 |
+
CARD16 pad;
|
| 760 |
+
CARD32 client;
|
| 761 |
+
} xLbxSwitchEvent;
|
| 762 |
+
#define sz_xLbxSwitchEvent 8
|
| 763 |
+
|
| 764 |
+
typedef struct _LbxCloseEvent {
|
| 765 |
+
BYTE type; /* always eventBase + LbxEvent */
|
| 766 |
+
BYTE lbxType; /* LbxCloseEvent */
|
| 767 |
+
CARD16 sequenceNumber;
|
| 768 |
+
CARD32 client;
|
| 769 |
+
CARD32 pad1;
|
| 770 |
+
CARD32 pad2;
|
| 771 |
+
CARD32 pad3;
|
| 772 |
+
CARD32 pad4;
|
| 773 |
+
CARD32 pad5;
|
| 774 |
+
CARD32 pad6;
|
| 775 |
+
} xLbxCloseEvent;
|
| 776 |
+
#define sz_xLbxCloseEvent 32
|
| 777 |
+
|
| 778 |
+
typedef struct _LbxInvalidateTagEvent {
|
| 779 |
+
BYTE type; /* always eventBase + LbxEvent */
|
| 780 |
+
BYTE lbxType; /* LbxInvalidateTagEvent */
|
| 781 |
+
CARD16 sequenceNumber;
|
| 782 |
+
CARD32 tag;
|
| 783 |
+
CARD32 tagType;
|
| 784 |
+
CARD32 pad1;
|
| 785 |
+
CARD32 pad2;
|
| 786 |
+
CARD32 pad3;
|
| 787 |
+
CARD32 pad4;
|
| 788 |
+
CARD32 pad5;
|
| 789 |
+
} xLbxInvalidateTagEvent;
|
| 790 |
+
#define sz_xLbxInvalidateTagEvent 32
|
| 791 |
+
|
| 792 |
+
typedef struct _LbxSendTagDataEvent {
|
| 793 |
+
BYTE type; /* always eventBase + LbxEvent */
|
| 794 |
+
BYTE lbxType; /* LbxSendTagDataEvent */
|
| 795 |
+
CARD16 sequenceNumber;
|
| 796 |
+
CARD32 tag;
|
| 797 |
+
CARD32 tagType;
|
| 798 |
+
CARD32 pad1;
|
| 799 |
+
CARD32 pad2;
|
| 800 |
+
CARD32 pad3;
|
| 801 |
+
CARD32 pad4;
|
| 802 |
+
CARD32 pad5;
|
| 803 |
+
} xLbxSendTagDataEvent;
|
| 804 |
+
#define sz_xLbxSendTagDataEvent 32
|
| 805 |
+
|
| 806 |
+
typedef struct _LbxListenToOneEvent {
|
| 807 |
+
BYTE type; /* always eventBase + LbxEvent */
|
| 808 |
+
BYTE lbxType; /* LbxListenToOneEvent */
|
| 809 |
+
CARD16 sequenceNumber;
|
| 810 |
+
CARD32 client;
|
| 811 |
+
CARD32 pad1;
|
| 812 |
+
CARD32 pad2;
|
| 813 |
+
CARD32 pad3;
|
| 814 |
+
CARD32 pad4;
|
| 815 |
+
CARD32 pad5;
|
| 816 |
+
CARD32 pad6;
|
| 817 |
+
} xLbxListenToOneEvent;
|
| 818 |
+
#define sz_xLbxListenToOneEvent 32
|
| 819 |
+
|
| 820 |
+
typedef struct _LbxListenToAllEvent {
|
| 821 |
+
BYTE type; /* always eventBase + LbxEvent */
|
| 822 |
+
BYTE lbxType; /* LbxListenToAllEvent */
|
| 823 |
+
CARD16 sequenceNumber;
|
| 824 |
+
CARD32 pad1;
|
| 825 |
+
CARD32 pad2;
|
| 826 |
+
CARD32 pad3;
|
| 827 |
+
CARD32 pad4;
|
| 828 |
+
CARD32 pad5;
|
| 829 |
+
CARD32 pad6;
|
| 830 |
+
CARD32 pad7;
|
| 831 |
+
} xLbxListenToAllEvent;
|
| 832 |
+
#define sz_xLbxListenToOneEvent 32
|
| 833 |
+
|
| 834 |
+
typedef struct _LbxReleaseCmapEvent {
|
| 835 |
+
BYTE type; /* always eventBase + LbxEvent */
|
| 836 |
+
BYTE lbxType; /* LbxReleaseCmapEvent */
|
| 837 |
+
CARD16 sequenceNumber;
|
| 838 |
+
Colormap colormap;
|
| 839 |
+
CARD32 pad1;
|
| 840 |
+
CARD32 pad2;
|
| 841 |
+
CARD32 pad3;
|
| 842 |
+
CARD32 pad4;
|
| 843 |
+
CARD32 pad5;
|
| 844 |
+
CARD32 pad6;
|
| 845 |
+
} xLbxReleaseCmapEvent;
|
| 846 |
+
#define sz_xLbxReleaseCmapEvent 32
|
| 847 |
+
|
| 848 |
+
|
| 849 |
+
typedef struct _LbxFreeCellsEvent {
|
| 850 |
+
BYTE type; /* always eventBase + LbxEvent */
|
| 851 |
+
BYTE lbxType; /* LbxFreeCellsEvent */
|
| 852 |
+
CARD16 sequenceNumber;
|
| 853 |
+
Colormap colormap;
|
| 854 |
+
CARD32 pixelStart;
|
| 855 |
+
CARD32 pixelEnd;
|
| 856 |
+
CARD32 pad1;
|
| 857 |
+
CARD32 pad2;
|
| 858 |
+
CARD32 pad3;
|
| 859 |
+
CARD32 pad4;
|
| 860 |
+
} xLbxFreeCellsEvent;
|
| 861 |
+
#define sz_xLbxFreeCellsEvent 32
|
| 862 |
+
|
| 863 |
+
|
| 864 |
+
/*
|
| 865 |
+
* squished X event sizes. If these change, be sure to update lbxquish.c
|
| 866 |
+
* and unsquish.c appropriately
|
| 867 |
+
*
|
| 868 |
+
* lbxsz_* is the padded squished length
|
| 869 |
+
* lbxupsz_* is the unpadded squished length
|
| 870 |
+
*/
|
| 871 |
+
|
| 872 |
+
#define lbxsz_KeyButtonEvent 32
|
| 873 |
+
#define lbxupsz_KeyButtonEvent 31
|
| 874 |
+
|
| 875 |
+
#define lbxsz_EnterLeaveEvent 32
|
| 876 |
+
#define lbxupsz_EnterLeaveEvent 32
|
| 877 |
+
|
| 878 |
+
#define lbxsz_FocusEvent 12
|
| 879 |
+
#define lbxupsz_FocusEvent 9
|
| 880 |
+
|
| 881 |
+
#define lbxsz_KeymapEvent 32
|
| 882 |
+
#define lbxupsz_KeymapEvent 32
|
| 883 |
+
|
| 884 |
+
#define lbxsz_ExposeEvent 20
|
| 885 |
+
#define lbxupsz_ExposeEvent 18
|
| 886 |
+
|
| 887 |
+
#define lbxsz_GfxExposeEvent 24
|
| 888 |
+
#define lbxupsz_GfxExposeEvent 21
|
| 889 |
+
|
| 890 |
+
#define lbxsz_NoExposeEvent 12
|
| 891 |
+
#define lbxupsz_NoExposeEvent 11
|
| 892 |
+
|
| 893 |
+
#define lbxsz_VisibilityEvent 12
|
| 894 |
+
#define lbxupsz_VisibilityEvent 9
|
| 895 |
+
|
| 896 |
+
#define lbxsz_CreateNotifyEvent 24
|
| 897 |
+
#define lbxupsz_CreateNotifyEvent 23
|
| 898 |
+
|
| 899 |
+
#define lbxsz_DestroyNotifyEvent 12
|
| 900 |
+
#define lbxupsz_DestroyNotifyEvent 12
|
| 901 |
+
|
| 902 |
+
#define lbxsz_UnmapNotifyEvent 16
|
| 903 |
+
#define lbxupsz_UnmapNotifyEvent 13
|
| 904 |
+
|
| 905 |
+
#define lbxsz_MapNotifyEvent 16
|
| 906 |
+
#define lbxupsz_MapNotifyEvent 13
|
| 907 |
+
|
| 908 |
+
#define lbxsz_MapRequestEvent 12
|
| 909 |
+
#define lbxupsz_MapRequestEvent 12
|
| 910 |
+
|
| 911 |
+
#define lbxsz_ReparentEvent 24
|
| 912 |
+
#define lbxupsz_ReparentEvent 21
|
| 913 |
+
|
| 914 |
+
#define lbxsz_ConfigureNotifyEvent 28
|
| 915 |
+
#define lbxupsz_ConfigureNotifyEvent 27
|
| 916 |
+
|
| 917 |
+
#define lbxsz_ConfigureRequestEvent 28
|
| 918 |
+
#define lbxupsz_ConfigureRequestEvent 28
|
| 919 |
+
|
| 920 |
+
#define lbxsz_GravityEvent 16
|
| 921 |
+
#define lbxupsz_GravityEvent 16
|
| 922 |
+
|
| 923 |
+
#define lbxsz_ResizeRequestEvent 12
|
| 924 |
+
#define lbxupsz_ResizeRequestEvent 12
|
| 925 |
+
|
| 926 |
+
#define lbxsz_CirculateEvent 20
|
| 927 |
+
#define lbxupsz_CirculateEvent 17
|
| 928 |
+
|
| 929 |
+
#define lbxsz_PropertyEvent 20
|
| 930 |
+
#define lbxupsz_PropertyEvent 17
|
| 931 |
+
|
| 932 |
+
#define lbxsz_SelectionClearEvent 16
|
| 933 |
+
#define lbxupsz_SelectionClearEvent 16
|
| 934 |
+
|
| 935 |
+
#define lbxsz_SelectionRequestEvent 28
|
| 936 |
+
#define lbxupsz_SelectionRequestEvent 28
|
| 937 |
+
|
| 938 |
+
#define lbxsz_SelectionNotifyEvent 24
|
| 939 |
+
#define lbxupsz_SelectionNotifyEvent 24
|
| 940 |
+
|
| 941 |
+
#define lbxsz_ColormapEvent 16
|
| 942 |
+
#define lbxupsz_ColormapEvent 14
|
| 943 |
+
|
| 944 |
+
#define lbxsz_MappingNotifyEvent 8
|
| 945 |
+
#define lbxupsz_MappingNotifyEvent 7
|
| 946 |
+
|
| 947 |
+
#define lbxsz_ClientMessageEvent 32
|
| 948 |
+
#define lbxupsz_ClientMessageEvent 32
|
| 949 |
+
|
| 950 |
+
#define lbxsz_UnknownEvent 32
|
| 951 |
+
|
| 952 |
+
#ifdef DEBUG
|
| 953 |
+
|
| 954 |
+
#define DBG_SWITCH 0x00000001
|
| 955 |
+
#define DBG_CLOSE 0x00000002
|
| 956 |
+
#define DBG_IO 0x00000004
|
| 957 |
+
#define DBG_READ_REQ 0x00000008
|
| 958 |
+
#define DBG_LEN 0x00000010
|
| 959 |
+
#define DBG_BLOCK 0x00000020
|
| 960 |
+
#define DBG_CLIENT 0x00000040
|
| 961 |
+
#define DBG_DELTA 0x00000080
|
| 962 |
+
#endif
|
| 963 |
+
/*
|
| 964 |
+
* Cancel the previous redefinition of the basic types, thus restoring their
|
| 965 |
+
* X.h definitions.
|
| 966 |
+
*/
|
| 967 |
+
|
| 968 |
+
#undef XID
|
| 969 |
+
#undef Atom
|
| 970 |
+
#undef Colormap
|
| 971 |
+
#undef Drawable
|
| 972 |
+
#undef VisualID
|
| 973 |
+
#undef Window
|
| 974 |
+
|
| 975 |
+
#endif /* _LBXPROTO_H_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/mitmiscconst.h
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/************************************************************
|
| 2 |
+
|
| 3 |
+
Copyright 1989, 1998 The Open Group
|
| 4 |
+
|
| 5 |
+
Permission to use, copy, modify, distribute, and sell this software and its
|
| 6 |
+
documentation for any purpose is hereby granted without fee, provided that
|
| 7 |
+
the above copyright notice appear in all copies and that both that
|
| 8 |
+
copyright notice and this permission notice appear in supporting
|
| 9 |
+
documentation.
|
| 10 |
+
|
| 11 |
+
The above copyright notice and this permission notice shall be included in
|
| 12 |
+
all copies or substantial portions of the Software.
|
| 13 |
+
|
| 14 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 15 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 16 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 17 |
+
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
| 18 |
+
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 19 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 20 |
+
|
| 21 |
+
Except as contained in this notice, the name of The Open Group shall not be
|
| 22 |
+
used in advertising or otherwise to promote the sale, use or other dealings
|
| 23 |
+
in this Software without prior written authorization from The Open Group.
|
| 24 |
+
|
| 25 |
+
********************************************************/
|
| 26 |
+
|
| 27 |
+
/* RANDOM CRUFT! THIS HAS NO OFFICIAL X CONSORTIUM OR X PROJECT TEAM BLESSING */
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
#ifndef _MITMISCCONST_H_
|
| 31 |
+
#define _MITMISCCONST_H_
|
| 32 |
+
|
| 33 |
+
#define MITMiscNumberEvents 0
|
| 34 |
+
#define MITMiscNumberErrors 0
|
| 35 |
+
|
| 36 |
+
#define MITMISCNAME "MIT-SUNDRY-NONSTANDARD"
|
| 37 |
+
|
| 38 |
+
#endif
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/mitmiscproto.h
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/************************************************************
|
| 2 |
+
|
| 3 |
+
Copyright 1989, 1998 The Open Group
|
| 4 |
+
|
| 5 |
+
Permission to use, copy, modify, distribute, and sell this software and its
|
| 6 |
+
documentation for any purpose is hereby granted without fee, provided that
|
| 7 |
+
the above copyright notice appear in all copies and that both that
|
| 8 |
+
copyright notice and this permission notice appear in supporting
|
| 9 |
+
documentation.
|
| 10 |
+
|
| 11 |
+
The above copyright notice and this permission notice shall be included in
|
| 12 |
+
all copies or substantial portions of the Software.
|
| 13 |
+
|
| 14 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 15 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 16 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 17 |
+
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
| 18 |
+
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 19 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 20 |
+
|
| 21 |
+
Except as contained in this notice, the name of The Open Group shall not be
|
| 22 |
+
used in advertising or otherwise to promote the sale, use or other dealings
|
| 23 |
+
in this Software without prior written authorization from The Open Group.
|
| 24 |
+
|
| 25 |
+
********************************************************/
|
| 26 |
+
|
| 27 |
+
/* RANDOM CRUFT! THIS HAS NO OFFICIAL X CONSORTIUM OR X PROJECT TEAM BLESSING */
|
| 28 |
+
|
| 29 |
+
#ifndef _MITMISCPROTO_H_
|
| 30 |
+
#define _MITMISCPROTO_H_
|
| 31 |
+
|
| 32 |
+
#include <X11/extensions/mitmiscconst.h>
|
| 33 |
+
|
| 34 |
+
#define X_MITSetBugMode 0
|
| 35 |
+
#define X_MITGetBugMode 1
|
| 36 |
+
|
| 37 |
+
typedef struct _SetBugMode {
|
| 38 |
+
CARD8 reqType; /* always MITReqCode */
|
| 39 |
+
CARD8 mitReqType; /* always X_MITSetBugMode */
|
| 40 |
+
CARD16 length;
|
| 41 |
+
BOOL onOff;
|
| 42 |
+
BYTE pad0;
|
| 43 |
+
CARD16 pad1;
|
| 44 |
+
} xMITSetBugModeReq;
|
| 45 |
+
#define sz_xMITSetBugModeReq 8
|
| 46 |
+
|
| 47 |
+
typedef struct _GetBugMode {
|
| 48 |
+
CARD8 reqType; /* always MITReqCode */
|
| 49 |
+
CARD8 mitReqType; /* always X_MITGetBugMode */
|
| 50 |
+
CARD16 length;
|
| 51 |
+
} xMITGetBugModeReq;
|
| 52 |
+
#define sz_xMITGetBugModeReq 4
|
| 53 |
+
|
| 54 |
+
typedef struct {
|
| 55 |
+
BYTE type; /* X_Reply */
|
| 56 |
+
BOOL onOff;
|
| 57 |
+
CARD16 sequenceNumber;
|
| 58 |
+
CARD32 length;
|
| 59 |
+
CARD32 pad0;
|
| 60 |
+
CARD32 pad1;
|
| 61 |
+
CARD32 pad2;
|
| 62 |
+
CARD32 pad3;
|
| 63 |
+
CARD32 pad4;
|
| 64 |
+
CARD32 pad5;
|
| 65 |
+
} xMITGetBugModeReply;
|
| 66 |
+
#define sz_xMITGetBugModeReply 32
|
| 67 |
+
|
| 68 |
+
#endif /* _MITMISCPROTO_H_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/multibufconst.h
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
Copyright 1989, 1998 The Open Group
|
| 3 |
+
|
| 4 |
+
Permission to use, copy, modify, distribute, and sell this software and its
|
| 5 |
+
documentation for any purpose is hereby granted without fee, provided that
|
| 6 |
+
the above copyright notice appear in all copies and that both that
|
| 7 |
+
copyright notice and this permission notice appear in supporting
|
| 8 |
+
documentation.
|
| 9 |
+
|
| 10 |
+
The above copyright notice and this permission notice shall be included in
|
| 11 |
+
all copies or substantial portions of the Software.
|
| 12 |
+
|
| 13 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 14 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 15 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 16 |
+
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
| 17 |
+
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 18 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 19 |
+
|
| 20 |
+
Except as contained in this notice, the name of The Open Group shall not be
|
| 21 |
+
used in advertising or otherwise to promote the sale, use or other dealings
|
| 22 |
+
in this Software without prior written authorization from The Open Group.
|
| 23 |
+
*/
|
| 24 |
+
|
| 25 |
+
#ifndef _MULTIBUFCONST_H_
|
| 26 |
+
#define _MULTIBUFCONST_H_
|
| 27 |
+
|
| 28 |
+
#define MULTIBUFFER_PROTOCOL_NAME "Multi-Buffering"
|
| 29 |
+
|
| 30 |
+
#define MULTIBUFFER_MAJOR_VERSION 1 /* current version numbers */
|
| 31 |
+
#define MULTIBUFFER_MINOR_VERSION 1 /* has ClearImageBufferArea */
|
| 32 |
+
|
| 33 |
+
/*
|
| 34 |
+
* update_action field
|
| 35 |
+
*/
|
| 36 |
+
#define MultibufferUpdateActionUndefined 0
|
| 37 |
+
#define MultibufferUpdateActionBackground 1
|
| 38 |
+
#define MultibufferUpdateActionUntouched 2
|
| 39 |
+
#define MultibufferUpdateActionCopied 3
|
| 40 |
+
|
| 41 |
+
/*
|
| 42 |
+
* update_hint field
|
| 43 |
+
*/
|
| 44 |
+
#define MultibufferUpdateHintFrequent 0
|
| 45 |
+
#define MultibufferUpdateHintIntermittent 1
|
| 46 |
+
#define MultibufferUpdateHintStatic 2
|
| 47 |
+
|
| 48 |
+
/*
|
| 49 |
+
* valuemask fields
|
| 50 |
+
*/
|
| 51 |
+
#define MultibufferWindowUpdateHint (1L << 0)
|
| 52 |
+
#define MultibufferBufferEventMask (1L << 0)
|
| 53 |
+
|
| 54 |
+
/*
|
| 55 |
+
* mono vs. stereo and left vs. right
|
| 56 |
+
*/
|
| 57 |
+
#define MultibufferModeMono 0
|
| 58 |
+
#define MultibufferModeStereo 1
|
| 59 |
+
#define MultibufferSideMono 0
|
| 60 |
+
#define MultibufferSideLeft 1
|
| 61 |
+
#define MultibufferSideRight 2
|
| 62 |
+
|
| 63 |
+
/*
|
| 64 |
+
* clobber state
|
| 65 |
+
*/
|
| 66 |
+
#define MultibufferUnclobbered 0
|
| 67 |
+
#define MultibufferPartiallyClobbered 1
|
| 68 |
+
#define MultibufferFullyClobbered 2
|
| 69 |
+
|
| 70 |
+
/*
|
| 71 |
+
* event stuff
|
| 72 |
+
*/
|
| 73 |
+
#define MultibufferClobberNotifyMask 0x02000000
|
| 74 |
+
#define MultibufferUpdateNotifyMask 0x04000000
|
| 75 |
+
|
| 76 |
+
#define MultibufferClobberNotify 0
|
| 77 |
+
#define MultibufferUpdateNotify 1
|
| 78 |
+
#define MultibufferNumberEvents (MultibufferUpdateNotify + 1)
|
| 79 |
+
|
| 80 |
+
#define MultibufferBadBuffer 0
|
| 81 |
+
#define MultibufferNumberErrors (MultibufferBadBuffer + 1)
|
| 82 |
+
|
| 83 |
+
#endif /* _MULTIBUFCONST_H_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/multibufproto.h
ADDED
|
@@ -0,0 +1,295 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
Copyright 1989, 1998 The Open Group
|
| 3 |
+
|
| 4 |
+
Permission to use, copy, modify, distribute, and sell this software and its
|
| 5 |
+
documentation for any purpose is hereby granted without fee, provided that
|
| 6 |
+
the above copyright notice appear in all copies and that both that
|
| 7 |
+
copyright notice and this permission notice appear in supporting
|
| 8 |
+
documentation.
|
| 9 |
+
|
| 10 |
+
The above copyright notice and this permission notice shall be included in
|
| 11 |
+
all copies or substantial portions of the Software.
|
| 12 |
+
|
| 13 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 14 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 15 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 16 |
+
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
| 17 |
+
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 18 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 19 |
+
|
| 20 |
+
Except as contained in this notice, the name of The Open Group shall not be
|
| 21 |
+
used in advertising or otherwise to promote the sale, use or other dealings
|
| 22 |
+
in this Software without prior written authorization from The Open Group.
|
| 23 |
+
*/
|
| 24 |
+
|
| 25 |
+
#ifndef _MULTIBUFPROTO_H_
|
| 26 |
+
#define _MULTIBUFPROTO_H_
|
| 27 |
+
|
| 28 |
+
#include <X11/extensions/multibufconst.h>
|
| 29 |
+
|
| 30 |
+
/*
|
| 31 |
+
* Protocol requests constants and alignment values
|
| 32 |
+
*/
|
| 33 |
+
|
| 34 |
+
#define Window CARD32
|
| 35 |
+
#define Drawable CARD32
|
| 36 |
+
#define VisualID CARD32
|
| 37 |
+
#define Multibuffer CARD32
|
| 38 |
+
|
| 39 |
+
#define X_MbufGetBufferVersion 0
|
| 40 |
+
#define X_MbufCreateImageBuffers 1
|
| 41 |
+
#define X_MbufDestroyImageBuffers 2
|
| 42 |
+
#define X_MbufDisplayImageBuffers 3
|
| 43 |
+
#define X_MbufSetMBufferAttributes 4
|
| 44 |
+
#define X_MbufGetMBufferAttributes 5
|
| 45 |
+
#define X_MbufSetBufferAttributes 6
|
| 46 |
+
#define X_MbufGetBufferAttributes 7
|
| 47 |
+
#define X_MbufGetBufferInfo 8
|
| 48 |
+
#define X_MbufCreateStereoWindow 9
|
| 49 |
+
#define X_MbufClearImageBufferArea 10
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
typedef struct xMbufBufferInfo {
|
| 53 |
+
CARD32 visualID; /* associated visual */
|
| 54 |
+
CARD16 maxBuffers; /* maximum supported buffers */
|
| 55 |
+
CARD8 depth; /* depth of visual (redundant) */
|
| 56 |
+
CARD8 unused;
|
| 57 |
+
} xMbufBufferInfo;
|
| 58 |
+
#define sz_xMbufBufferInfo 8
|
| 59 |
+
|
| 60 |
+
typedef struct {
|
| 61 |
+
BYTE type;
|
| 62 |
+
BYTE unused;
|
| 63 |
+
CARD16 sequenceNumber;
|
| 64 |
+
CARD32 buffer; /* affected buffer */
|
| 65 |
+
BYTE state; /* current status */
|
| 66 |
+
CARD8 unused1;
|
| 67 |
+
CARD16 unused2;
|
| 68 |
+
CARD32 unused3;
|
| 69 |
+
CARD32 unused4;
|
| 70 |
+
CARD32 unused5;
|
| 71 |
+
CARD32 unused6;
|
| 72 |
+
CARD32 unused7;
|
| 73 |
+
} xMbufClobberNotifyEvent;
|
| 74 |
+
|
| 75 |
+
typedef struct {
|
| 76 |
+
BYTE type;
|
| 77 |
+
BYTE unused;
|
| 78 |
+
CARD16 sequenceNumber;
|
| 79 |
+
CARD32 buffer; /* affected buffer */
|
| 80 |
+
CARD32 timeStamp; /* update time */
|
| 81 |
+
CARD32 unused1;
|
| 82 |
+
CARD32 unused2;
|
| 83 |
+
CARD32 unused3;
|
| 84 |
+
CARD32 unused4;
|
| 85 |
+
CARD32 unused5;
|
| 86 |
+
CARD32 unused6;
|
| 87 |
+
} xMbufUpdateNotifyEvent;
|
| 88 |
+
|
| 89 |
+
typedef struct {
|
| 90 |
+
CARD8 reqType; /* always codes->major_opcode */
|
| 91 |
+
CARD8 mbufReqType; /* always X_MbufGetBufferVersion */
|
| 92 |
+
CARD16 length;
|
| 93 |
+
} xMbufGetBufferVersionReq;
|
| 94 |
+
#define sz_xMbufGetBufferVersionReq 4
|
| 95 |
+
|
| 96 |
+
typedef struct {
|
| 97 |
+
BYTE type; /* X_Reply */
|
| 98 |
+
CARD8 unused; /* not used */
|
| 99 |
+
CARD16 sequenceNumber;
|
| 100 |
+
CARD32 length;
|
| 101 |
+
CARD8 majorVersion; /* major version of Multi-Buffering protocol */
|
| 102 |
+
CARD8 minorVersion; /* minor version of Multi-Buffering protocol */
|
| 103 |
+
CARD16 pad1;
|
| 104 |
+
CARD32 pad2;
|
| 105 |
+
CARD32 pad3;
|
| 106 |
+
CARD32 pad4;
|
| 107 |
+
CARD32 pad5;
|
| 108 |
+
CARD32 pad6;
|
| 109 |
+
} xMbufGetBufferVersionReply;
|
| 110 |
+
#define sz_xMbufGetBufferVersionReply 32
|
| 111 |
+
|
| 112 |
+
typedef struct {
|
| 113 |
+
CARD8 reqType; /* always codes->major_opcode */
|
| 114 |
+
CARD8 mbufReqType; /* always X_MbufCreateImageBuffers */
|
| 115 |
+
CARD16 length;
|
| 116 |
+
CARD32 window; /* associated window */
|
| 117 |
+
CARD8 updateAction; /* action at update */
|
| 118 |
+
CARD8 updateHint; /* hint as to frequency of updates */
|
| 119 |
+
CARD16 unused;
|
| 120 |
+
} xMbufCreateImageBuffersReq; /* followed by buffer ids */
|
| 121 |
+
#define sz_xMbufCreateImageBuffersReq 12
|
| 122 |
+
|
| 123 |
+
typedef struct {
|
| 124 |
+
BYTE type; /* X_Reply */
|
| 125 |
+
CARD8 unused; /* not used */
|
| 126 |
+
CARD16 sequenceNumber;
|
| 127 |
+
CARD32 length;
|
| 128 |
+
CARD16 numberBuffer; /* number successfully allocated */
|
| 129 |
+
CARD16 unused1;
|
| 130 |
+
CARD32 unused2;
|
| 131 |
+
CARD32 unused3;
|
| 132 |
+
CARD32 unused4;
|
| 133 |
+
CARD32 unused5;
|
| 134 |
+
CARD32 unused6;
|
| 135 |
+
} xMbufCreateImageBuffersReply;
|
| 136 |
+
#define sz_xMbufCreateImageBuffersReply 32
|
| 137 |
+
|
| 138 |
+
typedef struct {
|
| 139 |
+
CARD8 reqType; /* always codes->major_opcode */
|
| 140 |
+
CARD8 mbufReqType; /* always X_MbufDestroyImageBuffers */
|
| 141 |
+
CARD16 length;
|
| 142 |
+
CARD32 window; /* associated window */
|
| 143 |
+
} xMbufDestroyImageBuffersReq;
|
| 144 |
+
#define sz_xMbufDestroyImageBuffersReq 8
|
| 145 |
+
|
| 146 |
+
typedef struct {
|
| 147 |
+
CARD8 reqType; /* always codes->major_opcode */
|
| 148 |
+
CARD8 mbufReqType; /* always X_MbufDisplayImageBuffers */
|
| 149 |
+
CARD16 length;
|
| 150 |
+
CARD16 minDelay; /* minimum time between last update and now */
|
| 151 |
+
CARD16 maxDelay; /* maximum time between last update and now */
|
| 152 |
+
} xMbufDisplayImageBuffersReq; /* followed by list of buffers */
|
| 153 |
+
#define sz_xMbufDisplayImageBuffersReq 8
|
| 154 |
+
|
| 155 |
+
typedef struct {
|
| 156 |
+
CARD8 reqType; /* always codes->major_opcode */
|
| 157 |
+
CARD8 mbufReqType; /* always X_MbufSetMBufferAttributes */
|
| 158 |
+
CARD16 length;
|
| 159 |
+
CARD32 window; /* associated window */
|
| 160 |
+
CARD32 valueMask; /* modified entries */
|
| 161 |
+
} xMbufSetMBufferAttributesReq; /* followed by values */
|
| 162 |
+
#define sz_xMbufSetMBufferAttributesReq 12
|
| 163 |
+
|
| 164 |
+
typedef struct {
|
| 165 |
+
CARD8 reqType; /* always codes->major_opcode */
|
| 166 |
+
CARD8 mbufReqType; /* always X_MbufGetMBufferAttributes */
|
| 167 |
+
CARD16 length;
|
| 168 |
+
CARD32 window; /* associated window */
|
| 169 |
+
} xMbufGetMBufferAttributesReq;
|
| 170 |
+
#define sz_xMbufGetMBufferAttributesReq 8
|
| 171 |
+
|
| 172 |
+
typedef struct {
|
| 173 |
+
BYTE type; /* X_Reply */
|
| 174 |
+
CARD8 unused; /* not used */
|
| 175 |
+
CARD16 sequenceNumber;
|
| 176 |
+
CARD32 length;
|
| 177 |
+
CARD16 displayedBuffer; /* currently visible buffer */
|
| 178 |
+
CARD8 updateAction;
|
| 179 |
+
CARD8 updateHint;
|
| 180 |
+
CARD8 windowMode;
|
| 181 |
+
CARD8 unused0;
|
| 182 |
+
CARD16 unused1;
|
| 183 |
+
CARD32 unused2;
|
| 184 |
+
CARD32 unused3;
|
| 185 |
+
CARD32 unused4;
|
| 186 |
+
CARD32 unused5;
|
| 187 |
+
} xMbufGetMBufferAttributesReply;
|
| 188 |
+
#define sz_xMbufGetMBufferAttributesReply 32
|
| 189 |
+
|
| 190 |
+
typedef struct {
|
| 191 |
+
CARD8 reqType; /* always codes->major_opcode */
|
| 192 |
+
CARD8 mbufReqType; /* always X_MbufSetBufferAttributes */
|
| 193 |
+
CARD16 length;
|
| 194 |
+
CARD32 buffer;
|
| 195 |
+
CARD32 valueMask;
|
| 196 |
+
} xMbufSetBufferAttributesReq; /* followed by values */
|
| 197 |
+
#define sz_xMbufSetBufferAttributesReq 12
|
| 198 |
+
|
| 199 |
+
typedef struct {
|
| 200 |
+
CARD8 reqType; /* always codes->major_opcode */
|
| 201 |
+
CARD8 mbufReqType; /* always X_MbufGetBufferAttributes */
|
| 202 |
+
CARD16 length;
|
| 203 |
+
CARD32 buffer;
|
| 204 |
+
} xMbufGetBufferAttributesReq;
|
| 205 |
+
#define sz_xMbufGetBufferAttributesReq 8
|
| 206 |
+
|
| 207 |
+
typedef struct {
|
| 208 |
+
BYTE type; /* X_Reply */
|
| 209 |
+
CARD8 unused; /* not used */
|
| 210 |
+
CARD16 sequenceNumber;
|
| 211 |
+
CARD32 length;
|
| 212 |
+
CARD32 window;
|
| 213 |
+
CARD32 eventMask;
|
| 214 |
+
CARD16 bufferIndex;
|
| 215 |
+
CARD8 side;
|
| 216 |
+
CARD8 unused0;
|
| 217 |
+
CARD32 unused1;
|
| 218 |
+
CARD32 unused2;
|
| 219 |
+
CARD32 unused3;
|
| 220 |
+
} xMbufGetBufferAttributesReply;
|
| 221 |
+
#define sz_xMbufGetBufferAttributesReply 32
|
| 222 |
+
|
| 223 |
+
typedef struct {
|
| 224 |
+
CARD8 reqType; /* always codes->major_opcode */
|
| 225 |
+
CARD8 mbufReqType; /* always X_MbufGetBufferInfo */
|
| 226 |
+
CARD16 length;
|
| 227 |
+
Drawable drawable;
|
| 228 |
+
} xMbufGetBufferInfoReq;
|
| 229 |
+
#define sz_xMbufGetBufferInfoReq 8
|
| 230 |
+
|
| 231 |
+
typedef struct {
|
| 232 |
+
BYTE type; /* X_Reply */
|
| 233 |
+
CARD8 unused; /* not used */
|
| 234 |
+
CARD16 sequenceNumber;
|
| 235 |
+
CARD32 length;
|
| 236 |
+
CARD16 normalInfo;
|
| 237 |
+
CARD16 stereoInfo;
|
| 238 |
+
CARD32 unused1;
|
| 239 |
+
CARD32 unused2;
|
| 240 |
+
CARD32 unused3;
|
| 241 |
+
CARD32 unused4;
|
| 242 |
+
CARD32 unused5;
|
| 243 |
+
} xMbufGetBufferInfoReply; /* followed by buffer infos */
|
| 244 |
+
#define sz_xMbufGetBufferInfoReply 32
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
typedef struct {
|
| 248 |
+
CARD8 reqType; /* always codes->major_opcode */
|
| 249 |
+
CARD8 mbufReqType; /* always X_MbufCreateStereoWindow */
|
| 250 |
+
CARD16 length;
|
| 251 |
+
CARD8 unused0;
|
| 252 |
+
CARD8 unused1;
|
| 253 |
+
CARD8 unused2;
|
| 254 |
+
CARD8 depth;
|
| 255 |
+
Window wid;
|
| 256 |
+
Window parent;
|
| 257 |
+
Multibuffer left; /* associated buffers */
|
| 258 |
+
Multibuffer right;
|
| 259 |
+
INT16 x;
|
| 260 |
+
INT16 y;
|
| 261 |
+
CARD16 width;
|
| 262 |
+
CARD16 height;
|
| 263 |
+
CARD16 borderWidth;
|
| 264 |
+
#if defined(__cplusplus) || defined(c_plusplus)
|
| 265 |
+
CARD16 c_class;
|
| 266 |
+
#else
|
| 267 |
+
CARD16 class;
|
| 268 |
+
#endif
|
| 269 |
+
VisualID visual;
|
| 270 |
+
CARD32 mask;
|
| 271 |
+
} xMbufCreateStereoWindowReq; /* followed by value list */
|
| 272 |
+
#define sz_xMbufCreateStereoWindowReq 44
|
| 273 |
+
|
| 274 |
+
typedef struct {
|
| 275 |
+
CARD8 reqType; /* always codes->major_opcode */
|
| 276 |
+
CARD8 mbufReqType; /* always X_MbufClearImageBufferArea */
|
| 277 |
+
CARD16 length;
|
| 278 |
+
Multibuffer buffer;
|
| 279 |
+
INT16 x;
|
| 280 |
+
INT16 y;
|
| 281 |
+
CARD16 width;
|
| 282 |
+
CARD16 height;
|
| 283 |
+
CARD8 unused0;
|
| 284 |
+
CARD8 unused1;
|
| 285 |
+
CARD8 unused2;
|
| 286 |
+
BOOL exposures;
|
| 287 |
+
} xMbufClearImageBufferAreaReq;
|
| 288 |
+
#define sz_xMbufClearImageBufferAreaReq 20
|
| 289 |
+
|
| 290 |
+
#undef Window
|
| 291 |
+
#undef Drawable
|
| 292 |
+
#undef VisualID
|
| 293 |
+
#undef Multibuffer
|
| 294 |
+
|
| 295 |
+
#endif /* _MULTIBUFPROTO_H_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/panoramiXproto.h
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*****************************************************************
|
| 2 |
+
Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts.
|
| 3 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 4 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 5 |
+
in the Software without restriction, including without limitation the rights
|
| 6 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 7 |
+
copies of the Software.
|
| 8 |
+
|
| 9 |
+
The above copyright notice and this permission notice shall be included in
|
| 10 |
+
all copies or substantial portions of the Software.
|
| 11 |
+
|
| 12 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 13 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 14 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
| 15 |
+
DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
|
| 16 |
+
BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
|
| 17 |
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
| 18 |
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 19 |
+
|
| 20 |
+
Except as contained in this notice, the name of Digital Equipment Corporation
|
| 21 |
+
shall not be used in advertising or otherwise to promote the sale, use or other
|
| 22 |
+
dealings in this Software without prior written authorization from Digital
|
| 23 |
+
Equipment Corporation.
|
| 24 |
+
******************************************************************/
|
| 25 |
+
|
| 26 |
+
/* THIS IS NOT AN X PROJECT TEAM SPECIFICATION */
|
| 27 |
+
|
| 28 |
+
#ifndef _PANORAMIXPROTO_H_
|
| 29 |
+
#define _PANORAMIXPROTO_H_
|
| 30 |
+
|
| 31 |
+
#define PANORAMIX_MAJOR_VERSION 1 /* current version number */
|
| 32 |
+
#define PANORAMIX_MINOR_VERSION 1
|
| 33 |
+
|
| 34 |
+
#define PANORAMIX_PROTOCOL_NAME "XINERAMA"
|
| 35 |
+
|
| 36 |
+
#define X_PanoramiXQueryVersion 0
|
| 37 |
+
#define X_PanoramiXGetState 1
|
| 38 |
+
#define X_PanoramiXGetScreenCount 2
|
| 39 |
+
#define X_PanoramiXGetScreenSize 3
|
| 40 |
+
|
| 41 |
+
#define X_XineramaIsActive 4
|
| 42 |
+
#define X_XineramaQueryScreens 5
|
| 43 |
+
|
| 44 |
+
typedef struct _PanoramiXQueryVersion {
|
| 45 |
+
CARD8 reqType; /* always PanoramiXReqCode */
|
| 46 |
+
CARD8 panoramiXReqType; /* always X_PanoramiXQueryVersion */
|
| 47 |
+
CARD16 length;
|
| 48 |
+
CARD8 clientMajor;
|
| 49 |
+
CARD8 clientMinor;
|
| 50 |
+
CARD16 unused;
|
| 51 |
+
} xPanoramiXQueryVersionReq;
|
| 52 |
+
|
| 53 |
+
#define sz_xPanoramiXQueryVersionReq 8
|
| 54 |
+
|
| 55 |
+
typedef struct {
|
| 56 |
+
CARD8 type; /* must be X_Reply */
|
| 57 |
+
CARD8 pad1; /* unused */
|
| 58 |
+
CARD16 sequenceNumber; /* last sequence number */
|
| 59 |
+
CARD32 length; /* 0 */
|
| 60 |
+
CARD16 majorVersion;
|
| 61 |
+
CARD16 minorVersion;
|
| 62 |
+
CARD32 pad2; /* unused */
|
| 63 |
+
CARD32 pad3; /* unused */
|
| 64 |
+
CARD32 pad4; /* unused */
|
| 65 |
+
CARD32 pad5; /* unused */
|
| 66 |
+
CARD32 pad6; /* unused */
|
| 67 |
+
} xPanoramiXQueryVersionReply;
|
| 68 |
+
|
| 69 |
+
#define sz_xPanoramiXQueryVersionReply 32
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
typedef struct _PanoramiXGetState {
|
| 73 |
+
CARD8 reqType; /* always PanoramiXReqCode */
|
| 74 |
+
CARD8 panoramiXReqType; /* always X_PanoramiXGetState */
|
| 75 |
+
CARD16 length;
|
| 76 |
+
CARD32 window;
|
| 77 |
+
} xPanoramiXGetStateReq;
|
| 78 |
+
#define sz_xPanoramiXGetStateReq 8
|
| 79 |
+
|
| 80 |
+
typedef struct {
|
| 81 |
+
BYTE type;
|
| 82 |
+
BYTE state;
|
| 83 |
+
CARD16 sequenceNumber;
|
| 84 |
+
CARD32 length;
|
| 85 |
+
CARD32 window;
|
| 86 |
+
CARD32 pad1; /* unused */
|
| 87 |
+
CARD32 pad2; /* unused */
|
| 88 |
+
CARD32 pad3; /* unused */
|
| 89 |
+
CARD32 pad4; /* unused */
|
| 90 |
+
CARD32 pad5; /* unused */
|
| 91 |
+
} xPanoramiXGetStateReply;
|
| 92 |
+
|
| 93 |
+
#define sz_panoramiXGetStateReply 32
|
| 94 |
+
|
| 95 |
+
typedef struct _PanoramiXGetScreenCount {
|
| 96 |
+
CARD8 reqType; /* always PanoramiXReqCode */
|
| 97 |
+
CARD8 panoramiXReqType; /* always X_PanoramiXGetScreenCount */
|
| 98 |
+
CARD16 length;
|
| 99 |
+
CARD32 window;
|
| 100 |
+
} xPanoramiXGetScreenCountReq;
|
| 101 |
+
#define sz_xPanoramiXGetScreenCountReq 8
|
| 102 |
+
|
| 103 |
+
typedef struct {
|
| 104 |
+
BYTE type;
|
| 105 |
+
BYTE ScreenCount;
|
| 106 |
+
CARD16 sequenceNumber;
|
| 107 |
+
CARD32 length;
|
| 108 |
+
CARD32 window;
|
| 109 |
+
CARD32 pad1; /* unused */
|
| 110 |
+
CARD32 pad2; /* unused */
|
| 111 |
+
CARD32 pad3; /* unused */
|
| 112 |
+
CARD32 pad4; /* unused */
|
| 113 |
+
CARD32 pad5; /* unused */
|
| 114 |
+
} xPanoramiXGetScreenCountReply;
|
| 115 |
+
#define sz_panoramiXGetScreenCountReply 32
|
| 116 |
+
|
| 117 |
+
typedef struct _PanoramiXGetScreenSize {
|
| 118 |
+
CARD8 reqType; /* always PanoramiXReqCode */
|
| 119 |
+
CARD8 panoramiXReqType; /* always X_PanoramiXGetState */
|
| 120 |
+
CARD16 length;
|
| 121 |
+
CARD32 window;
|
| 122 |
+
CARD32 screen;
|
| 123 |
+
} xPanoramiXGetScreenSizeReq;
|
| 124 |
+
#define sz_xPanoramiXGetScreenSizeReq 12
|
| 125 |
+
|
| 126 |
+
typedef struct {
|
| 127 |
+
BYTE type;
|
| 128 |
+
CARD8 pad1;
|
| 129 |
+
CARD16 sequenceNumber;
|
| 130 |
+
CARD32 length;
|
| 131 |
+
CARD32 width;
|
| 132 |
+
CARD32 height;
|
| 133 |
+
CARD32 window;
|
| 134 |
+
CARD32 screen;
|
| 135 |
+
CARD32 pad2; /* unused */
|
| 136 |
+
CARD32 pad3; /* unused */
|
| 137 |
+
} xPanoramiXGetScreenSizeReply;
|
| 138 |
+
#define sz_panoramiXGetScreenSizeReply 32
|
| 139 |
+
|
| 140 |
+
/************ Alternate protocol ******************/
|
| 141 |
+
|
| 142 |
+
typedef struct {
|
| 143 |
+
CARD8 reqType;
|
| 144 |
+
CARD8 panoramiXReqType;
|
| 145 |
+
CARD16 length;
|
| 146 |
+
} xXineramaIsActiveReq;
|
| 147 |
+
#define sz_xXineramaIsActiveReq 4
|
| 148 |
+
|
| 149 |
+
typedef struct {
|
| 150 |
+
BYTE type;
|
| 151 |
+
CARD8 pad1;
|
| 152 |
+
CARD16 sequenceNumber;
|
| 153 |
+
CARD32 length;
|
| 154 |
+
CARD32 state;
|
| 155 |
+
CARD32 pad2;
|
| 156 |
+
CARD32 pad3;
|
| 157 |
+
CARD32 pad4;
|
| 158 |
+
CARD32 pad5;
|
| 159 |
+
CARD32 pad6;
|
| 160 |
+
} xXineramaIsActiveReply;
|
| 161 |
+
#define sz_XineramaIsActiveReply 32
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
typedef struct {
|
| 165 |
+
CARD8 reqType;
|
| 166 |
+
CARD8 panoramiXReqType;
|
| 167 |
+
CARD16 length;
|
| 168 |
+
} xXineramaQueryScreensReq;
|
| 169 |
+
#define sz_xXineramaQueryScreensReq 4
|
| 170 |
+
|
| 171 |
+
typedef struct {
|
| 172 |
+
BYTE type;
|
| 173 |
+
CARD8 pad1;
|
| 174 |
+
CARD16 sequenceNumber;
|
| 175 |
+
CARD32 length;
|
| 176 |
+
CARD32 number;
|
| 177 |
+
CARD32 pad2;
|
| 178 |
+
CARD32 pad3;
|
| 179 |
+
CARD32 pad4;
|
| 180 |
+
CARD32 pad5;
|
| 181 |
+
CARD32 pad6;
|
| 182 |
+
} xXineramaQueryScreensReply;
|
| 183 |
+
#define sz_XineramaQueryScreensReply 32
|
| 184 |
+
|
| 185 |
+
typedef struct {
|
| 186 |
+
INT16 x_org;
|
| 187 |
+
INT16 y_org;
|
| 188 |
+
CARD16 width;
|
| 189 |
+
CARD16 height;
|
| 190 |
+
} xXineramaScreenInfo;
|
| 191 |
+
#define sz_XineramaScreenInfo 8
|
| 192 |
+
|
| 193 |
+
#endif
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/presentproto.h
ADDED
|
@@ -0,0 +1,280 @@
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright © 2013 Keith Packard
|
| 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 copyright
|
| 7 |
+
* notice and this permission notice appear in supporting documentation, and
|
| 8 |
+
* that the name of the copyright holders not be used in advertising or
|
| 9 |
+
* publicity pertaining to distribution of the software without specific,
|
| 10 |
+
* written prior permission. The copyright holders make no representations
|
| 11 |
+
* about the suitability of this software for any purpose. It is provided "as
|
| 12 |
+
* is" without express or implied warranty.
|
| 13 |
+
*
|
| 14 |
+
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
| 15 |
+
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
| 16 |
+
* EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
| 17 |
+
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
| 18 |
+
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
| 19 |
+
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 20 |
+
* OF THIS SOFTWARE.
|
| 21 |
+
*/
|
| 22 |
+
|
| 23 |
+
#ifndef _PRESENT_PROTO_H_
|
| 24 |
+
#define _PRESENT_PROTO_H_
|
| 25 |
+
|
| 26 |
+
#include <X11/extensions/presenttokens.h>
|
| 27 |
+
#include <X11/extensions/dri3proto.h>
|
| 28 |
+
|
| 29 |
+
#define Window CARD32
|
| 30 |
+
#define Pixmap CARD32
|
| 31 |
+
#define Region CARD32
|
| 32 |
+
#define XSyncFence CARD32
|
| 33 |
+
#define EventID CARD32
|
| 34 |
+
|
| 35 |
+
typedef struct {
|
| 36 |
+
Window window;
|
| 37 |
+
CARD32 serial;
|
| 38 |
+
} xPresentNotify;
|
| 39 |
+
#define sz_xPresentNotify 8
|
| 40 |
+
|
| 41 |
+
typedef struct {
|
| 42 |
+
CARD8 reqType;
|
| 43 |
+
CARD8 presentReqType;
|
| 44 |
+
CARD16 length;
|
| 45 |
+
CARD32 majorVersion;
|
| 46 |
+
CARD32 minorVersion;
|
| 47 |
+
} xPresentQueryVersionReq;
|
| 48 |
+
#define sz_xPresentQueryVersionReq 12
|
| 49 |
+
|
| 50 |
+
typedef struct {
|
| 51 |
+
BYTE type; /* X_Reply */
|
| 52 |
+
BYTE pad1;
|
| 53 |
+
CARD16 sequenceNumber;
|
| 54 |
+
CARD32 length;
|
| 55 |
+
CARD32 majorVersion;
|
| 56 |
+
CARD32 minorVersion;
|
| 57 |
+
CARD32 pad2;
|
| 58 |
+
CARD32 pad3;
|
| 59 |
+
CARD32 pad4;
|
| 60 |
+
CARD32 pad5;
|
| 61 |
+
} xPresentQueryVersionReply;
|
| 62 |
+
#define sz_xPresentQueryVersionReply 32
|
| 63 |
+
|
| 64 |
+
typedef struct {
|
| 65 |
+
CARD8 reqType;
|
| 66 |
+
CARD8 presentReqType;
|
| 67 |
+
CARD16 length;
|
| 68 |
+
Window window;
|
| 69 |
+
|
| 70 |
+
Pixmap pixmap;
|
| 71 |
+
CARD32 serial;
|
| 72 |
+
|
| 73 |
+
Region valid;
|
| 74 |
+
Region update;
|
| 75 |
+
|
| 76 |
+
INT16 x_off;
|
| 77 |
+
INT16 y_off;
|
| 78 |
+
CARD32 target_crtc;
|
| 79 |
+
|
| 80 |
+
XSyncFence wait_fence;
|
| 81 |
+
XSyncFence idle_fence;
|
| 82 |
+
|
| 83 |
+
CARD32 options;
|
| 84 |
+
CARD32 pad1;
|
| 85 |
+
|
| 86 |
+
CARD64 target_msc;
|
| 87 |
+
CARD64 divisor;
|
| 88 |
+
CARD64 remainder;
|
| 89 |
+
/* followed by a LISTofPRESENTNOTIFY */
|
| 90 |
+
} xPresentPixmapReq;
|
| 91 |
+
#define sz_xPresentPixmapReq 72
|
| 92 |
+
|
| 93 |
+
typedef struct {
|
| 94 |
+
CARD8 reqType;
|
| 95 |
+
CARD8 presentReqType;
|
| 96 |
+
CARD16 length;
|
| 97 |
+
Window window;
|
| 98 |
+
|
| 99 |
+
CARD32 serial;
|
| 100 |
+
CARD32 pad0;
|
| 101 |
+
|
| 102 |
+
CARD64 target_msc;
|
| 103 |
+
CARD64 divisor;
|
| 104 |
+
CARD64 remainder;
|
| 105 |
+
} xPresentNotifyMSCReq;
|
| 106 |
+
#define sz_xPresentNotifyMSCReq 40
|
| 107 |
+
|
| 108 |
+
typedef struct {
|
| 109 |
+
CARD8 reqType;
|
| 110 |
+
CARD8 presentReqType;
|
| 111 |
+
CARD16 length;
|
| 112 |
+
CARD32 eid;
|
| 113 |
+
CARD32 window;
|
| 114 |
+
CARD32 eventMask;
|
| 115 |
+
} xPresentSelectInputReq;
|
| 116 |
+
#define sz_xPresentSelectInputReq 16
|
| 117 |
+
|
| 118 |
+
typedef struct {
|
| 119 |
+
CARD8 reqType;
|
| 120 |
+
CARD8 presentReqType;
|
| 121 |
+
CARD16 length;
|
| 122 |
+
CARD32 target;
|
| 123 |
+
} xPresentQueryCapabilitiesReq;
|
| 124 |
+
#define sz_xPresentQueryCapabilitiesReq 8
|
| 125 |
+
|
| 126 |
+
typedef struct {
|
| 127 |
+
BYTE type; /* X_Reply */
|
| 128 |
+
BYTE pad1;
|
| 129 |
+
CARD16 sequenceNumber;
|
| 130 |
+
CARD32 length;
|
| 131 |
+
CARD32 capabilities;
|
| 132 |
+
CARD32 pad3;
|
| 133 |
+
CARD32 pad4;
|
| 134 |
+
CARD32 pad5;
|
| 135 |
+
CARD32 pad6;
|
| 136 |
+
CARD32 pad7;
|
| 137 |
+
} xPresentQueryCapabilitiesReply;
|
| 138 |
+
#define sz_xPresentQueryCapabilitiesReply 32
|
| 139 |
+
|
| 140 |
+
typedef struct {
|
| 141 |
+
CARD8 reqType;
|
| 142 |
+
CARD8 presentReqType;
|
| 143 |
+
CARD16 length;
|
| 144 |
+
Window window;
|
| 145 |
+
|
| 146 |
+
Pixmap pixmap;
|
| 147 |
+
CARD32 serial;
|
| 148 |
+
|
| 149 |
+
Region valid;
|
| 150 |
+
Region update;
|
| 151 |
+
|
| 152 |
+
INT16 x_off;
|
| 153 |
+
INT16 y_off;
|
| 154 |
+
CARD32 target_crtc;
|
| 155 |
+
|
| 156 |
+
DRI3Syncobj acquire_syncobj;
|
| 157 |
+
DRI3Syncobj release_syncobj;
|
| 158 |
+
CARD64 acquire_point;
|
| 159 |
+
CARD64 release_point;
|
| 160 |
+
|
| 161 |
+
CARD32 options;
|
| 162 |
+
CARD32 pad1;
|
| 163 |
+
|
| 164 |
+
CARD64 target_msc;
|
| 165 |
+
CARD64 divisor;
|
| 166 |
+
CARD64 remainder;
|
| 167 |
+
/* followed by a LISTofPRESENTNOTIFY */
|
| 168 |
+
} xPresentPixmapSyncedReq;
|
| 169 |
+
#define sz_xPresentPixmapSyncedReq 88
|
| 170 |
+
|
| 171 |
+
/*
|
| 172 |
+
* Events
|
| 173 |
+
*
|
| 174 |
+
* All Present events are X Generic Events
|
| 175 |
+
*/
|
| 176 |
+
|
| 177 |
+
typedef struct {
|
| 178 |
+
CARD8 type;
|
| 179 |
+
CARD8 extension;
|
| 180 |
+
CARD16 sequenceNumber;
|
| 181 |
+
CARD32 length;
|
| 182 |
+
CARD16 evtype;
|
| 183 |
+
CARD16 pad2;
|
| 184 |
+
CARD32 eid;
|
| 185 |
+
CARD32 window;
|
| 186 |
+
INT16 x;
|
| 187 |
+
INT16 y;
|
| 188 |
+
CARD16 width;
|
| 189 |
+
CARD16 height;
|
| 190 |
+
INT16 off_x;
|
| 191 |
+
INT16 off_y;
|
| 192 |
+
|
| 193 |
+
CARD16 pixmap_width;
|
| 194 |
+
CARD16 pixmap_height;
|
| 195 |
+
CARD32 pixmap_flags;
|
| 196 |
+
} xPresentConfigureNotify;
|
| 197 |
+
#define sz_xPresentConfigureNotify 40
|
| 198 |
+
|
| 199 |
+
typedef struct {
|
| 200 |
+
CARD8 type;
|
| 201 |
+
CARD8 extension;
|
| 202 |
+
CARD16 sequenceNumber;
|
| 203 |
+
CARD32 length;
|
| 204 |
+
CARD16 evtype;
|
| 205 |
+
CARD8 kind;
|
| 206 |
+
CARD8 mode;
|
| 207 |
+
CARD32 eid;
|
| 208 |
+
Window window;
|
| 209 |
+
CARD32 serial;
|
| 210 |
+
CARD64 ust;
|
| 211 |
+
|
| 212 |
+
CARD64 msc;
|
| 213 |
+
} xPresentCompleteNotify;
|
| 214 |
+
#define sz_xPresentCompleteNotify 40
|
| 215 |
+
|
| 216 |
+
typedef struct {
|
| 217 |
+
CARD8 type;
|
| 218 |
+
CARD8 extension;
|
| 219 |
+
CARD16 sequenceNumber;
|
| 220 |
+
CARD32 length;
|
| 221 |
+
CARD16 evtype;
|
| 222 |
+
CARD16 pad2;
|
| 223 |
+
CARD32 eid;
|
| 224 |
+
Window window;
|
| 225 |
+
CARD32 serial;
|
| 226 |
+
Pixmap pixmap;
|
| 227 |
+
CARD32 idle_fence;
|
| 228 |
+
} xPresentIdleNotify;
|
| 229 |
+
#define sz_xPresentIdleNotify 32
|
| 230 |
+
|
| 231 |
+
#if PRESENT_FUTURE_VERSION
|
| 232 |
+
typedef struct {
|
| 233 |
+
CARD8 type;
|
| 234 |
+
CARD8 extension;
|
| 235 |
+
CARD16 sequenceNumber;
|
| 236 |
+
CARD32 length;
|
| 237 |
+
CARD16 evtype;
|
| 238 |
+
CARD8 update_window;
|
| 239 |
+
CARD8 pad1;
|
| 240 |
+
CARD32 eid;
|
| 241 |
+
Window event_window;
|
| 242 |
+
Window window;
|
| 243 |
+
Pixmap pixmap;
|
| 244 |
+
CARD32 serial;
|
| 245 |
+
|
| 246 |
+
/* 32-byte boundary */
|
| 247 |
+
|
| 248 |
+
Region valid_region;
|
| 249 |
+
Region update_region;
|
| 250 |
+
|
| 251 |
+
xRectangle valid_rect;
|
| 252 |
+
|
| 253 |
+
xRectangle update_rect;
|
| 254 |
+
|
| 255 |
+
INT16 x_off;
|
| 256 |
+
INT16 y_off;
|
| 257 |
+
CARD32 target_crtc;
|
| 258 |
+
|
| 259 |
+
XSyncFence wait_fence;
|
| 260 |
+
XSyncFence idle_fence;
|
| 261 |
+
|
| 262 |
+
CARD32 options;
|
| 263 |
+
CARD32 pad2;
|
| 264 |
+
|
| 265 |
+
CARD64 target_msc;
|
| 266 |
+
CARD64 divisor;
|
| 267 |
+
CARD64 remainder;
|
| 268 |
+
|
| 269 |
+
} xPresentRedirectNotify;
|
| 270 |
+
|
| 271 |
+
#define sz_xPresentRedirectNotify 104
|
| 272 |
+
#endif
|
| 273 |
+
|
| 274 |
+
#undef Window
|
| 275 |
+
#undef Pixmap
|
| 276 |
+
#undef Region
|
| 277 |
+
#undef XSyncFence
|
| 278 |
+
#undef EventID
|
| 279 |
+
|
| 280 |
+
#endif
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/presenttokens.h
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright © 2013 Keith Packard
|
| 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 copyright
|
| 7 |
+
* notice and this permission notice appear in supporting documentation, and
|
| 8 |
+
* that the name of the copyright holders not be used in advertising or
|
| 9 |
+
* publicity pertaining to distribution of the software without specific,
|
| 10 |
+
* written prior permission. The copyright holders make no representations
|
| 11 |
+
* about the suitability of this software for any purpose. It is provided "as
|
| 12 |
+
* is" without express or implied warranty.
|
| 13 |
+
*
|
| 14 |
+
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
| 15 |
+
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
| 16 |
+
* EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
| 17 |
+
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
| 18 |
+
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
| 19 |
+
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 20 |
+
* OF THIS SOFTWARE.
|
| 21 |
+
*/
|
| 22 |
+
|
| 23 |
+
#ifndef _PRESENT_TOKENS_H_
|
| 24 |
+
#define _PRESENT_TOKENS_H_
|
| 25 |
+
|
| 26 |
+
#define PRESENT_NAME "Present"
|
| 27 |
+
#define PRESENT_MAJOR 1
|
| 28 |
+
#define PRESENT_MINOR 4
|
| 29 |
+
|
| 30 |
+
#define PresentNumberErrors 0
|
| 31 |
+
#define PresentNumberEvents 0
|
| 32 |
+
|
| 33 |
+
/* Requests */
|
| 34 |
+
#define X_PresentQueryVersion 0
|
| 35 |
+
#define X_PresentPixmap 1
|
| 36 |
+
#define X_PresentNotifyMSC 2
|
| 37 |
+
#define X_PresentSelectInput 3
|
| 38 |
+
#define X_PresentQueryCapabilities 4
|
| 39 |
+
#define X_PresentPixmapSynced 5
|
| 40 |
+
|
| 41 |
+
#define PresentNumberRequests 6
|
| 42 |
+
|
| 43 |
+
/* Present operation options */
|
| 44 |
+
#define PresentOptionNone 0
|
| 45 |
+
#define PresentOptionAsync (1 << 0)
|
| 46 |
+
#define PresentOptionCopy (1 << 1)
|
| 47 |
+
#define PresentOptionUST (1 << 2)
|
| 48 |
+
#define PresentOptionSuboptimal (1 << 3)
|
| 49 |
+
#define PresentOptionAsyncMayTear (1 << 4)
|
| 50 |
+
|
| 51 |
+
#define PresentAllOptions (PresentOptionAsync | \
|
| 52 |
+
PresentOptionCopy | \
|
| 53 |
+
PresentOptionUST | \
|
| 54 |
+
PresentOptionSuboptimal | \
|
| 55 |
+
PresentOptionAsyncMayTear)
|
| 56 |
+
|
| 57 |
+
#define PresentAllAsyncOptions (PresentOptionAsync | PresentOptionAsyncMayTear)
|
| 58 |
+
|
| 59 |
+
/* Present capabilities */
|
| 60 |
+
|
| 61 |
+
#define PresentCapabilityNone 0
|
| 62 |
+
#define PresentCapabilityAsync 1
|
| 63 |
+
#define PresentCapabilityFence 2
|
| 64 |
+
#define PresentCapabilityUST 4
|
| 65 |
+
#define PresentCapabilityAsyncMayTear 8
|
| 66 |
+
#define PresentCapabilitySyncobj 16
|
| 67 |
+
|
| 68 |
+
#define PresentAllCapabilities (PresentCapabilityAsync | \
|
| 69 |
+
PresentCapabilityFence | \
|
| 70 |
+
PresentCapabilityUST | \
|
| 71 |
+
PresentCapabilityAsyncMayTear | \
|
| 72 |
+
PresentCapabilitySyncobj)
|
| 73 |
+
|
| 74 |
+
#define PresentAllAsyncCapabilities (PresentCapabilityAsync | PresentCapabilityAsyncMayTear)
|
| 75 |
+
|
| 76 |
+
/* Events */
|
| 77 |
+
#define PresentConfigureNotify 0
|
| 78 |
+
#define PresentCompleteNotify 1
|
| 79 |
+
#define PresentIdleNotify 2
|
| 80 |
+
#if PRESENT_FUTURE_VERSION
|
| 81 |
+
#define PresentRedirectNotify 3
|
| 82 |
+
#endif
|
| 83 |
+
|
| 84 |
+
/* Event Masks */
|
| 85 |
+
#define PresentConfigureNotifyMask 1
|
| 86 |
+
#define PresentCompleteNotifyMask 2
|
| 87 |
+
#define PresentIdleNotifyMask 4
|
| 88 |
+
#if PRESENT_FUTURE_VERSION
|
| 89 |
+
#define PresentRedirectNotifyMask 8
|
| 90 |
+
#endif
|
| 91 |
+
|
| 92 |
+
#if PRESENT_FUTURE_VERSION
|
| 93 |
+
#define PRESENT_REDIRECT_NOTIFY_MASK PresentRedirectNotifyMask
|
| 94 |
+
#else
|
| 95 |
+
#define PRESENT_REDIRECT_NOTIFY_MASK 0
|
| 96 |
+
#endif
|
| 97 |
+
|
| 98 |
+
#define PresentAllEvents (PresentConfigureNotifyMask | \
|
| 99 |
+
PresentCompleteNotifyMask | \
|
| 100 |
+
PresentIdleNotifyMask | \
|
| 101 |
+
PRESENT_REDIRECT_NOTIFY_MASK)
|
| 102 |
+
|
| 103 |
+
/* Complete Kinds */
|
| 104 |
+
|
| 105 |
+
#define PresentCompleteKindPixmap 0
|
| 106 |
+
#define PresentCompleteKindNotifyMSC 1
|
| 107 |
+
|
| 108 |
+
/* Complete Modes */
|
| 109 |
+
|
| 110 |
+
#define PresentCompleteModeCopy 0
|
| 111 |
+
#define PresentCompleteModeFlip 1
|
| 112 |
+
#define PresentCompleteModeSkip 2
|
| 113 |
+
#define PresentCompleteModeSuboptimalCopy 3
|
| 114 |
+
|
| 115 |
+
#endif
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/randr.h
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright © 2000 Compaq Computer Corporation
|
| 3 |
+
* Copyright © 2002 Hewlett Packard Company
|
| 4 |
+
* Copyright © 2006 Intel Corporation
|
| 5 |
+
* Copyright © 2008 Red Hat, Inc.
|
| 6 |
+
*
|
| 7 |
+
* Permission to use, copy, modify, distribute, and sell this software and its
|
| 8 |
+
* documentation for any purpose is hereby granted without fee, provided that
|
| 9 |
+
* the above copyright notice appear in all copies and that both that copyright
|
| 10 |
+
* notice and this permission notice appear in supporting documentation, and
|
| 11 |
+
* that the name of the copyright holders not be used in advertising or
|
| 12 |
+
* publicity pertaining to distribution of the software without specific,
|
| 13 |
+
* written prior permission. The copyright holders make no representations
|
| 14 |
+
* about the suitability of this software for any purpose. It is provided "as
|
| 15 |
+
* is" without express or implied warranty.
|
| 16 |
+
*
|
| 17 |
+
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
| 18 |
+
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
| 19 |
+
* EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
| 20 |
+
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
| 21 |
+
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
| 22 |
+
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 23 |
+
* OF THIS SOFTWARE.
|
| 24 |
+
*
|
| 25 |
+
* Author: Jim Gettys, HP Labs, Hewlett-Packard, Inc.
|
| 26 |
+
* Keith Packard, Intel Corporation
|
| 27 |
+
*/
|
| 28 |
+
|
| 29 |
+
#ifndef _RANDR_H_
|
| 30 |
+
#define _RANDR_H_
|
| 31 |
+
|
| 32 |
+
typedef unsigned short Rotation;
|
| 33 |
+
typedef unsigned short SizeID;
|
| 34 |
+
typedef unsigned short SubpixelOrder;
|
| 35 |
+
typedef unsigned short Connection;
|
| 36 |
+
typedef unsigned short XRandrRotation;
|
| 37 |
+
typedef unsigned short XRandrSizeID;
|
| 38 |
+
typedef unsigned short XRandrSubpixelOrder;
|
| 39 |
+
typedef unsigned long XRandrModeFlags;
|
| 40 |
+
|
| 41 |
+
#define RANDR_NAME "RANDR"
|
| 42 |
+
#define RANDR_MAJOR 1
|
| 43 |
+
#define RANDR_MINOR 6
|
| 44 |
+
|
| 45 |
+
#define RRNumberErrors 5
|
| 46 |
+
#define RRNumberEvents 2
|
| 47 |
+
#define RRNumberRequests 47
|
| 48 |
+
|
| 49 |
+
#define X_RRQueryVersion 0
|
| 50 |
+
/* we skip 1 to make old clients fail pretty immediately */
|
| 51 |
+
#define X_RROldGetScreenInfo 1
|
| 52 |
+
#define X_RR1_0SetScreenConfig 2
|
| 53 |
+
/* V1.0 apps share the same set screen config request id */
|
| 54 |
+
#define X_RRSetScreenConfig 2
|
| 55 |
+
#define X_RROldScreenChangeSelectInput 3
|
| 56 |
+
/* 3 used to be ScreenChangeSelectInput; deprecated */
|
| 57 |
+
#define X_RRSelectInput 4
|
| 58 |
+
#define X_RRGetScreenInfo 5
|
| 59 |
+
|
| 60 |
+
/* V1.2 additions */
|
| 61 |
+
#define X_RRGetScreenSizeRange 6
|
| 62 |
+
#define X_RRSetScreenSize 7
|
| 63 |
+
#define X_RRGetScreenResources 8
|
| 64 |
+
#define X_RRGetOutputInfo 9
|
| 65 |
+
#define X_RRListOutputProperties 10
|
| 66 |
+
#define X_RRQueryOutputProperty 11
|
| 67 |
+
#define X_RRConfigureOutputProperty 12
|
| 68 |
+
#define X_RRChangeOutputProperty 13
|
| 69 |
+
#define X_RRDeleteOutputProperty 14
|
| 70 |
+
#define X_RRGetOutputProperty 15
|
| 71 |
+
#define X_RRCreateMode 16
|
| 72 |
+
#define X_RRDestroyMode 17
|
| 73 |
+
#define X_RRAddOutputMode 18
|
| 74 |
+
#define X_RRDeleteOutputMode 19
|
| 75 |
+
#define X_RRGetCrtcInfo 20
|
| 76 |
+
#define X_RRSetCrtcConfig 21
|
| 77 |
+
#define X_RRGetCrtcGammaSize 22
|
| 78 |
+
#define X_RRGetCrtcGamma 23
|
| 79 |
+
#define X_RRSetCrtcGamma 24
|
| 80 |
+
|
| 81 |
+
/* V1.3 additions */
|
| 82 |
+
#define X_RRGetScreenResourcesCurrent 25
|
| 83 |
+
#define X_RRSetCrtcTransform 26
|
| 84 |
+
#define X_RRGetCrtcTransform 27
|
| 85 |
+
#define X_RRGetPanning 28
|
| 86 |
+
#define X_RRSetPanning 29
|
| 87 |
+
#define X_RRSetOutputPrimary 30
|
| 88 |
+
#define X_RRGetOutputPrimary 31
|
| 89 |
+
|
| 90 |
+
#define RRTransformUnit (1L << 0)
|
| 91 |
+
#define RRTransformScaleUp (1L << 1)
|
| 92 |
+
#define RRTransformScaleDown (1L << 2)
|
| 93 |
+
#define RRTransformProjective (1L << 3)
|
| 94 |
+
|
| 95 |
+
/* v1.4 */
|
| 96 |
+
#define X_RRGetProviders 32
|
| 97 |
+
#define X_RRGetProviderInfo 33
|
| 98 |
+
#define X_RRSetProviderOffloadSink 34
|
| 99 |
+
#define X_RRSetProviderOutputSource 35
|
| 100 |
+
#define X_RRListProviderProperties 36
|
| 101 |
+
#define X_RRQueryProviderProperty 37
|
| 102 |
+
#define X_RRConfigureProviderProperty 38
|
| 103 |
+
#define X_RRChangeProviderProperty 39
|
| 104 |
+
#define X_RRDeleteProviderProperty 40
|
| 105 |
+
#define X_RRGetProviderProperty 41
|
| 106 |
+
|
| 107 |
+
/* v1.5 */
|
| 108 |
+
#define X_RRGetMonitors 42
|
| 109 |
+
#define X_RRSetMonitor 43
|
| 110 |
+
#define X_RRDeleteMonitor 44
|
| 111 |
+
|
| 112 |
+
/* v1.6 */
|
| 113 |
+
#define X_RRCreateLease 45
|
| 114 |
+
#define X_RRFreeLease 46
|
| 115 |
+
|
| 116 |
+
/* Event selection bits */
|
| 117 |
+
#define RRScreenChangeNotifyMask (1L << 0)
|
| 118 |
+
/* V1.2 additions */
|
| 119 |
+
#define RRCrtcChangeNotifyMask (1L << 1)
|
| 120 |
+
#define RROutputChangeNotifyMask (1L << 2)
|
| 121 |
+
#define RROutputPropertyNotifyMask (1L << 3)
|
| 122 |
+
/* V1.4 additions */
|
| 123 |
+
#define RRProviderChangeNotifyMask (1L << 4)
|
| 124 |
+
#define RRProviderPropertyNotifyMask (1L << 5)
|
| 125 |
+
#define RRResourceChangeNotifyMask (1L << 6)
|
| 126 |
+
/* V1.6 additions */
|
| 127 |
+
#define RRLeaseNotifyMask (1L << 7)
|
| 128 |
+
|
| 129 |
+
/* Event codes */
|
| 130 |
+
#define RRScreenChangeNotify 0
|
| 131 |
+
/* V1.2 additions */
|
| 132 |
+
#define RRNotify 1
|
| 133 |
+
/* RRNotify Subcodes */
|
| 134 |
+
#define RRNotify_CrtcChange 0
|
| 135 |
+
#define RRNotify_OutputChange 1
|
| 136 |
+
#define RRNotify_OutputProperty 2
|
| 137 |
+
#define RRNotify_ProviderChange 3
|
| 138 |
+
#define RRNotify_ProviderProperty 4
|
| 139 |
+
#define RRNotify_ResourceChange 5
|
| 140 |
+
/* V1.6 additions */
|
| 141 |
+
#define RRNotify_Lease 6
|
| 142 |
+
/* used in the rotation field; rotation and reflection in 0.1 proto. */
|
| 143 |
+
#define RR_Rotate_0 1
|
| 144 |
+
#define RR_Rotate_90 2
|
| 145 |
+
#define RR_Rotate_180 4
|
| 146 |
+
#define RR_Rotate_270 8
|
| 147 |
+
|
| 148 |
+
/* new in 1.0 protocol, to allow reflection of screen */
|
| 149 |
+
|
| 150 |
+
#define RR_Reflect_X 16
|
| 151 |
+
#define RR_Reflect_Y 32
|
| 152 |
+
|
| 153 |
+
#define RRSetConfigSuccess 0
|
| 154 |
+
#define RRSetConfigInvalidConfigTime 1
|
| 155 |
+
#define RRSetConfigInvalidTime 2
|
| 156 |
+
#define RRSetConfigFailed 3
|
| 157 |
+
|
| 158 |
+
/* new in 1.2 protocol */
|
| 159 |
+
|
| 160 |
+
#define RR_HSyncPositive 0x00000001
|
| 161 |
+
#define RR_HSyncNegative 0x00000002
|
| 162 |
+
#define RR_VSyncPositive 0x00000004
|
| 163 |
+
#define RR_VSyncNegative 0x00000008
|
| 164 |
+
#define RR_Interlace 0x00000010
|
| 165 |
+
#define RR_DoubleScan 0x00000020
|
| 166 |
+
#define RR_CSync 0x00000040
|
| 167 |
+
#define RR_CSyncPositive 0x00000080
|
| 168 |
+
#define RR_CSyncNegative 0x00000100
|
| 169 |
+
#define RR_HSkewPresent 0x00000200
|
| 170 |
+
#define RR_BCast 0x00000400
|
| 171 |
+
#define RR_PixelMultiplex 0x00000800
|
| 172 |
+
#define RR_DoubleClock 0x00001000
|
| 173 |
+
#define RR_ClockDivideBy2 0x00002000
|
| 174 |
+
|
| 175 |
+
#define RR_Connected 0
|
| 176 |
+
#define RR_Disconnected 1
|
| 177 |
+
#define RR_UnknownConnection 2
|
| 178 |
+
|
| 179 |
+
#define BadRROutput 0
|
| 180 |
+
#define BadRRCrtc 1
|
| 181 |
+
#define BadRRMode 2
|
| 182 |
+
#define BadRRProvider 3
|
| 183 |
+
#define BadRRLease 4
|
| 184 |
+
|
| 185 |
+
/* Conventional RandR output properties */
|
| 186 |
+
|
| 187 |
+
#define RR_PROPERTY_BACKLIGHT "Backlight"
|
| 188 |
+
#define RR_PROPERTY_RANDR_EDID "EDID"
|
| 189 |
+
#define RR_PROPERTY_SIGNAL_FORMAT "SignalFormat"
|
| 190 |
+
#define RR_PROPERTY_SIGNAL_PROPERTIES "SignalProperties"
|
| 191 |
+
#define RR_PROPERTY_CONNECTOR_TYPE "ConnectorType"
|
| 192 |
+
#define RR_PROPERTY_CONNECTOR_NUMBER "ConnectorNumber"
|
| 193 |
+
#define RR_PROPERTY_COMPATIBILITY_LIST "CompatibilityList"
|
| 194 |
+
#define RR_PROPERTY_CLONE_LIST "CloneList"
|
| 195 |
+
#define RR_PROPERTY_BORDER "Border"
|
| 196 |
+
#define RR_PROPERTY_BORDER_DIMENSIONS "BorderDimensions"
|
| 197 |
+
#define RR_PROPERTY_GUID "GUID"
|
| 198 |
+
#define RR_PROPERTY_RANDR_TILE "TILE"
|
| 199 |
+
#define RR_PROPERTY_NON_DESKTOP "non-desktop"
|
| 200 |
+
|
| 201 |
+
/* roles this device can carry out */
|
| 202 |
+
#define RR_Capability_None 0
|
| 203 |
+
#define RR_Capability_SourceOutput 1
|
| 204 |
+
#define RR_Capability_SinkOutput 2
|
| 205 |
+
#define RR_Capability_SourceOffload 4
|
| 206 |
+
#define RR_Capability_SinkOffload 8
|
| 207 |
+
|
| 208 |
+
#endif /* _RANDR_H_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/randrproto.h
ADDED
|
@@ -0,0 +1,1152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright © 2000 Compaq Computer Corporation
|
| 3 |
+
* Copyright © 2002 Hewlett-Packard Company
|
| 4 |
+
* Copyright © 2006 Intel Corporation
|
| 5 |
+
* Copyright © 2008 Red Hat, Inc.
|
| 6 |
+
*
|
| 7 |
+
* Permission to use, copy, modify, distribute, and sell this software and its
|
| 8 |
+
* documentation for any purpose is hereby granted without fee, provided that
|
| 9 |
+
* the above copyright notice appear in all copies and that both that copyright
|
| 10 |
+
* notice and this permission notice appear in supporting documentation, and
|
| 11 |
+
* that the name of the copyright holders not be used in advertising or
|
| 12 |
+
* publicity pertaining to distribution of the software without specific,
|
| 13 |
+
* written prior permission. The copyright holders make no representations
|
| 14 |
+
* about the suitability of this software for any purpose. It is provided "as
|
| 15 |
+
* is" without express or implied warranty.
|
| 16 |
+
*
|
| 17 |
+
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
| 18 |
+
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
| 19 |
+
* EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
| 20 |
+
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
| 21 |
+
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
| 22 |
+
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 23 |
+
* OF THIS SOFTWARE.
|
| 24 |
+
*
|
| 25 |
+
* Author: Jim Gettys, Hewlett-Packard Company, Inc.
|
| 26 |
+
* Keith Packard, Intel Corporation
|
| 27 |
+
*/
|
| 28 |
+
|
| 29 |
+
/* note that RANDR 1.0 is incompatible with version 0.0, or 0.1 */
|
| 30 |
+
/* V1.0 removes depth switching from the protocol */
|
| 31 |
+
#ifndef _XRANDRP_H_
|
| 32 |
+
#define _XRANDRP_H_
|
| 33 |
+
|
| 34 |
+
#include <X11/extensions/randr.h>
|
| 35 |
+
#include <X11/extensions/renderproto.h>
|
| 36 |
+
|
| 37 |
+
#define Window CARD32
|
| 38 |
+
#define Drawable CARD32
|
| 39 |
+
#define Font CARD32
|
| 40 |
+
#define Pixmap CARD32
|
| 41 |
+
#define Cursor CARD32
|
| 42 |
+
#define Colormap CARD32
|
| 43 |
+
#define GContext CARD32
|
| 44 |
+
#define Atom CARD32
|
| 45 |
+
#define Time CARD32
|
| 46 |
+
#define KeyCode CARD8
|
| 47 |
+
#define KeySym CARD32
|
| 48 |
+
#define RROutput CARD32
|
| 49 |
+
#define RRMode CARD32
|
| 50 |
+
#define RRCrtc CARD32
|
| 51 |
+
#define RRProvider CARD32
|
| 52 |
+
#define RRModeFlags CARD32
|
| 53 |
+
#define RRLease CARD32
|
| 54 |
+
|
| 55 |
+
#define Rotation CARD16
|
| 56 |
+
#define SizeID CARD16
|
| 57 |
+
#define SubpixelOrder CARD16
|
| 58 |
+
|
| 59 |
+
/*
|
| 60 |
+
* data structures
|
| 61 |
+
*/
|
| 62 |
+
|
| 63 |
+
typedef struct {
|
| 64 |
+
CARD16 widthInPixels;
|
| 65 |
+
CARD16 heightInPixels;
|
| 66 |
+
CARD16 widthInMillimeters;
|
| 67 |
+
CARD16 heightInMillimeters;
|
| 68 |
+
} xScreenSizes;
|
| 69 |
+
#define sz_xScreenSizes 8
|
| 70 |
+
|
| 71 |
+
/*
|
| 72 |
+
* requests and replies
|
| 73 |
+
*/
|
| 74 |
+
|
| 75 |
+
typedef struct {
|
| 76 |
+
CARD8 reqType;
|
| 77 |
+
CARD8 randrReqType;
|
| 78 |
+
CARD16 length;
|
| 79 |
+
CARD32 majorVersion;
|
| 80 |
+
CARD32 minorVersion;
|
| 81 |
+
} xRRQueryVersionReq;
|
| 82 |
+
#define sz_xRRQueryVersionReq 12
|
| 83 |
+
|
| 84 |
+
typedef struct {
|
| 85 |
+
BYTE type; /* X_Reply */
|
| 86 |
+
BYTE pad1;
|
| 87 |
+
CARD16 sequenceNumber;
|
| 88 |
+
CARD32 length;
|
| 89 |
+
CARD32 majorVersion;
|
| 90 |
+
CARD32 minorVersion;
|
| 91 |
+
CARD32 pad2;
|
| 92 |
+
CARD32 pad3;
|
| 93 |
+
CARD32 pad4;
|
| 94 |
+
CARD32 pad5;
|
| 95 |
+
} xRRQueryVersionReply;
|
| 96 |
+
#define sz_xRRQueryVersionReply 32
|
| 97 |
+
|
| 98 |
+
typedef struct {
|
| 99 |
+
CARD8 reqType;
|
| 100 |
+
CARD8 randrReqType;
|
| 101 |
+
CARD16 length;
|
| 102 |
+
Window window;
|
| 103 |
+
} xRRGetScreenInfoReq;
|
| 104 |
+
#define sz_xRRGetScreenInfoReq 8
|
| 105 |
+
|
| 106 |
+
/*
|
| 107 |
+
* the xRRScreenInfoReply structure is followed by:
|
| 108 |
+
*
|
| 109 |
+
* the size information
|
| 110 |
+
*/
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
typedef struct {
|
| 114 |
+
BYTE type; /* X_Reply */
|
| 115 |
+
BYTE setOfRotations;
|
| 116 |
+
CARD16 sequenceNumber;
|
| 117 |
+
CARD32 length;
|
| 118 |
+
Window root;
|
| 119 |
+
Time timestamp;
|
| 120 |
+
Time configTimestamp;
|
| 121 |
+
CARD16 nSizes;
|
| 122 |
+
SizeID sizeID;
|
| 123 |
+
Rotation rotation;
|
| 124 |
+
CARD16 rate;
|
| 125 |
+
CARD16 nrateEnts;
|
| 126 |
+
CARD16 pad;
|
| 127 |
+
} xRRGetScreenInfoReply;
|
| 128 |
+
#define sz_xRRGetScreenInfoReply 32
|
| 129 |
+
|
| 130 |
+
typedef struct {
|
| 131 |
+
CARD8 reqType;
|
| 132 |
+
CARD8 randrReqType;
|
| 133 |
+
CARD16 length;
|
| 134 |
+
Drawable drawable;
|
| 135 |
+
Time timestamp;
|
| 136 |
+
Time configTimestamp;
|
| 137 |
+
SizeID sizeID;
|
| 138 |
+
Rotation rotation;
|
| 139 |
+
} xRR1_0SetScreenConfigReq;
|
| 140 |
+
#define sz_xRR1_0SetScreenConfigReq 20
|
| 141 |
+
|
| 142 |
+
typedef struct {
|
| 143 |
+
CARD8 reqType;
|
| 144 |
+
CARD8 randrReqType;
|
| 145 |
+
CARD16 length;
|
| 146 |
+
Drawable drawable;
|
| 147 |
+
Time timestamp;
|
| 148 |
+
Time configTimestamp;
|
| 149 |
+
SizeID sizeID;
|
| 150 |
+
Rotation rotation;
|
| 151 |
+
CARD16 rate;
|
| 152 |
+
CARD16 pad;
|
| 153 |
+
} xRRSetScreenConfigReq;
|
| 154 |
+
#define sz_xRRSetScreenConfigReq 24
|
| 155 |
+
|
| 156 |
+
typedef struct {
|
| 157 |
+
BYTE type; /* X_Reply */
|
| 158 |
+
CARD8 status;
|
| 159 |
+
CARD16 sequenceNumber;
|
| 160 |
+
CARD32 length;
|
| 161 |
+
Time newTimestamp;
|
| 162 |
+
Time newConfigTimestamp;
|
| 163 |
+
Window root;
|
| 164 |
+
CARD16 subpixelOrder;
|
| 165 |
+
CARD16 pad4;
|
| 166 |
+
CARD32 pad5;
|
| 167 |
+
CARD32 pad6;
|
| 168 |
+
} xRRSetScreenConfigReply;
|
| 169 |
+
#define sz_xRRSetScreenConfigReply 32
|
| 170 |
+
|
| 171 |
+
typedef struct {
|
| 172 |
+
CARD8 reqType;
|
| 173 |
+
CARD8 randrReqType;
|
| 174 |
+
CARD16 length;
|
| 175 |
+
Window window;
|
| 176 |
+
CARD16 enable;
|
| 177 |
+
CARD16 pad2;
|
| 178 |
+
} xRRSelectInputReq;
|
| 179 |
+
#define sz_xRRSelectInputReq 12
|
| 180 |
+
|
| 181 |
+
/*
|
| 182 |
+
* Additions for version 1.2
|
| 183 |
+
*/
|
| 184 |
+
|
| 185 |
+
typedef struct _xRRModeInfo {
|
| 186 |
+
RRMode id;
|
| 187 |
+
CARD16 width;
|
| 188 |
+
CARD16 height;
|
| 189 |
+
CARD32 dotClock;
|
| 190 |
+
CARD16 hSyncStart;
|
| 191 |
+
CARD16 hSyncEnd;
|
| 192 |
+
CARD16 hTotal;
|
| 193 |
+
CARD16 hSkew;
|
| 194 |
+
CARD16 vSyncStart;
|
| 195 |
+
CARD16 vSyncEnd;
|
| 196 |
+
CARD16 vTotal;
|
| 197 |
+
CARD16 nameLength;
|
| 198 |
+
RRModeFlags modeFlags;
|
| 199 |
+
} xRRModeInfo;
|
| 200 |
+
#define sz_xRRModeInfo 32
|
| 201 |
+
|
| 202 |
+
typedef struct {
|
| 203 |
+
CARD8 reqType;
|
| 204 |
+
CARD8 randrReqType;
|
| 205 |
+
CARD16 length;
|
| 206 |
+
Window window;
|
| 207 |
+
} xRRGetScreenSizeRangeReq;
|
| 208 |
+
#define sz_xRRGetScreenSizeRangeReq 8
|
| 209 |
+
|
| 210 |
+
typedef struct {
|
| 211 |
+
BYTE type; /* X_Reply */
|
| 212 |
+
CARD8 pad;
|
| 213 |
+
CARD16 sequenceNumber;
|
| 214 |
+
CARD32 length;
|
| 215 |
+
CARD16 minWidth;
|
| 216 |
+
CARD16 minHeight;
|
| 217 |
+
CARD16 maxWidth;
|
| 218 |
+
CARD16 maxHeight;
|
| 219 |
+
CARD32 pad0;
|
| 220 |
+
CARD32 pad1;
|
| 221 |
+
CARD32 pad2;
|
| 222 |
+
CARD32 pad3;
|
| 223 |
+
} xRRGetScreenSizeRangeReply;
|
| 224 |
+
#define sz_xRRGetScreenSizeRangeReply 32
|
| 225 |
+
|
| 226 |
+
typedef struct {
|
| 227 |
+
CARD8 reqType;
|
| 228 |
+
CARD8 randrReqType;
|
| 229 |
+
CARD16 length;
|
| 230 |
+
Window window;
|
| 231 |
+
CARD16 width;
|
| 232 |
+
CARD16 height;
|
| 233 |
+
CARD32 widthInMillimeters;
|
| 234 |
+
CARD32 heightInMillimeters;
|
| 235 |
+
} xRRSetScreenSizeReq;
|
| 236 |
+
#define sz_xRRSetScreenSizeReq 20
|
| 237 |
+
|
| 238 |
+
typedef struct {
|
| 239 |
+
CARD8 reqType;
|
| 240 |
+
CARD8 randrReqType;
|
| 241 |
+
CARD16 length;
|
| 242 |
+
Window window;
|
| 243 |
+
} xRRGetScreenResourcesReq;
|
| 244 |
+
#define sz_xRRGetScreenResourcesReq 8
|
| 245 |
+
|
| 246 |
+
typedef struct {
|
| 247 |
+
BYTE type;
|
| 248 |
+
CARD8 pad;
|
| 249 |
+
CARD16 sequenceNumber;
|
| 250 |
+
CARD32 length;
|
| 251 |
+
Time timestamp;
|
| 252 |
+
Time configTimestamp;
|
| 253 |
+
CARD16 nCrtcs;
|
| 254 |
+
CARD16 nOutputs;
|
| 255 |
+
CARD16 nModes;
|
| 256 |
+
CARD16 nbytesNames;
|
| 257 |
+
CARD32 pad1;
|
| 258 |
+
CARD32 pad2;
|
| 259 |
+
} xRRGetScreenResourcesReply;
|
| 260 |
+
#define sz_xRRGetScreenResourcesReply 32
|
| 261 |
+
|
| 262 |
+
typedef struct {
|
| 263 |
+
CARD8 reqType;
|
| 264 |
+
CARD8 randrReqType;
|
| 265 |
+
CARD16 length;
|
| 266 |
+
RROutput output;
|
| 267 |
+
Time configTimestamp;
|
| 268 |
+
} xRRGetOutputInfoReq;
|
| 269 |
+
#define sz_xRRGetOutputInfoReq 12
|
| 270 |
+
|
| 271 |
+
typedef struct {
|
| 272 |
+
BYTE type;
|
| 273 |
+
CARD8 status;
|
| 274 |
+
CARD16 sequenceNumber;
|
| 275 |
+
CARD32 length;
|
| 276 |
+
Time timestamp;
|
| 277 |
+
RRCrtc crtc;
|
| 278 |
+
CARD32 mmWidth;
|
| 279 |
+
CARD32 mmHeight;
|
| 280 |
+
CARD8 connection;
|
| 281 |
+
CARD8 subpixelOrder;
|
| 282 |
+
CARD16 nCrtcs;
|
| 283 |
+
CARD16 nModes;
|
| 284 |
+
CARD16 nPreferred;
|
| 285 |
+
CARD16 nClones;
|
| 286 |
+
CARD16 nameLength;
|
| 287 |
+
} xRRGetOutputInfoReply;
|
| 288 |
+
#define sz_xRRGetOutputInfoReply 36
|
| 289 |
+
|
| 290 |
+
typedef struct {
|
| 291 |
+
CARD8 reqType;
|
| 292 |
+
CARD8 randrReqType;
|
| 293 |
+
CARD16 length;
|
| 294 |
+
RROutput output;
|
| 295 |
+
} xRRListOutputPropertiesReq;
|
| 296 |
+
#define sz_xRRListOutputPropertiesReq 8
|
| 297 |
+
|
| 298 |
+
typedef struct {
|
| 299 |
+
BYTE type;
|
| 300 |
+
CARD8 pad0;
|
| 301 |
+
CARD16 sequenceNumber;
|
| 302 |
+
CARD32 length;
|
| 303 |
+
CARD16 nAtoms;
|
| 304 |
+
CARD16 pad1;
|
| 305 |
+
CARD32 pad2;
|
| 306 |
+
CARD32 pad3;
|
| 307 |
+
CARD32 pad4;
|
| 308 |
+
CARD32 pad5;
|
| 309 |
+
CARD32 pad6;
|
| 310 |
+
} xRRListOutputPropertiesReply;
|
| 311 |
+
#define sz_xRRListOutputPropertiesReply 32
|
| 312 |
+
|
| 313 |
+
typedef struct {
|
| 314 |
+
CARD8 reqType;
|
| 315 |
+
CARD8 randrReqType;
|
| 316 |
+
CARD16 length;
|
| 317 |
+
RROutput output;
|
| 318 |
+
Atom property;
|
| 319 |
+
} xRRQueryOutputPropertyReq;
|
| 320 |
+
#define sz_xRRQueryOutputPropertyReq 12
|
| 321 |
+
|
| 322 |
+
typedef struct {
|
| 323 |
+
BYTE type;
|
| 324 |
+
BYTE pad0;
|
| 325 |
+
CARD16 sequenceNumber;
|
| 326 |
+
CARD32 length;
|
| 327 |
+
BOOL pending;
|
| 328 |
+
BOOL range;
|
| 329 |
+
BOOL immutable;
|
| 330 |
+
BYTE pad1;
|
| 331 |
+
CARD32 pad2;
|
| 332 |
+
CARD32 pad3;
|
| 333 |
+
CARD32 pad4;
|
| 334 |
+
CARD32 pad5;
|
| 335 |
+
CARD32 pad6;
|
| 336 |
+
} xRRQueryOutputPropertyReply;
|
| 337 |
+
#define sz_xRRQueryOutputPropertyReply 32
|
| 338 |
+
|
| 339 |
+
typedef struct {
|
| 340 |
+
CARD8 reqType;
|
| 341 |
+
CARD8 randrReqType;
|
| 342 |
+
CARD16 length;
|
| 343 |
+
RROutput output;
|
| 344 |
+
Atom property;
|
| 345 |
+
BOOL pending;
|
| 346 |
+
BOOL range;
|
| 347 |
+
CARD16 pad;
|
| 348 |
+
} xRRConfigureOutputPropertyReq;
|
| 349 |
+
#define sz_xRRConfigureOutputPropertyReq 16
|
| 350 |
+
|
| 351 |
+
typedef struct {
|
| 352 |
+
CARD8 reqType;
|
| 353 |
+
CARD8 randrReqType;
|
| 354 |
+
CARD16 length;
|
| 355 |
+
RROutput output;
|
| 356 |
+
Atom property;
|
| 357 |
+
Atom type;
|
| 358 |
+
CARD8 format;
|
| 359 |
+
CARD8 mode;
|
| 360 |
+
CARD16 pad;
|
| 361 |
+
CARD32 nUnits;
|
| 362 |
+
} xRRChangeOutputPropertyReq;
|
| 363 |
+
#define sz_xRRChangeOutputPropertyReq 24
|
| 364 |
+
|
| 365 |
+
typedef struct {
|
| 366 |
+
CARD8 reqType;
|
| 367 |
+
CARD8 randrReqType;
|
| 368 |
+
CARD16 length;
|
| 369 |
+
RROutput output;
|
| 370 |
+
Atom property;
|
| 371 |
+
} xRRDeleteOutputPropertyReq;
|
| 372 |
+
#define sz_xRRDeleteOutputPropertyReq 12
|
| 373 |
+
|
| 374 |
+
typedef struct {
|
| 375 |
+
CARD8 reqType;
|
| 376 |
+
CARD8 randrReqType;
|
| 377 |
+
CARD16 length;
|
| 378 |
+
RROutput output;
|
| 379 |
+
Atom property;
|
| 380 |
+
Atom type;
|
| 381 |
+
CARD32 longOffset;
|
| 382 |
+
CARD32 longLength;
|
| 383 |
+
#ifdef __cplusplus
|
| 384 |
+
BOOL _delete;
|
| 385 |
+
#else
|
| 386 |
+
BOOL delete;
|
| 387 |
+
#endif
|
| 388 |
+
BOOL pending;
|
| 389 |
+
CARD16 pad1;
|
| 390 |
+
} xRRGetOutputPropertyReq;
|
| 391 |
+
#define sz_xRRGetOutputPropertyReq 28
|
| 392 |
+
|
| 393 |
+
typedef struct {
|
| 394 |
+
BYTE type;
|
| 395 |
+
CARD8 format;
|
| 396 |
+
CARD16 sequenceNumber;
|
| 397 |
+
CARD32 length;
|
| 398 |
+
Atom propertyType;
|
| 399 |
+
CARD32 bytesAfter;
|
| 400 |
+
CARD32 nItems;
|
| 401 |
+
CARD32 pad1;
|
| 402 |
+
CARD32 pad2;
|
| 403 |
+
CARD32 pad3;
|
| 404 |
+
} xRRGetOutputPropertyReply;
|
| 405 |
+
#define sz_xRRGetOutputPropertyReply 32
|
| 406 |
+
|
| 407 |
+
typedef struct {
|
| 408 |
+
CARD8 reqType;
|
| 409 |
+
CARD8 randrReqType;
|
| 410 |
+
CARD16 length;
|
| 411 |
+
Window window;
|
| 412 |
+
xRRModeInfo modeInfo;
|
| 413 |
+
} xRRCreateModeReq;
|
| 414 |
+
#define sz_xRRCreateModeReq 40
|
| 415 |
+
|
| 416 |
+
typedef struct {
|
| 417 |
+
BYTE type;
|
| 418 |
+
CARD8 pad0;
|
| 419 |
+
CARD16 sequenceNumber;
|
| 420 |
+
CARD32 length;
|
| 421 |
+
RRMode mode;
|
| 422 |
+
CARD32 pad1;
|
| 423 |
+
CARD32 pad2;
|
| 424 |
+
CARD32 pad3;
|
| 425 |
+
CARD32 pad4;
|
| 426 |
+
CARD32 pad5;
|
| 427 |
+
} xRRCreateModeReply;
|
| 428 |
+
#define sz_xRRCreateModeReply 32
|
| 429 |
+
|
| 430 |
+
typedef struct {
|
| 431 |
+
CARD8 reqType;
|
| 432 |
+
CARD8 randrReqType;
|
| 433 |
+
CARD16 length;
|
| 434 |
+
RRMode mode;
|
| 435 |
+
} xRRDestroyModeReq;
|
| 436 |
+
#define sz_xRRDestroyModeReq 8
|
| 437 |
+
|
| 438 |
+
typedef struct {
|
| 439 |
+
CARD8 reqType;
|
| 440 |
+
CARD8 randrReqType;
|
| 441 |
+
CARD16 length;
|
| 442 |
+
RROutput output;
|
| 443 |
+
RRMode mode;
|
| 444 |
+
} xRRAddOutputModeReq;
|
| 445 |
+
#define sz_xRRAddOutputModeReq 12
|
| 446 |
+
|
| 447 |
+
typedef struct {
|
| 448 |
+
CARD8 reqType;
|
| 449 |
+
CARD8 randrReqType;
|
| 450 |
+
CARD16 length;
|
| 451 |
+
RROutput output;
|
| 452 |
+
RRMode mode;
|
| 453 |
+
} xRRDeleteOutputModeReq;
|
| 454 |
+
#define sz_xRRDeleteOutputModeReq 12
|
| 455 |
+
|
| 456 |
+
typedef struct {
|
| 457 |
+
CARD8 reqType;
|
| 458 |
+
CARD8 randrReqType;
|
| 459 |
+
CARD16 length;
|
| 460 |
+
RRCrtc crtc;
|
| 461 |
+
Time configTimestamp;
|
| 462 |
+
} xRRGetCrtcInfoReq;
|
| 463 |
+
#define sz_xRRGetCrtcInfoReq 12
|
| 464 |
+
|
| 465 |
+
typedef struct {
|
| 466 |
+
BYTE type;
|
| 467 |
+
CARD8 status;
|
| 468 |
+
CARD16 sequenceNumber;
|
| 469 |
+
CARD32 length;
|
| 470 |
+
Time timestamp;
|
| 471 |
+
INT16 x;
|
| 472 |
+
INT16 y;
|
| 473 |
+
CARD16 width;
|
| 474 |
+
CARD16 height;
|
| 475 |
+
RRMode mode;
|
| 476 |
+
Rotation rotation;
|
| 477 |
+
Rotation rotations;
|
| 478 |
+
CARD16 nOutput;
|
| 479 |
+
CARD16 nPossibleOutput;
|
| 480 |
+
} xRRGetCrtcInfoReply;
|
| 481 |
+
#define sz_xRRGetCrtcInfoReply 32
|
| 482 |
+
|
| 483 |
+
typedef struct {
|
| 484 |
+
CARD8 reqType;
|
| 485 |
+
CARD8 randrReqType;
|
| 486 |
+
CARD16 length;
|
| 487 |
+
RRCrtc crtc;
|
| 488 |
+
Time timestamp;
|
| 489 |
+
Time configTimestamp;
|
| 490 |
+
INT16 x;
|
| 491 |
+
INT16 y;
|
| 492 |
+
RRMode mode;
|
| 493 |
+
Rotation rotation;
|
| 494 |
+
CARD16 pad;
|
| 495 |
+
} xRRSetCrtcConfigReq;
|
| 496 |
+
#define sz_xRRSetCrtcConfigReq 28
|
| 497 |
+
|
| 498 |
+
typedef struct {
|
| 499 |
+
BYTE type;
|
| 500 |
+
CARD8 status;
|
| 501 |
+
CARD16 sequenceNumber;
|
| 502 |
+
CARD32 length;
|
| 503 |
+
Time newTimestamp;
|
| 504 |
+
CARD32 pad1;
|
| 505 |
+
CARD32 pad2;
|
| 506 |
+
CARD32 pad3;
|
| 507 |
+
CARD32 pad4;
|
| 508 |
+
CARD32 pad5;
|
| 509 |
+
} xRRSetCrtcConfigReply;
|
| 510 |
+
#define sz_xRRSetCrtcConfigReply 32
|
| 511 |
+
|
| 512 |
+
typedef struct {
|
| 513 |
+
CARD8 reqType;
|
| 514 |
+
CARD8 randrReqType;
|
| 515 |
+
CARD16 length;
|
| 516 |
+
RRCrtc crtc;
|
| 517 |
+
} xRRGetCrtcGammaSizeReq;
|
| 518 |
+
#define sz_xRRGetCrtcGammaSizeReq 8
|
| 519 |
+
|
| 520 |
+
typedef struct {
|
| 521 |
+
BYTE type;
|
| 522 |
+
CARD8 status;
|
| 523 |
+
CARD16 sequenceNumber;
|
| 524 |
+
CARD32 length;
|
| 525 |
+
CARD16 size;
|
| 526 |
+
CARD16 pad1;
|
| 527 |
+
CARD32 pad2;
|
| 528 |
+
CARD32 pad3;
|
| 529 |
+
CARD32 pad4;
|
| 530 |
+
CARD32 pad5;
|
| 531 |
+
CARD32 pad6;
|
| 532 |
+
} xRRGetCrtcGammaSizeReply;
|
| 533 |
+
#define sz_xRRGetCrtcGammaSizeReply 32
|
| 534 |
+
|
| 535 |
+
typedef struct {
|
| 536 |
+
CARD8 reqType;
|
| 537 |
+
CARD8 randrReqType;
|
| 538 |
+
CARD16 length;
|
| 539 |
+
RRCrtc crtc;
|
| 540 |
+
} xRRGetCrtcGammaReq;
|
| 541 |
+
#define sz_xRRGetCrtcGammaReq 8
|
| 542 |
+
|
| 543 |
+
typedef struct {
|
| 544 |
+
BYTE type;
|
| 545 |
+
CARD8 status;
|
| 546 |
+
CARD16 sequenceNumber;
|
| 547 |
+
CARD32 length;
|
| 548 |
+
CARD16 size;
|
| 549 |
+
CARD16 pad1;
|
| 550 |
+
CARD32 pad2;
|
| 551 |
+
CARD32 pad3;
|
| 552 |
+
CARD32 pad4;
|
| 553 |
+
CARD32 pad5;
|
| 554 |
+
CARD32 pad6;
|
| 555 |
+
} xRRGetCrtcGammaReply;
|
| 556 |
+
#define sz_xRRGetCrtcGammaReply 32
|
| 557 |
+
|
| 558 |
+
typedef struct {
|
| 559 |
+
CARD8 reqType;
|
| 560 |
+
CARD8 randrReqType;
|
| 561 |
+
CARD16 length;
|
| 562 |
+
RRCrtc crtc;
|
| 563 |
+
CARD16 size;
|
| 564 |
+
CARD16 pad1;
|
| 565 |
+
} xRRSetCrtcGammaReq;
|
| 566 |
+
#define sz_xRRSetCrtcGammaReq 12
|
| 567 |
+
|
| 568 |
+
/*
|
| 569 |
+
* Additions for V1.3
|
| 570 |
+
*/
|
| 571 |
+
|
| 572 |
+
typedef xRRGetScreenResourcesReq xRRGetScreenResourcesCurrentReq;
|
| 573 |
+
|
| 574 |
+
#define sz_xRRGetScreenResourcesCurrentReq sz_xRRGetScreenResourcesReq
|
| 575 |
+
|
| 576 |
+
typedef xRRGetScreenResourcesReply xRRGetScreenResourcesCurrentReply;
|
| 577 |
+
#define sz_xRRGetScreenResourcesCurrentReply sz_xRRGetScreenResourcesReply
|
| 578 |
+
|
| 579 |
+
typedef struct {
|
| 580 |
+
CARD8 reqType;
|
| 581 |
+
CARD8 randrReqType;
|
| 582 |
+
CARD16 length;
|
| 583 |
+
RRCrtc crtc;
|
| 584 |
+
xRenderTransform transform;
|
| 585 |
+
CARD16 nbytesFilter; /* number of bytes in filter name */
|
| 586 |
+
CARD16 pad;
|
| 587 |
+
} xRRSetCrtcTransformReq;
|
| 588 |
+
|
| 589 |
+
#define sz_xRRSetCrtcTransformReq 48
|
| 590 |
+
|
| 591 |
+
typedef struct {
|
| 592 |
+
CARD8 reqType;
|
| 593 |
+
CARD8 randrReqType;
|
| 594 |
+
CARD16 length;
|
| 595 |
+
RRCrtc crtc;
|
| 596 |
+
} xRRGetCrtcTransformReq;
|
| 597 |
+
|
| 598 |
+
#define sz_xRRGetCrtcTransformReq 8
|
| 599 |
+
|
| 600 |
+
typedef struct {
|
| 601 |
+
BYTE type;
|
| 602 |
+
CARD8 status;
|
| 603 |
+
CARD16 sequenceNumber;
|
| 604 |
+
CARD32 length;
|
| 605 |
+
xRenderTransform pendingTransform;
|
| 606 |
+
BYTE hasTransforms;
|
| 607 |
+
CARD8 pad0;
|
| 608 |
+
CARD16 pad1;
|
| 609 |
+
xRenderTransform currentTransform;
|
| 610 |
+
CARD32 pad2;
|
| 611 |
+
CARD16 pendingNbytesFilter; /* number of bytes in filter name */
|
| 612 |
+
CARD16 pendingNparamsFilter; /* number of filter params */
|
| 613 |
+
CARD16 currentNbytesFilter; /* number of bytes in filter name */
|
| 614 |
+
CARD16 currentNparamsFilter; /* number of filter params */
|
| 615 |
+
} xRRGetCrtcTransformReply;
|
| 616 |
+
|
| 617 |
+
#define sz_xRRGetCrtcTransformReply 96
|
| 618 |
+
|
| 619 |
+
typedef struct {
|
| 620 |
+
CARD8 reqType;
|
| 621 |
+
CARD8 randrReqType;
|
| 622 |
+
CARD16 length;
|
| 623 |
+
Window window;
|
| 624 |
+
RROutput output;
|
| 625 |
+
} xRRSetOutputPrimaryReq;
|
| 626 |
+
#define sz_xRRSetOutputPrimaryReq 12
|
| 627 |
+
|
| 628 |
+
typedef struct {
|
| 629 |
+
CARD8 reqType;
|
| 630 |
+
CARD8 randrReqType;
|
| 631 |
+
CARD16 length;
|
| 632 |
+
Window window;
|
| 633 |
+
} xRRGetOutputPrimaryReq;
|
| 634 |
+
#define sz_xRRGetOutputPrimaryReq 8
|
| 635 |
+
|
| 636 |
+
typedef struct {
|
| 637 |
+
BYTE type;
|
| 638 |
+
CARD8 pad;
|
| 639 |
+
CARD16 sequenceNumber;
|
| 640 |
+
CARD32 length;
|
| 641 |
+
RROutput output;
|
| 642 |
+
CARD32 pad1;
|
| 643 |
+
CARD32 pad2;
|
| 644 |
+
CARD32 pad3;
|
| 645 |
+
CARD32 pad4;
|
| 646 |
+
CARD32 pad5;
|
| 647 |
+
} xRRGetOutputPrimaryReply;
|
| 648 |
+
#define sz_xRRGetOutputPrimaryReply 32
|
| 649 |
+
|
| 650 |
+
/*
|
| 651 |
+
* Additions for V1.4
|
| 652 |
+
*/
|
| 653 |
+
|
| 654 |
+
typedef struct {
|
| 655 |
+
CARD8 reqType;
|
| 656 |
+
CARD8 randrReqType;
|
| 657 |
+
CARD16 length;
|
| 658 |
+
Window window;
|
| 659 |
+
} xRRGetProvidersReq;
|
| 660 |
+
#define sz_xRRGetProvidersReq 8
|
| 661 |
+
|
| 662 |
+
typedef struct {
|
| 663 |
+
BYTE type;
|
| 664 |
+
CARD8 pad;
|
| 665 |
+
CARD16 sequenceNumber;
|
| 666 |
+
CARD32 length;
|
| 667 |
+
Time timestamp;
|
| 668 |
+
CARD16 nProviders;
|
| 669 |
+
CARD16 pad1;
|
| 670 |
+
CARD32 pad2;
|
| 671 |
+
CARD32 pad3;
|
| 672 |
+
CARD32 pad4;
|
| 673 |
+
CARD32 pad5;
|
| 674 |
+
} xRRGetProvidersReply;
|
| 675 |
+
#define sz_xRRGetProvidersReply 32
|
| 676 |
+
|
| 677 |
+
typedef struct {
|
| 678 |
+
CARD8 reqType;
|
| 679 |
+
CARD8 randrReqType;
|
| 680 |
+
CARD16 length;
|
| 681 |
+
RRProvider provider;
|
| 682 |
+
Time configTimestamp;
|
| 683 |
+
} xRRGetProviderInfoReq;
|
| 684 |
+
#define sz_xRRGetProviderInfoReq 12
|
| 685 |
+
|
| 686 |
+
typedef struct {
|
| 687 |
+
BYTE type;
|
| 688 |
+
CARD8 status;
|
| 689 |
+
CARD16 sequenceNumber;
|
| 690 |
+
CARD32 length;
|
| 691 |
+
Time timestamp;
|
| 692 |
+
CARD32 capabilities;
|
| 693 |
+
CARD16 nCrtcs;
|
| 694 |
+
CARD16 nOutputs;
|
| 695 |
+
CARD16 nAssociatedProviders;
|
| 696 |
+
CARD16 nameLength;
|
| 697 |
+
CARD32 pad1;
|
| 698 |
+
CARD32 pad2;
|
| 699 |
+
} xRRGetProviderInfoReply;
|
| 700 |
+
#define sz_xRRGetProviderInfoReply 32
|
| 701 |
+
|
| 702 |
+
typedef struct {
|
| 703 |
+
CARD8 reqType;
|
| 704 |
+
CARD8 randrReqType;
|
| 705 |
+
CARD16 length;
|
| 706 |
+
RRProvider provider;
|
| 707 |
+
RRProvider source_provider;
|
| 708 |
+
Time configTimestamp;
|
| 709 |
+
} xRRSetProviderOutputSourceReq;
|
| 710 |
+
#define sz_xRRSetProviderOutputSourceReq 16
|
| 711 |
+
|
| 712 |
+
typedef struct {
|
| 713 |
+
CARD8 reqType;
|
| 714 |
+
CARD8 randrReqType;
|
| 715 |
+
CARD16 length;
|
| 716 |
+
RRProvider provider;
|
| 717 |
+
RRProvider sink_provider;
|
| 718 |
+
Time configTimestamp;
|
| 719 |
+
} xRRSetProviderOffloadSinkReq;
|
| 720 |
+
#define sz_xRRSetProviderOffloadSinkReq 16
|
| 721 |
+
|
| 722 |
+
typedef struct {
|
| 723 |
+
CARD8 reqType;
|
| 724 |
+
CARD8 randrReqType;
|
| 725 |
+
CARD16 length;
|
| 726 |
+
RRProvider provider;
|
| 727 |
+
} xRRListProviderPropertiesReq;
|
| 728 |
+
#define sz_xRRListProviderPropertiesReq 8
|
| 729 |
+
|
| 730 |
+
typedef struct {
|
| 731 |
+
BYTE type;
|
| 732 |
+
CARD8 pad0;
|
| 733 |
+
CARD16 sequenceNumber;
|
| 734 |
+
CARD32 length;
|
| 735 |
+
CARD16 nAtoms;
|
| 736 |
+
CARD16 pad1;
|
| 737 |
+
CARD32 pad2;
|
| 738 |
+
CARD32 pad3;
|
| 739 |
+
CARD32 pad4;
|
| 740 |
+
CARD32 pad5;
|
| 741 |
+
CARD32 pad6;
|
| 742 |
+
} xRRListProviderPropertiesReply;
|
| 743 |
+
#define sz_xRRListProviderPropertiesReply 32
|
| 744 |
+
|
| 745 |
+
typedef struct {
|
| 746 |
+
CARD8 reqType;
|
| 747 |
+
CARD8 randrReqType;
|
| 748 |
+
CARD16 length;
|
| 749 |
+
RRProvider provider;
|
| 750 |
+
Atom property;
|
| 751 |
+
} xRRQueryProviderPropertyReq;
|
| 752 |
+
#define sz_xRRQueryProviderPropertyReq 12
|
| 753 |
+
|
| 754 |
+
typedef struct {
|
| 755 |
+
BYTE type;
|
| 756 |
+
BYTE pad0;
|
| 757 |
+
CARD16 sequenceNumber;
|
| 758 |
+
CARD32 length;
|
| 759 |
+
BOOL pending;
|
| 760 |
+
BOOL range;
|
| 761 |
+
BOOL immutable;
|
| 762 |
+
BYTE pad1;
|
| 763 |
+
CARD32 pad2;
|
| 764 |
+
CARD32 pad3;
|
| 765 |
+
CARD32 pad4;
|
| 766 |
+
CARD32 pad5;
|
| 767 |
+
CARD32 pad6;
|
| 768 |
+
} xRRQueryProviderPropertyReply;
|
| 769 |
+
#define sz_xRRQueryProviderPropertyReply 32
|
| 770 |
+
|
| 771 |
+
typedef struct {
|
| 772 |
+
CARD8 reqType;
|
| 773 |
+
CARD8 randrReqType;
|
| 774 |
+
CARD16 length;
|
| 775 |
+
RRProvider provider;
|
| 776 |
+
Atom property;
|
| 777 |
+
BOOL pending;
|
| 778 |
+
BOOL range;
|
| 779 |
+
CARD16 pad;
|
| 780 |
+
} xRRConfigureProviderPropertyReq;
|
| 781 |
+
#define sz_xRRConfigureProviderPropertyReq 16
|
| 782 |
+
|
| 783 |
+
typedef struct {
|
| 784 |
+
CARD8 reqType;
|
| 785 |
+
CARD8 randrReqType;
|
| 786 |
+
CARD16 length;
|
| 787 |
+
RRProvider provider;
|
| 788 |
+
Atom property;
|
| 789 |
+
Atom type;
|
| 790 |
+
CARD8 format;
|
| 791 |
+
CARD8 mode;
|
| 792 |
+
CARD16 pad;
|
| 793 |
+
CARD32 nUnits;
|
| 794 |
+
} xRRChangeProviderPropertyReq;
|
| 795 |
+
#define sz_xRRChangeProviderPropertyReq 24
|
| 796 |
+
|
| 797 |
+
typedef struct {
|
| 798 |
+
CARD8 reqType;
|
| 799 |
+
CARD8 randrReqType;
|
| 800 |
+
CARD16 length;
|
| 801 |
+
RRProvider provider;
|
| 802 |
+
Atom property;
|
| 803 |
+
} xRRDeleteProviderPropertyReq;
|
| 804 |
+
#define sz_xRRDeleteProviderPropertyReq 12
|
| 805 |
+
|
| 806 |
+
typedef struct {
|
| 807 |
+
CARD8 reqType;
|
| 808 |
+
CARD8 randrReqType;
|
| 809 |
+
CARD16 length;
|
| 810 |
+
RRProvider provider;
|
| 811 |
+
Atom property;
|
| 812 |
+
Atom type;
|
| 813 |
+
CARD32 longOffset;
|
| 814 |
+
CARD32 longLength;
|
| 815 |
+
#ifdef __cplusplus
|
| 816 |
+
BOOL _delete;
|
| 817 |
+
#else
|
| 818 |
+
BOOL delete;
|
| 819 |
+
#endif
|
| 820 |
+
BOOL pending;
|
| 821 |
+
CARD16 pad1;
|
| 822 |
+
} xRRGetProviderPropertyReq;
|
| 823 |
+
#define sz_xRRGetProviderPropertyReq 28
|
| 824 |
+
|
| 825 |
+
typedef struct {
|
| 826 |
+
BYTE type;
|
| 827 |
+
CARD8 format;
|
| 828 |
+
CARD16 sequenceNumber;
|
| 829 |
+
CARD32 length;
|
| 830 |
+
Atom propertyType;
|
| 831 |
+
CARD32 bytesAfter;
|
| 832 |
+
CARD32 nItems;
|
| 833 |
+
CARD32 pad1;
|
| 834 |
+
CARD32 pad2;
|
| 835 |
+
CARD32 pad3;
|
| 836 |
+
} xRRGetProviderPropertyReply;
|
| 837 |
+
#define sz_xRRGetProviderPropertyReply 32
|
| 838 |
+
|
| 839 |
+
/*
|
| 840 |
+
* Additions for V1.6
|
| 841 |
+
*/
|
| 842 |
+
|
| 843 |
+
typedef struct {
|
| 844 |
+
CARD8 reqType;
|
| 845 |
+
CARD8 randrReqType;
|
| 846 |
+
CARD16 length;
|
| 847 |
+
Window window;
|
| 848 |
+
RRLease lid;
|
| 849 |
+
CARD16 nCrtcs;
|
| 850 |
+
CARD16 nOutputs;
|
| 851 |
+
} xRRCreateLeaseReq;
|
| 852 |
+
#define sz_xRRCreateLeaseReq 16
|
| 853 |
+
|
| 854 |
+
typedef struct {
|
| 855 |
+
BYTE type;
|
| 856 |
+
CARD8 nfd;
|
| 857 |
+
CARD16 sequenceNumber;
|
| 858 |
+
CARD32 length;
|
| 859 |
+
CARD32 pad2;
|
| 860 |
+
CARD32 pad3;
|
| 861 |
+
CARD32 pad4;
|
| 862 |
+
CARD32 pad5;
|
| 863 |
+
CARD32 pad6;
|
| 864 |
+
CARD32 pad7;
|
| 865 |
+
} xRRCreateLeaseReply;
|
| 866 |
+
#define sz_xRRCreateLeaseReply 32
|
| 867 |
+
|
| 868 |
+
typedef struct {
|
| 869 |
+
CARD8 reqType;
|
| 870 |
+
CARD8 randrReqType;
|
| 871 |
+
CARD16 length;
|
| 872 |
+
RRLease lid;
|
| 873 |
+
BYTE terminate;
|
| 874 |
+
CARD8 pad1;
|
| 875 |
+
CARD16 pad2;
|
| 876 |
+
} xRRFreeLeaseReq;
|
| 877 |
+
#define sz_xRRFreeLeaseReq 12
|
| 878 |
+
|
| 879 |
+
/*
|
| 880 |
+
* event
|
| 881 |
+
*/
|
| 882 |
+
typedef struct {
|
| 883 |
+
CARD8 type; /* always evBase + ScreenChangeNotify */
|
| 884 |
+
CARD8 rotation; /* new rotation */
|
| 885 |
+
CARD16 sequenceNumber;
|
| 886 |
+
Time timestamp; /* time screen was changed */
|
| 887 |
+
Time configTimestamp; /* time config data was changed */
|
| 888 |
+
Window root; /* root window */
|
| 889 |
+
Window window; /* window requesting notification */
|
| 890 |
+
SizeID sizeID; /* new size ID */
|
| 891 |
+
CARD16 subpixelOrder; /* subpixel order */
|
| 892 |
+
CARD16 widthInPixels; /* new size */
|
| 893 |
+
CARD16 heightInPixels;
|
| 894 |
+
CARD16 widthInMillimeters;
|
| 895 |
+
CARD16 heightInMillimeters;
|
| 896 |
+
} xRRScreenChangeNotifyEvent;
|
| 897 |
+
#define sz_xRRScreenChangeNotifyEvent 32
|
| 898 |
+
|
| 899 |
+
typedef struct {
|
| 900 |
+
CARD8 type; /* always evBase + RRNotify */
|
| 901 |
+
CARD8 subCode; /* RRNotify_CrtcChange */
|
| 902 |
+
CARD16 sequenceNumber;
|
| 903 |
+
Time timestamp; /* time crtc was changed */
|
| 904 |
+
Window window; /* window requesting notification */
|
| 905 |
+
RRCrtc crtc; /* affected CRTC */
|
| 906 |
+
RRMode mode; /* current mode */
|
| 907 |
+
CARD16 rotation; /* rotation and reflection */
|
| 908 |
+
CARD16 pad1; /* unused */
|
| 909 |
+
INT16 x; /* new location */
|
| 910 |
+
INT16 y;
|
| 911 |
+
CARD16 width; /* new size */
|
| 912 |
+
CARD16 height;
|
| 913 |
+
} xRRCrtcChangeNotifyEvent;
|
| 914 |
+
#define sz_xRRCrtcChangeNotifyEvent 32
|
| 915 |
+
|
| 916 |
+
typedef struct {
|
| 917 |
+
CARD8 type; /* always evBase + RRNotify */
|
| 918 |
+
CARD8 subCode; /* RRNotify_OutputChange */
|
| 919 |
+
CARD16 sequenceNumber;
|
| 920 |
+
Time timestamp; /* time output was changed */
|
| 921 |
+
Time configTimestamp; /* time config was changed */
|
| 922 |
+
Window window; /* window requesting notification */
|
| 923 |
+
RROutput output; /* affected output */
|
| 924 |
+
RRCrtc crtc; /* current crtc */
|
| 925 |
+
RRMode mode; /* current mode */
|
| 926 |
+
CARD16 rotation; /* rotation and reflection */
|
| 927 |
+
CARD8 connection; /* connection status */
|
| 928 |
+
CARD8 subpixelOrder; /* subpixel order */
|
| 929 |
+
} xRROutputChangeNotifyEvent;
|
| 930 |
+
#define sz_xRROutputChangeNotifyEvent 32
|
| 931 |
+
|
| 932 |
+
typedef struct {
|
| 933 |
+
CARD8 type; /* always evBase + RRNotify */
|
| 934 |
+
CARD8 subCode; /* RRNotify_OutputProperty */
|
| 935 |
+
CARD16 sequenceNumber;
|
| 936 |
+
Window window; /* window requesting notification */
|
| 937 |
+
RROutput output; /* affected output */
|
| 938 |
+
Atom atom; /* property name */
|
| 939 |
+
Time timestamp; /* time crtc was changed */
|
| 940 |
+
CARD8 state; /* NewValue or Deleted */
|
| 941 |
+
CARD8 pad1;
|
| 942 |
+
CARD16 pad2;
|
| 943 |
+
CARD32 pad3;
|
| 944 |
+
CARD32 pad4;
|
| 945 |
+
} xRROutputPropertyNotifyEvent;
|
| 946 |
+
#define sz_xRROutputPropertyNotifyEvent 32
|
| 947 |
+
|
| 948 |
+
typedef struct {
|
| 949 |
+
CARD8 type; /* always evBase + RRNotify */
|
| 950 |
+
CARD8 subCode; /* RRNotify_ProviderChange */
|
| 951 |
+
CARD16 sequenceNumber;
|
| 952 |
+
Time timestamp; /* time provider was changed */
|
| 953 |
+
Window window; /* window requesting notification */
|
| 954 |
+
RRProvider provider; /* affected provider */
|
| 955 |
+
CARD32 pad1;
|
| 956 |
+
CARD32 pad2;
|
| 957 |
+
CARD32 pad3;
|
| 958 |
+
CARD32 pad4;
|
| 959 |
+
} xRRProviderChangeNotifyEvent;
|
| 960 |
+
#define sz_xRRProviderChangeNotifyEvent 32
|
| 961 |
+
|
| 962 |
+
typedef struct {
|
| 963 |
+
CARD8 type; /* always evBase + RRNotify */
|
| 964 |
+
CARD8 subCode; /* RRNotify_ProviderProperty */
|
| 965 |
+
CARD16 sequenceNumber;
|
| 966 |
+
Window window; /* window requesting notification */
|
| 967 |
+
RRProvider provider; /* affected provider */
|
| 968 |
+
Atom atom; /* property name */
|
| 969 |
+
Time timestamp; /* time provider was changed */
|
| 970 |
+
CARD8 state; /* NewValue or Deleted */
|
| 971 |
+
CARD8 pad1;
|
| 972 |
+
CARD16 pad2;
|
| 973 |
+
CARD32 pad3;
|
| 974 |
+
CARD32 pad4;
|
| 975 |
+
} xRRProviderPropertyNotifyEvent;
|
| 976 |
+
#define sz_xRRProviderPropertyNotifyEvent 32
|
| 977 |
+
|
| 978 |
+
typedef struct {
|
| 979 |
+
CARD8 type; /* always evBase + RRNotify */
|
| 980 |
+
CARD8 subCode; /* RRNotify_ResourceChange */
|
| 981 |
+
CARD16 sequenceNumber;
|
| 982 |
+
Time timestamp; /* time resource was changed */
|
| 983 |
+
Window window; /* window requesting notification */
|
| 984 |
+
CARD32 pad1;
|
| 985 |
+
CARD32 pad2;
|
| 986 |
+
CARD32 pad3;
|
| 987 |
+
CARD32 pad4;
|
| 988 |
+
CARD32 pad5;
|
| 989 |
+
} xRRResourceChangeNotifyEvent;
|
| 990 |
+
#define sz_xRRResourceChangeNotifyEvent 32
|
| 991 |
+
|
| 992 |
+
typedef struct {
|
| 993 |
+
CARD8 type; /* always evBase + RRNotify */
|
| 994 |
+
CARD8 subCode; /* RRNotify_Lease */
|
| 995 |
+
CARD16 sequenceNumber;
|
| 996 |
+
Time timestamp; /* time resource was changed */
|
| 997 |
+
Window window; /* window requesting notification */
|
| 998 |
+
RRLease lease;
|
| 999 |
+
CARD8 created; /* created/deleted */
|
| 1000 |
+
CARD8 pad0;
|
| 1001 |
+
CARD16 pad1;
|
| 1002 |
+
CARD32 pad2;
|
| 1003 |
+
CARD32 pad3;
|
| 1004 |
+
CARD32 pad4;
|
| 1005 |
+
} xRRLeaseNotifyEvent;
|
| 1006 |
+
#define sz_xRRLeaseNotifyEvent 32
|
| 1007 |
+
|
| 1008 |
+
typedef struct {
|
| 1009 |
+
CARD8 reqType;
|
| 1010 |
+
CARD8 randrReqType;
|
| 1011 |
+
CARD16 length;
|
| 1012 |
+
RRCrtc crtc;
|
| 1013 |
+
} xRRGetPanningReq;
|
| 1014 |
+
#define sz_xRRGetPanningReq 8
|
| 1015 |
+
|
| 1016 |
+
typedef struct {
|
| 1017 |
+
BYTE type;
|
| 1018 |
+
CARD8 status;
|
| 1019 |
+
CARD16 sequenceNumber;
|
| 1020 |
+
CARD32 length;
|
| 1021 |
+
Time timestamp;
|
| 1022 |
+
CARD16 left;
|
| 1023 |
+
CARD16 top;
|
| 1024 |
+
CARD16 width;
|
| 1025 |
+
CARD16 height;
|
| 1026 |
+
CARD16 track_left;
|
| 1027 |
+
CARD16 track_top;
|
| 1028 |
+
CARD16 track_width;
|
| 1029 |
+
CARD16 track_height;
|
| 1030 |
+
INT16 border_left;
|
| 1031 |
+
INT16 border_top;
|
| 1032 |
+
INT16 border_right;
|
| 1033 |
+
INT16 border_bottom;
|
| 1034 |
+
} xRRGetPanningReply;
|
| 1035 |
+
#define sz_xRRGetPanningReply 36
|
| 1036 |
+
|
| 1037 |
+
typedef struct {
|
| 1038 |
+
CARD8 reqType;
|
| 1039 |
+
CARD8 randrReqType;
|
| 1040 |
+
CARD16 length;
|
| 1041 |
+
RRCrtc crtc;
|
| 1042 |
+
Time timestamp;
|
| 1043 |
+
CARD16 left;
|
| 1044 |
+
CARD16 top;
|
| 1045 |
+
CARD16 width;
|
| 1046 |
+
CARD16 height;
|
| 1047 |
+
CARD16 track_left;
|
| 1048 |
+
CARD16 track_top;
|
| 1049 |
+
CARD16 track_width;
|
| 1050 |
+
CARD16 track_height;
|
| 1051 |
+
INT16 border_left;
|
| 1052 |
+
INT16 border_top;
|
| 1053 |
+
INT16 border_right;
|
| 1054 |
+
INT16 border_bottom;
|
| 1055 |
+
} xRRSetPanningReq;
|
| 1056 |
+
#define sz_xRRSetPanningReq 36
|
| 1057 |
+
|
| 1058 |
+
typedef struct {
|
| 1059 |
+
BYTE type;
|
| 1060 |
+
CARD8 status;
|
| 1061 |
+
CARD16 sequenceNumber;
|
| 1062 |
+
CARD32 length;
|
| 1063 |
+
Time newTimestamp;
|
| 1064 |
+
CARD32 pad1;
|
| 1065 |
+
CARD32 pad2;
|
| 1066 |
+
CARD32 pad3;
|
| 1067 |
+
CARD32 pad4;
|
| 1068 |
+
CARD32 pad5;
|
| 1069 |
+
} xRRSetPanningReply;
|
| 1070 |
+
#define sz_xRRSetPanningReply 32
|
| 1071 |
+
|
| 1072 |
+
typedef struct {
|
| 1073 |
+
Atom name;
|
| 1074 |
+
BOOL primary;
|
| 1075 |
+
BOOL automatic;
|
| 1076 |
+
CARD16 noutput;
|
| 1077 |
+
INT16 x;
|
| 1078 |
+
INT16 y;
|
| 1079 |
+
CARD16 width;
|
| 1080 |
+
CARD16 height;
|
| 1081 |
+
CARD32 widthInMillimeters;
|
| 1082 |
+
CARD32 heightInMillimeters;
|
| 1083 |
+
} xRRMonitorInfo;
|
| 1084 |
+
#define sz_xRRMonitorInfo 24
|
| 1085 |
+
|
| 1086 |
+
typedef struct {
|
| 1087 |
+
CARD8 reqType;
|
| 1088 |
+
CARD8 randrReqType;
|
| 1089 |
+
CARD16 length;
|
| 1090 |
+
Window window;
|
| 1091 |
+
BOOL get_active;
|
| 1092 |
+
CARD8 pad;
|
| 1093 |
+
CARD16 pad2;
|
| 1094 |
+
} xRRGetMonitorsReq;
|
| 1095 |
+
#define sz_xRRGetMonitorsReq 12
|
| 1096 |
+
|
| 1097 |
+
typedef struct {
|
| 1098 |
+
BYTE type;
|
| 1099 |
+
CARD8 status;
|
| 1100 |
+
CARD16 sequenceNumber;
|
| 1101 |
+
CARD32 length;
|
| 1102 |
+
Time timestamp;
|
| 1103 |
+
CARD32 nmonitors;
|
| 1104 |
+
CARD32 noutputs;
|
| 1105 |
+
CARD32 pad1;
|
| 1106 |
+
CARD32 pad2;
|
| 1107 |
+
CARD32 pad3;
|
| 1108 |
+
} xRRGetMonitorsReply;
|
| 1109 |
+
#define sz_xRRGetMonitorsReply 32
|
| 1110 |
+
|
| 1111 |
+
typedef struct {
|
| 1112 |
+
CARD8 reqType;
|
| 1113 |
+
CARD8 randrReqType;
|
| 1114 |
+
CARD16 length;
|
| 1115 |
+
Window window;
|
| 1116 |
+
xRRMonitorInfo monitor;
|
| 1117 |
+
} xRRSetMonitorReq;
|
| 1118 |
+
#define sz_xRRSetMonitorReq 32
|
| 1119 |
+
|
| 1120 |
+
typedef struct {
|
| 1121 |
+
CARD8 reqType;
|
| 1122 |
+
CARD8 randrReqType;
|
| 1123 |
+
CARD16 length;
|
| 1124 |
+
Window window;
|
| 1125 |
+
Atom name;
|
| 1126 |
+
} xRRDeleteMonitorReq;
|
| 1127 |
+
#define sz_xRRDeleteMonitorReq 12
|
| 1128 |
+
|
| 1129 |
+
#undef RRLease
|
| 1130 |
+
#undef RRModeFlags
|
| 1131 |
+
#undef RRCrtc
|
| 1132 |
+
#undef RRMode
|
| 1133 |
+
#undef RROutput
|
| 1134 |
+
#undef RRMode
|
| 1135 |
+
#undef RRCrtc
|
| 1136 |
+
#undef RRProvider
|
| 1137 |
+
#undef Drawable
|
| 1138 |
+
#undef Window
|
| 1139 |
+
#undef Font
|
| 1140 |
+
#undef Pixmap
|
| 1141 |
+
#undef Cursor
|
| 1142 |
+
#undef Colormap
|
| 1143 |
+
#undef GContext
|
| 1144 |
+
#undef Atom
|
| 1145 |
+
#undef Time
|
| 1146 |
+
#undef KeyCode
|
| 1147 |
+
#undef KeySym
|
| 1148 |
+
#undef Rotation
|
| 1149 |
+
#undef SizeID
|
| 1150 |
+
#undef SubpixelOrder
|
| 1151 |
+
|
| 1152 |
+
#endif /* _XRANDRP_H_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/recordconst.h
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/***************************************************************************
|
| 2 |
+
* Copyright 1995 Network Computing Devices
|
| 3 |
+
*
|
| 4 |
+
* Permission to use, copy, modify, distribute, and sell this software and
|
| 5 |
+
* its documentation for any purpose is hereby granted without fee, provided
|
| 6 |
+
* that 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 Network Computing Devices
|
| 9 |
+
* not be used in advertising or publicity pertaining to distribution
|
| 10 |
+
* of the software without specific, written prior permission.
|
| 11 |
+
*
|
| 12 |
+
* NETWORK COMPUTING DEVICES DISCLAIMs ALL WARRANTIES WITH REGARD TO
|
| 13 |
+
* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
| 14 |
+
* AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES BE LIABLE
|
| 15 |
+
* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 16 |
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
| 17 |
+
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
| 18 |
+
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 19 |
+
**************************************************************************/
|
| 20 |
+
|
| 21 |
+
#ifndef _RECORDCONST_H_
|
| 22 |
+
#define _RECORDCONST_H_
|
| 23 |
+
|
| 24 |
+
#define RECORD_NAME "RECORD"
|
| 25 |
+
#define RECORD_MAJOR_VERSION 1
|
| 26 |
+
#define RECORD_MINOR_VERSION 13
|
| 27 |
+
#define RECORD_LOWEST_MAJOR_VERSION 1
|
| 28 |
+
#define RECORD_LOWEST_MINOR_VERSION 12
|
| 29 |
+
|
| 30 |
+
#define XRecordBadContext 0 /* Not a valid RC */
|
| 31 |
+
|
| 32 |
+
#define RecordNumErrors (XRecordBadContext + 1)
|
| 33 |
+
#define RecordNumEvents 0L
|
| 34 |
+
|
| 35 |
+
/*
|
| 36 |
+
* Constants for arguments of various requests
|
| 37 |
+
*/
|
| 38 |
+
#define XRecordFromServerTime 0x01
|
| 39 |
+
#define XRecordFromClientTime 0x02
|
| 40 |
+
#define XRecordFromClientSequence 0x04
|
| 41 |
+
|
| 42 |
+
#define XRecordCurrentClients 1
|
| 43 |
+
#define XRecordFutureClients 2
|
| 44 |
+
#define XRecordAllClients 3
|
| 45 |
+
|
| 46 |
+
#define XRecordFromServer 0
|
| 47 |
+
#define XRecordFromClient 1
|
| 48 |
+
#define XRecordClientStarted 2
|
| 49 |
+
#define XRecordClientDied 3
|
| 50 |
+
#define XRecordStartOfData 4
|
| 51 |
+
#define XRecordEndOfData 5
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
#endif /* _RECORD_H_ */
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/recordproto.h
ADDED
|
@@ -0,0 +1,306 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/***************************************************************************
|
| 2 |
+
* Copyright 1995 Network Computing Devices
|
| 3 |
+
*
|
| 4 |
+
* Permission to use, copy, modify, distribute, and sell this software and
|
| 5 |
+
* its documentation for any purpose is hereby granted without fee, provided
|
| 6 |
+
* that 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 Network Computing Devices
|
| 9 |
+
* not be used in advertising or publicity pertaining to distribution
|
| 10 |
+
* of the software without specific, written prior permission.
|
| 11 |
+
*
|
| 12 |
+
* NETWORK COMPUTING DEVICES DISCLAIMs ALL WARRANTIES WITH REGARD TO
|
| 13 |
+
* THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
| 14 |
+
* AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES BE LIABLE
|
| 15 |
+
* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 16 |
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
|
| 17 |
+
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
| 18 |
+
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 19 |
+
**************************************************************************/
|
| 20 |
+
|
| 21 |
+
#ifndef _RECORDPROTO_H_
|
| 22 |
+
#define _RECORDPROTO_H_
|
| 23 |
+
|
| 24 |
+
#include <X11/extensions/recordconst.h>
|
| 25 |
+
|
| 26 |
+
/* only difference between 1.12 and 1.13 is byte order of device events,
|
| 27 |
+
which the library doesn't deal with. */
|
| 28 |
+
|
| 29 |
+
/*********************************************************
|
| 30 |
+
*
|
| 31 |
+
* Protocol request constants
|
| 32 |
+
*
|
| 33 |
+
*/
|
| 34 |
+
#define X_RecordQueryVersion 0 /* First request from client */
|
| 35 |
+
#define X_RecordCreateContext 1 /* Create client RC */
|
| 36 |
+
#define X_RecordRegisterClients 2 /* Add to client RC */
|
| 37 |
+
#define X_RecordUnregisterClients 3 /* Delete from client RC */
|
| 38 |
+
#define X_RecordGetContext 4 /* Query client RC */
|
| 39 |
+
#define X_RecordEnableContext 5 /* Enable interception and reporting */
|
| 40 |
+
#define X_RecordDisableContext 6 /* Disable interception and reporting */
|
| 41 |
+
#define X_RecordFreeContext 7 /* Free client RC */
|
| 42 |
+
|
| 43 |
+
#define sz_XRecordRange 32
|
| 44 |
+
#define sz_XRecordClientInfo 12
|
| 45 |
+
#define sz_XRecordState 16
|
| 46 |
+
#define sz_XRecordDatum 32
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
#define XRecordGlobaldef
|
| 50 |
+
#define XRecordGlobalref extern
|
| 51 |
+
|
| 52 |
+
#define RecordMaxEvent (128L-1L)
|
| 53 |
+
#define RecordMinDeviceEvent (2L)
|
| 54 |
+
#define RecordMaxDeviceEvent (6L)
|
| 55 |
+
#define RecordMaxError (256L-1L)
|
| 56 |
+
#define RecordMaxCoreRequest (128L-1L)
|
| 57 |
+
#define RecordMaxExtRequest (256L-1L)
|
| 58 |
+
#define RecordMinExtRequest (129L-1L)
|
| 59 |
+
|
| 60 |
+
#define RECORD_RC CARD32
|
| 61 |
+
#define RECORD_XIDBASE CARD32
|
| 62 |
+
#define RECORD_CLIENTSPEC CARD32
|
| 63 |
+
#define RECORD_ELEMENT_HEADER CARD8
|
| 64 |
+
|
| 65 |
+
typedef RECORD_CLIENTSPEC RecordClientSpec, *RecordClientSpecPtr;
|
| 66 |
+
|
| 67 |
+
typedef struct
|
| 68 |
+
{
|
| 69 |
+
CARD8 first;
|
| 70 |
+
CARD8 last;
|
| 71 |
+
} RECORD_RANGE8;
|
| 72 |
+
|
| 73 |
+
typedef struct
|
| 74 |
+
{
|
| 75 |
+
CARD16 first;
|
| 76 |
+
CARD16 last;
|
| 77 |
+
} RECORD_RANGE16;
|
| 78 |
+
|
| 79 |
+
typedef struct
|
| 80 |
+
{
|
| 81 |
+
RECORD_RANGE8 majorCode;
|
| 82 |
+
RECORD_RANGE16 minorCode;
|
| 83 |
+
} RECORD_EXTRANGE;
|
| 84 |
+
|
| 85 |
+
typedef struct
|
| 86 |
+
{
|
| 87 |
+
RECORD_RANGE8 coreRequests;
|
| 88 |
+
RECORD_RANGE8 coreReplies;
|
| 89 |
+
RECORD_EXTRANGE extRequests;
|
| 90 |
+
RECORD_EXTRANGE extReplies;
|
| 91 |
+
RECORD_RANGE8 deliveredEvents;
|
| 92 |
+
RECORD_RANGE8 deviceEvents;
|
| 93 |
+
RECORD_RANGE8 errors;
|
| 94 |
+
BOOL clientStarted;
|
| 95 |
+
BOOL clientDied;
|
| 96 |
+
} RECORDRANGE;
|
| 97 |
+
#define sz_RECORDRANGE 24
|
| 98 |
+
|
| 99 |
+
/* typedef RECORDRANGE xRecordRange, *xRecordRangePtr;
|
| 100 |
+
#define sz_xRecordRange 24 */
|
| 101 |
+
|
| 102 |
+
/* Cannot have structures within structures going over the wire */
|
| 103 |
+
typedef struct
|
| 104 |
+
{
|
| 105 |
+
CARD8 coreRequestsFirst;
|
| 106 |
+
CARD8 coreRequestsLast;
|
| 107 |
+
CARD8 coreRepliesFirst;
|
| 108 |
+
CARD8 coreRepliesLast;
|
| 109 |
+
CARD8 extRequestsMajorFirst;
|
| 110 |
+
CARD8 extRequestsMajorLast;
|
| 111 |
+
CARD16 extRequestsMinorFirst;
|
| 112 |
+
CARD16 extRequestsMinorLast;
|
| 113 |
+
CARD8 extRepliesMajorFirst;
|
| 114 |
+
CARD8 extRepliesMajorLast;
|
| 115 |
+
CARD16 extRepliesMinorFirst;
|
| 116 |
+
CARD16 extRepliesMinorLast;
|
| 117 |
+
CARD8 deliveredEventsFirst;
|
| 118 |
+
CARD8 deliveredEventsLast;
|
| 119 |
+
CARD8 deviceEventsFirst;
|
| 120 |
+
CARD8 deviceEventsLast;
|
| 121 |
+
CARD8 errorsFirst;
|
| 122 |
+
CARD8 errorsLast;
|
| 123 |
+
BOOL clientStarted;
|
| 124 |
+
BOOL clientDied;
|
| 125 |
+
} xRecordRange;
|
| 126 |
+
#define sz_xRecordRange 24
|
| 127 |
+
|
| 128 |
+
typedef struct
|
| 129 |
+
{
|
| 130 |
+
RECORD_CLIENTSPEC clientResource;
|
| 131 |
+
CARD32 nRanges;
|
| 132 |
+
/* LISTofRECORDRANGE */
|
| 133 |
+
} RECORD_CLIENT_INFO;
|
| 134 |
+
|
| 135 |
+
typedef RECORD_CLIENT_INFO xRecordClientInfo;
|
| 136 |
+
|
| 137 |
+
/*
|
| 138 |
+
* Initialize
|
| 139 |
+
*/
|
| 140 |
+
typedef struct {
|
| 141 |
+
CARD8 reqType;
|
| 142 |
+
CARD8 recordReqType;
|
| 143 |
+
CARD16 length;
|
| 144 |
+
CARD16 majorVersion;
|
| 145 |
+
CARD16 minorVersion;
|
| 146 |
+
} xRecordQueryVersionReq;
|
| 147 |
+
#define sz_xRecordQueryVersionReq 8
|
| 148 |
+
|
| 149 |
+
typedef struct
|
| 150 |
+
{
|
| 151 |
+
CARD8 type;
|
| 152 |
+
CARD8 pad0;
|
| 153 |
+
CARD16 sequenceNumber;
|
| 154 |
+
CARD32 length;
|
| 155 |
+
CARD16 majorVersion;
|
| 156 |
+
CARD16 minorVersion;
|
| 157 |
+
CARD32 pad1;
|
| 158 |
+
CARD32 pad2;
|
| 159 |
+
CARD32 pad3;
|
| 160 |
+
CARD32 pad4;
|
| 161 |
+
CARD32 pad5;
|
| 162 |
+
} xRecordQueryVersionReply;
|
| 163 |
+
#define sz_xRecordQueryVersionReply 32
|
| 164 |
+
|
| 165 |
+
/*
|
| 166 |
+
* Create RC
|
| 167 |
+
*/
|
| 168 |
+
typedef struct
|
| 169 |
+
{
|
| 170 |
+
CARD8 reqType;
|
| 171 |
+
CARD8 recordReqType;
|
| 172 |
+
CARD16 length;
|
| 173 |
+
RECORD_RC context;
|
| 174 |
+
RECORD_ELEMENT_HEADER elementHeader;
|
| 175 |
+
CARD8 pad;
|
| 176 |
+
CARD16 pad0;
|
| 177 |
+
CARD32 nClients;
|
| 178 |
+
CARD32 nRanges;
|
| 179 |
+
/* LISTofRECORD_CLIENTSPEC */
|
| 180 |
+
/* LISTofRECORDRANGE */
|
| 181 |
+
} xRecordCreateContextReq;
|
| 182 |
+
#define sz_xRecordCreateContextReq 20
|
| 183 |
+
|
| 184 |
+
/*
|
| 185 |
+
* Add to RC
|
| 186 |
+
*/
|
| 187 |
+
typedef struct
|
| 188 |
+
{
|
| 189 |
+
CARD8 reqType;
|
| 190 |
+
CARD8 recordReqType;
|
| 191 |
+
CARD16 length;
|
| 192 |
+
RECORD_RC context;
|
| 193 |
+
RECORD_ELEMENT_HEADER elementHeader;
|
| 194 |
+
CARD8 pad;
|
| 195 |
+
CARD16 pad0;
|
| 196 |
+
CARD32 nClients;
|
| 197 |
+
CARD32 nRanges;
|
| 198 |
+
/* LISTofRECORD_CLIENTSPEC */
|
| 199 |
+
/* LISTofRECORDRANGE */
|
| 200 |
+
} xRecordRegisterClientsReq;
|
| 201 |
+
#define sz_xRecordRegisterClientsReq 20
|
| 202 |
+
|
| 203 |
+
/*
|
| 204 |
+
* Delete from RC
|
| 205 |
+
*/
|
| 206 |
+
typedef struct
|
| 207 |
+
{
|
| 208 |
+
CARD8 reqType;
|
| 209 |
+
CARD8 recordReqType;
|
| 210 |
+
CARD16 length;
|
| 211 |
+
RECORD_RC context;
|
| 212 |
+
CARD32 nClients;
|
| 213 |
+
/* LISTofRECORD_CLIENTSPEC */
|
| 214 |
+
} xRecordUnregisterClientsReq;
|
| 215 |
+
#define sz_xRecordUnregisterClientsReq 12
|
| 216 |
+
|
| 217 |
+
/*
|
| 218 |
+
* Query RC
|
| 219 |
+
*/
|
| 220 |
+
typedef struct
|
| 221 |
+
{
|
| 222 |
+
CARD8 reqType;
|
| 223 |
+
CARD8 recordReqType;
|
| 224 |
+
CARD16 length;
|
| 225 |
+
RECORD_RC context;
|
| 226 |
+
} xRecordGetContextReq;
|
| 227 |
+
#define sz_xRecordGetContextReq 8
|
| 228 |
+
|
| 229 |
+
typedef struct
|
| 230 |
+
{
|
| 231 |
+
CARD8 type;
|
| 232 |
+
BOOL enabled;
|
| 233 |
+
CARD16 sequenceNumber;
|
| 234 |
+
CARD32 length;
|
| 235 |
+
RECORD_ELEMENT_HEADER elementHeader;
|
| 236 |
+
CARD8 pad;
|
| 237 |
+
CARD16 pad0;
|
| 238 |
+
CARD32 nClients;
|
| 239 |
+
CARD32 pad1;
|
| 240 |
+
CARD32 pad2;
|
| 241 |
+
CARD32 pad3;
|
| 242 |
+
CARD32 pad4;
|
| 243 |
+
/* LISTofCLIENT_INFO */ /* intercepted-clients */
|
| 244 |
+
} xRecordGetContextReply;
|
| 245 |
+
#define sz_xRecordGetContextReply 32
|
| 246 |
+
|
| 247 |
+
/*
|
| 248 |
+
* Enable data interception
|
| 249 |
+
*/
|
| 250 |
+
typedef struct
|
| 251 |
+
{
|
| 252 |
+
CARD8 reqType;
|
| 253 |
+
CARD8 recordReqType;
|
| 254 |
+
CARD16 length;
|
| 255 |
+
RECORD_RC context;
|
| 256 |
+
} xRecordEnableContextReq;
|
| 257 |
+
#define sz_xRecordEnableContextReq 8
|
| 258 |
+
|
| 259 |
+
typedef struct
|
| 260 |
+
{
|
| 261 |
+
CARD8 type;
|
| 262 |
+
CARD8 category;
|
| 263 |
+
CARD16 sequenceNumber;
|
| 264 |
+
CARD32 length;
|
| 265 |
+
RECORD_ELEMENT_HEADER elementHeader;
|
| 266 |
+
BOOL clientSwapped;
|
| 267 |
+
CARD16 pad1;
|
| 268 |
+
RECORD_XIDBASE idBase;
|
| 269 |
+
CARD32 serverTime;
|
| 270 |
+
CARD32 recordedSequenceNumber;
|
| 271 |
+
CARD32 pad3;
|
| 272 |
+
CARD32 pad4;
|
| 273 |
+
/* BYTE data; */
|
| 274 |
+
} xRecordEnableContextReply;
|
| 275 |
+
#define sz_xRecordEnableContextReply 32
|
| 276 |
+
|
| 277 |
+
/*
|
| 278 |
+
* Disable data interception
|
| 279 |
+
*/
|
| 280 |
+
typedef struct
|
| 281 |
+
{
|
| 282 |
+
CARD8 reqType;
|
| 283 |
+
CARD8 recordReqType;
|
| 284 |
+
CARD16 length;
|
| 285 |
+
RECORD_RC context;
|
| 286 |
+
} xRecordDisableContextReq;
|
| 287 |
+
#define sz_xRecordDisableContextReq 8
|
| 288 |
+
|
| 289 |
+
/*
|
| 290 |
+
* Free RC
|
| 291 |
+
*/
|
| 292 |
+
typedef struct
|
| 293 |
+
{
|
| 294 |
+
CARD8 reqType;
|
| 295 |
+
CARD8 recordReqType;
|
| 296 |
+
CARD16 length;
|
| 297 |
+
RECORD_RC context;
|
| 298 |
+
} xRecordFreeContextReq;
|
| 299 |
+
#define sz_xRecordFreeContextReq 8
|
| 300 |
+
|
| 301 |
+
#undef RECORD_RC
|
| 302 |
+
#undef RECORD_XIDBASE
|
| 303 |
+
#undef RECORD_ELEMENT_HEADER
|
| 304 |
+
#undef RECORD_CLIENTSPEC
|
| 305 |
+
|
| 306 |
+
#endif
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/recordstr.h
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#warning "recordstr.h is obsolete and may be removed in the future."
|
| 2 |
+
#warning "include <X11/extensions/record.h> for the library interfaces."
|
| 3 |
+
#warning "include <X11/extensions/recordproto.h> for the protocol defines."
|
| 4 |
+
#include <X11/extensions/recordproto.h>
|
miniconda3/pkgs/xorg-xorgproto-2024.1-h5eee18b_1/include/X11/extensions/render.h
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright © 2000 SuSE, Inc.
|
| 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 SuSE not be used in advertising or
|
| 9 |
+
* publicity pertaining to distribution of the software without specific,
|
| 10 |
+
* written prior permission. SuSE 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 |
+
* SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
|
| 15 |
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
|
| 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 |
+
* Author: Keith Packard, SuSE, Inc.
|
| 22 |
+
*/
|
| 23 |
+
|
| 24 |
+
#ifndef _RENDER_H_
|
| 25 |
+
#define _RENDER_H_
|
| 26 |
+
|
| 27 |
+
#include <X11/Xdefs.h>
|
| 28 |
+
|
| 29 |
+
typedef XID Glyph;
|
| 30 |
+
typedef XID GlyphSet;
|
| 31 |
+
typedef XID Picture;
|
| 32 |
+
typedef XID PictFormat;
|
| 33 |
+
|
| 34 |
+
#define RENDER_NAME "RENDER"
|
| 35 |
+
#define RENDER_MAJOR 0
|
| 36 |
+
#define RENDER_MINOR 11
|
| 37 |
+
|
| 38 |
+
#define X_RenderQueryVersion 0
|
| 39 |
+
#define X_RenderQueryPictFormats 1
|
| 40 |
+
#define X_RenderQueryPictIndexValues 2 /* 0.7 */
|
| 41 |
+
#define X_RenderQueryDithers 3
|
| 42 |
+
#define X_RenderCreatePicture 4
|
| 43 |
+
#define X_RenderChangePicture 5
|
| 44 |
+
#define X_RenderSetPictureClipRectangles 6
|
| 45 |
+
#define X_RenderFreePicture 7
|
| 46 |
+
#define X_RenderComposite 8
|
| 47 |
+
#define X_RenderScale 9
|
| 48 |
+
#define X_RenderTrapezoids 10
|
| 49 |
+
#define X_RenderTriangles 11
|
| 50 |
+
#define X_RenderTriStrip 12
|
| 51 |
+
#define X_RenderTriFan 13
|
| 52 |
+
#define X_RenderColorTrapezoids 14
|
| 53 |
+
#define X_RenderColorTriangles 15
|
| 54 |
+
/* #define X_RenderTransform 16 */
|
| 55 |
+
#define X_RenderCreateGlyphSet 17
|
| 56 |
+
#define X_RenderReferenceGlyphSet 18
|
| 57 |
+
#define X_RenderFreeGlyphSet 19
|
| 58 |
+
#define X_RenderAddGlyphs 20
|
| 59 |
+
#define X_RenderAddGlyphsFromPicture 21
|
| 60 |
+
#define X_RenderFreeGlyphs 22
|
| 61 |
+
#define X_RenderCompositeGlyphs8 23
|
| 62 |
+
#define X_RenderCompositeGlyphs16 24
|
| 63 |
+
#define X_RenderCompositeGlyphs32 25
|
| 64 |
+
#define X_RenderFillRectangles 26
|
| 65 |
+
/* 0.5 */
|
| 66 |
+
#define X_RenderCreateCursor 27
|
| 67 |
+
/* 0.6 */
|
| 68 |
+
#define X_RenderSetPictureTransform 28
|
| 69 |
+
#define X_RenderQueryFilters 29
|
| 70 |
+
#define X_RenderSetPictureFilter 30
|
| 71 |
+
/* 0.8 */
|
| 72 |
+
#define X_RenderCreateAnimCursor 31
|
| 73 |
+
/* 0.9 */
|
| 74 |
+
#define X_RenderAddTraps 32
|
| 75 |
+
/* 0.10 */
|
| 76 |
+
#define X_RenderCreateSolidFill 33
|
| 77 |
+
#define X_RenderCreateLinearGradient 34
|
| 78 |
+
#define X_RenderCreateRadialGradient 35
|
| 79 |
+
#define X_RenderCreateConicalGradient 36
|
| 80 |
+
#define RenderNumberRequests (X_RenderCreateConicalGradient+1)
|
| 81 |
+
|
| 82 |
+
#define BadPictFormat 0
|
| 83 |
+
#define BadPicture 1
|
| 84 |
+
#define BadPictOp 2
|
| 85 |
+
#define BadGlyphSet 3
|
| 86 |
+
#define BadGlyph 4
|
| 87 |
+
#define RenderNumberErrors (BadGlyph+1)
|
| 88 |
+
|
| 89 |
+
#define PictTypeIndexed 0
|
| 90 |
+
#define PictTypeDirect 1
|
| 91 |
+
|
| 92 |
+
#define PictOpMinimum 0
|
| 93 |
+
#define PictOpClear 0
|
| 94 |
+
#define PictOpSrc 1
|
| 95 |
+
#define PictOpDst 2
|
| 96 |
+
#define PictOpOver 3
|
| 97 |
+
#define PictOpOverReverse 4
|
| 98 |
+
#define PictOpIn 5
|
| 99 |
+
#define PictOpInReverse 6
|
| 100 |
+
#define PictOpOut 7
|
| 101 |
+
#define PictOpOutReverse 8
|
| 102 |
+
#define PictOpAtop 9
|
| 103 |
+
#define PictOpAtopReverse 10
|
| 104 |
+
#define PictOpXor 11
|
| 105 |
+
#define PictOpAdd 12
|
| 106 |
+
#define PictOpSaturate 13
|
| 107 |
+
#define PictOpMaximum 13
|
| 108 |
+
|
| 109 |
+
/*
|
| 110 |
+
* Operators only available in version 0.2
|
| 111 |
+
*/
|
| 112 |
+
#define PictOpDisjointMinimum 0x10
|
| 113 |
+
#define PictOpDisjointClear 0x10
|
| 114 |
+
#define PictOpDisjointSrc 0x11
|
| 115 |
+
#define PictOpDisjointDst 0x12
|
| 116 |
+
#define PictOpDisjointOver 0x13
|
| 117 |
+
#define PictOpDisjointOverReverse 0x14
|
| 118 |
+
#define PictOpDisjointIn 0x15
|
| 119 |
+
#define PictOpDisjointInReverse 0x16
|
| 120 |
+
#define PictOpDisjointOut 0x17
|
| 121 |
+
#define PictOpDisjointOutReverse 0x18
|
| 122 |
+
#define PictOpDisjointAtop 0x19
|
| 123 |
+
#define PictOpDisjointAtopReverse 0x1a
|
| 124 |
+
#define PictOpDisjointXor 0x1b
|
| 125 |
+
#define PictOpDisjointMaximum 0x1b
|
| 126 |
+
|
| 127 |
+
#define PictOpConjointMinimum 0x20
|
| 128 |
+
#define PictOpConjointClear 0x20
|
| 129 |
+
#define PictOpConjointSrc 0x21
|
| 130 |
+
#define PictOpConjointDst 0x22
|
| 131 |
+
#define PictOpConjointOver 0x23
|
| 132 |
+
#define PictOpConjointOverReverse 0x24
|
| 133 |
+
#define PictOpConjointIn 0x25
|
| 134 |
+
#define PictOpConjointInReverse 0x26
|
| 135 |
+
#define PictOpConjointOut 0x27
|
| 136 |
+
#define PictOpConjointOutReverse 0x28
|
| 137 |
+
#define PictOpConjointAtop 0x29
|
| 138 |
+
#define PictOpConjointAtopReverse 0x2a
|
| 139 |
+
#define PictOpConjointXor 0x2b
|
| 140 |
+
#define PictOpConjointMaximum 0x2b
|
| 141 |
+
|
| 142 |
+
/*
|
| 143 |
+
* Operators only available in version 0.11
|
| 144 |
+
*/
|
| 145 |
+
#define PictOpBlendMinimum 0x30
|
| 146 |
+
#define PictOpMultiply 0x30
|
| 147 |
+
#define PictOpScreen 0x31
|
| 148 |
+
#define PictOpOverlay 0x32
|
| 149 |
+
#define PictOpDarken 0x33
|
| 150 |
+
#define PictOpLighten 0x34
|
| 151 |
+
#define PictOpColorDodge 0x35
|
| 152 |
+
#define PictOpColorBurn 0x36
|
| 153 |
+
#define PictOpHardLight 0x37
|
| 154 |
+
#define PictOpSoftLight 0x38
|
| 155 |
+
#define PictOpDifference 0x39
|
| 156 |
+
#define PictOpExclusion 0x3a
|
| 157 |
+
#define PictOpHSLHue 0x3b
|
| 158 |
+
#define PictOpHSLSaturation 0x3c
|
| 159 |
+
#define PictOpHSLColor 0x3d
|
| 160 |
+
#define PictOpHSLLuminosity 0x3e
|
| 161 |
+
#define PictOpBlendMaximum 0x3e
|
| 162 |
+
|
| 163 |
+
#define PolyEdgeSharp 0
|
| 164 |
+
#define PolyEdgeSmooth 1
|
| 165 |
+
|
| 166 |
+
#define PolyModePrecise 0
|
| 167 |
+
#define PolyModeImprecise 1
|
| 168 |
+
|
| 169 |
+
#define CPRepeat (1 << 0)
|
| 170 |
+
#define CPAlphaMap (1 << 1)
|
| 171 |
+
#define CPAlphaXOrigin (1 << 2)
|
| 172 |
+
#define CPAlphaYOrigin (1 << 3)
|
| 173 |
+
#define CPClipXOrigin (1 << 4)
|
| 174 |
+
#define CPClipYOrigin (1 << 5)
|
| 175 |
+
#define CPClipMask (1 << 6)
|
| 176 |
+
#define CPGraphicsExposure (1 << 7)
|
| 177 |
+
#define CPSubwindowMode (1 << 8)
|
| 178 |
+
#define CPPolyEdge (1 << 9)
|
| 179 |
+
#define CPPolyMode (1 << 10)
|
| 180 |
+
#define CPDither (1 << 11)
|
| 181 |
+
#define CPComponentAlpha (1 << 12)
|
| 182 |
+
#define CPLastBit 12
|
| 183 |
+
|
| 184 |
+
/* Filters included in 0.6 */
|
| 185 |
+
#define FilterNearest "nearest"
|
| 186 |
+
#define FilterBilinear "bilinear"
|
| 187 |
+
/* Filters included in 0.10 */
|
| 188 |
+
#define FilterConvolution "convolution"
|
| 189 |
+
|
| 190 |
+
#define FilterFast "fast"
|
| 191 |
+
#define FilterGood "good"
|
| 192 |
+
#define FilterBest "best"
|
| 193 |
+
|
| 194 |
+
#define FilterAliasNone -1
|
| 195 |
+
|
| 196 |
+
/* Subpixel orders included in 0.6 */
|
| 197 |
+
#define SubPixelUnknown 0
|
| 198 |
+
#define SubPixelHorizontalRGB 1
|
| 199 |
+
#define SubPixelHorizontalBGR 2
|
| 200 |
+
#define SubPixelVerticalRGB 3
|
| 201 |
+
#define SubPixelVerticalBGR 4
|
| 202 |
+
#define SubPixelNone 5
|
| 203 |
+
|
| 204 |
+
/* Extended repeat attributes included in 0.10 */
|
| 205 |
+
#define RepeatNone 0
|
| 206 |
+
#define RepeatNormal 1
|
| 207 |
+
#define RepeatPad 2
|
| 208 |
+
#define RepeatReflect 3
|
| 209 |
+
|
| 210 |
+
#endif /* _RENDER_H_ */
|