2 * Copyright 1995-1998 by Metro Link, Inc.
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 Metro Link, Inc. not be used in
9 * advertising or publicity pertaining to distribution of the software without
10 * specific, written prior permission. Metro Link, Inc. makes no
11 * representations about the suitability of this software for any purpose.
12 * It is provided "as is" without express or implied warranty.
14 * METRO LINK, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 * EVENT SHALL METRO LINK, INC. 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.
23 * Copyright (c) 1997-2003 by The XFree86 Project, Inc.
25 * Permission is hereby granted, free of charge, to any person obtaining a
26 * copy of this software and associated documentation files (the "Software"),
27 * to deal in the Software without restriction, including without limitation
28 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
29 * and/or sell copies of the Software, and to permit persons to whom the
30 * Software is furnished to do so, subject to the following conditions:
32 * The above copyright notice and this permission notice shall be included in
33 * all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
36 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
37 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
38 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
39 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
40 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
43 * Except as contained in this notice, the name of the copyright holder(s)
44 * and author(s) shall not be used in advertising or otherwise to promote
45 * the sale, use or other dealings in this Software without prior written
46 * authorization from the copyright holder(s) and author(s).
50 #ifdef HAVE_XORG_CONFIG_H
51 #include <xorg-config.h>
57 #include "cursorstr.h"
59 #include "dixevents.h"
61 #include "dixstruct.h"
68 #include "scrnintstr.h"
69 #include "windowstr.h"
70 #include "extension.h"
71 #define EXTENSION_PROC_ARGS void *
72 #include "extnsionst.h"
76 #include <X11/extensions/XIproto.h>
80 #include "xvmodproc.h"
85 #include "renderedge.h"
87 #include "selection.h"
90 extern int XkbDfltRepeatDelay
, XkbDfltRepeatInterval
;
93 extern Selection
*CurrentSelections
;
94 extern int NumCurrentSelections
;
98 _X_HIDDEN
void *dixLookupTab
[] = {
106 SYMFUNC(CreateColormap
)
107 SYMFUNC(FakeAllocColor
)
108 SYMFUNC(FakeFreeColor
)
112 SYMFUNC(TellGainedMap
)
118 SYMFUNC(InitButtonClassDeviceStruct
)
119 SYMFUNC(InitFocusClassDeviceStruct
)
120 SYMFUNC(InitLedFeedbackClassDeviceStruct
)
121 SYMFUNC(InitPtrFeedbackClassDeviceStruct
)
122 SYMFUNC(InitKbdFeedbackClassDeviceStruct
)
123 SYMFUNC(InitIntegerFeedbackClassDeviceStruct
)
124 SYMFUNC(InitStringFeedbackClassDeviceStruct
)
125 SYMFUNC(InitBellFeedbackClassDeviceStruct
)
126 SYMFUNC(InitValuatorClassDeviceStruct
)
127 SYMFUNC(InitKeyClassDeviceStruct
)
128 SYMFUNC(InitKeyboardDeviceStruct
)
129 SYMFUNC(SendMappingNotify
)
130 SYMFUNC(InitPointerDeviceStruct
)
131 SYMFUNC(LookupKeyboardDevice
)
132 SYMFUNC(LookupPointerDevice
)
134 SYMFUNC(SetInputCheck
)
135 SYMFUNC(SendErrorToClient
)
136 SYMFUNC(UpdateCurrentTime
)
137 SYMFUNC(UpdateCurrentTimeIf
)
138 SYMFUNC(ProcBadRequest
)
139 SYMVAR(dispatchException
)
140 SYMVAR(isItTimeToYield
)
141 SYMVAR(ClientStateCallback
)
142 SYMVAR(ServerGrabCallback
)
143 SYMVAR(CurrentSelections
)
144 SYMVAR(NumCurrentSelections
)
147 SYMFUNC(FontToXError
)
149 SYMVAR(fpe_functions
)
153 SYMFUNC(ClientTimeToServerTime
)
154 SYMFUNC(ClientWakeup
)
155 SYMFUNC(CompareTimeStamps
)
156 SYMFUNC(CopyISOLatin1Lowered
)
157 SYMFUNC(DeleteCallback
)
158 SYMFUNC(dixLookupDrawable
)
159 SYMFUNC(dixLookupWindow
)
160 SYMFUNC(dixLookupClient
)
162 /* following are deprecated */
163 SYMFUNC(LookupClient
)
164 SYMFUNC(LookupDrawable
)
165 SYMFUNC(LookupWindow
)
166 SYMFUNC(SecurityLookupDrawable
)
167 SYMFUNC(SecurityLookupWindow
)
170 SYMFUNC(QueueWorkProc
)
171 SYMFUNC(RegisterBlockAndWakeupHandlers
)
172 SYMFUNC(RemoveBlockAndWakeupHandlers
)
174 SYMFUNC(CheckCursorConfinement
)
175 SYMFUNC(DeliverEvents
)
176 SYMFUNC(NewCurrentScreen
)
177 SYMFUNC(PointerConfinedToScreen
)
178 SYMFUNC(TryClientEvents
)
179 SYMFUNC(WriteEventsToClient
)
180 SYMFUNC(GetCurrentRootWindow
)
181 SYMFUNC(GetSpritePosition
)
182 SYMFUNC(GetSpriteWindow
)
183 SYMFUNC(GetSpriteCursor
)
184 SYMFUNC(WindowsRestructured
)
185 SYMVAR(DeviceEventCallback
)
186 SYMVAR(EventCallback
)
188 SYMFUNC(SetCriticalEvent
)
190 SYMFUNC(XineramaGetCursorScreen
)
193 SYMFUNC(ChangeWindowProperty
)
195 SYMFUNC(AddExtension
)
196 SYMFUNC(AddExtensionAlias
)
197 SYMFUNC(CheckExtension
)
198 SYMFUNC(DeclareExtensionSecurity
)
199 SYMFUNC(MinorOpcodeOfRequest
)
200 SYMFUNC(StandardMinorOpcode
)
208 SYMFUNC(CreateScratchGC
)
213 SYMFUNC(FreeScratchGC
)
214 SYMFUNC(GetScratchGC
)
215 SYMFUNC(SetClipRects
)
217 SYMFUNC(VerifyRectOrder
)
220 SYMVAR(ScreenSaverTime
)
223 SYMVAR(DPMSCapableFlag
)
225 SYMVAR(DPMSPowerLevel
)
226 SYMVAR(DPMSStandbyTime
)
227 SYMVAR(DPMSSuspendTime
)
228 SYMVAR(DPMSEnabledSwitch
)
229 SYMVAR(DPMSDisabledSwitch
)
230 SYMVAR(defaultDPMSEnabled
)
233 SYMVAR(maxBigRequestSize
)
235 /* XXX These are exported from the DDX, not DIX. */
236 SYMVAR(XvScreenInitProc
)
237 SYMVAR(XvGetScreenIndexProc
)
238 SYMVAR(XvGetRTPortProc
)
239 SYMVAR(XvMCScreenInitProc
)
241 SYMVAR(ScreenSaverBlanking
)
244 SYMVAR(currentMaxClients
)
246 SYMVAR(defaultColorVisualClass
)
248 SYMVAR(globalSerialNumber
)
249 SYMVAR(lastDeviceEventTime
)
250 SYMVAR(monitorResolution
)
253 SYMVAR(serverGeneration
)
255 SYMFUNC(NotImplemented
)
256 SYMVAR(PixmapWidthPaddingInfo
)
258 SYMFUNC(AllocatePixmap
)
259 SYMFUNC(GetScratchPixmapHeader
)
260 SYMFUNC(FreeScratchPixmapHeader
)
262 SYMFUNC(AllocateExtensionPrivate
)
263 SYMFUNC(AllocateExtensionPrivateIndex
)
264 SYMFUNC(AllocateClientPrivate
)
265 SYMFUNC(AllocateClientPrivateIndex
)
266 SYMFUNC(AllocateGCPrivate
)
267 SYMFUNC(AllocateGCPrivateIndex
)
268 SYMFUNC(AllocateWindowPrivate
)
269 SYMFUNC(AllocateWindowPrivateIndex
)
270 SYMFUNC(AllocateScreenPrivateIndex
)
271 SYMFUNC(AllocateColormapPrivateIndex
)
272 SYMFUNC(AllocateDevicePrivateIndex
)
273 SYMFUNC(AllocateDevicePrivate
)
274 SYMFUNC(AllocatePixmapPrivateIndex
)
275 SYMFUNC(AllocatePixmapPrivate
)
278 SYMFUNC(ChangeResourceValue
)
279 SYMFUNC(CreateNewResourceClass
)
280 SYMFUNC(CreateNewResourceType
)
281 SYMFUNC(FakeClientID
)
282 SYMFUNC(FreeResource
)
283 SYMFUNC(FreeResourceByType
)
286 SYMFUNC(LookupIDByType
)
287 SYMFUNC(LookupIDByClass
)
289 SYMFUNC(SecurityLookupIDByClass
)
290 SYMFUNC(SecurityLookupIDByType
)
291 SYMFUNC(FindClientResourcesByType
)
292 SYMFUNC(FindAllClientResources
)
293 SYMVAR(lastResourceType
)
296 SYMFUNC(RegisterResourceName
)
297 SYMVAR(ResourceNames
)
300 SYMFUNC(CopySwap32Write
)
302 SYMFUNC(SwapConnSetupInfo
)
303 SYMFUNC(SwapConnSetupPrefix
)
307 SYMFUNC(SwapColorItem
)
309 SYMVAR(EventSwapVector
)
310 SYMVAR(ReplySwapVector
)
313 SYMFUNC(ChangeWindowAttributes
)
314 SYMFUNC(CheckWindowOptionalNeed
)
315 SYMFUNC(CreateUnclippedWinSize
)
316 SYMFUNC(CreateWindow
)
317 SYMFUNC(FindWindowWithOptional
)
318 SYMFUNC(GravityTranslate
)
319 SYMFUNC(MakeWindowOptional
)
321 SYMFUNC(MoveWindowInStack
)
322 SYMFUNC(NotClippedByChildren
)
323 SYMFUNC(ResizeChildrenWinSize
)
325 SYMFUNC(SendVisibilityNotify
)
327 SYMFUNC(SetBorderSize
)
328 SYMFUNC(TraverseTree
)
331 SYMVAR(deltaSaveUndersViewable
)
332 SYMVAR(numSaveUndersViewable
)
333 SYMVAR(savedScreenInfo
)
334 SYMVAR(screenIsSaved
)
342 SYMVAR(Must_have_memory
)
343 SYMFUNC(AdjustWaitForDelay
)
344 SYMVAR(noTestExtensions
)
348 SYMVAR(noBigReqExtension
)
351 SYMVAR(noCompositeExtension
)
354 SYMVAR(noDamageExtension
)
357 SYMVAR(noDbeExtension
)
360 SYMVAR(noDPMSExtension
)
363 SYMVAR(noEVIExtension
)
366 SYMVAR(noFontCacheExtension
)
369 SYMVAR(noGlxExtension
)
372 SYMVAR(noScreenSaverExtension
)
375 SYMVAR(noMITShmExtension
)
378 SYMVAR(noMITMiscExtension
)
381 SYMVAR(noMultibufferExtension
)
384 SYMVAR(noRRExtension
)
387 SYMVAR(noRenderExtension
)
390 SYMVAR(noShapeExtension
)
393 SYMVAR(noSecurityExtension
)
396 SYMVAR(noSyncExtension
)
399 SYMVAR(noXcupExtension
)
402 SYMVAR(noResExtension
)
405 SYMVAR(noXagExtension
)
408 SYMVAR(noXCMiscExtension
)
411 SYMVAR(noXevieExtension
)
414 SYMVAR(noXFree86BigfontExtension
)
417 SYMVAR(noXFree86DGAExtension
)
420 SYMVAR(noXFree86DRIExtension
)
423 SYMVAR(noXFree86MiscExtension
)
426 SYMVAR(noXFree86VidModeExtension
)
429 SYMVAR(noXFixesExtension
)
432 /* |noXkbExtension| is defined in xc/programs/Xserver/xkb/xkbInit.c */
433 SYMVAR(noXkbExtension
)
436 SYMVAR(noPanoramiXExtension
)
439 SYMVAR(noXInputExtension
)
442 SYMVAR(noXIdleExtension
)
445 SYMVAR(noXvExtension
)
451 SYMFUNC(LogVMessageVerb
)
452 SYMFUNC(LogMessageVerb
)
471 SYMFUNC(WriteToClient
)
472 SYMFUNC(SetCriticalOutputPending
)
473 SYMVAR(FlushCallback
)
474 SYMVAR(ReplyCallback
)
475 SYMVAR(SkippedRequestsCallback
)
476 SYMFUNC(ResetCurrentRequest
)
478 SYMFUNC(IgnoreClient
)
479 SYMFUNC(AttendClient
)
480 SYMFUNC(AddEnabledDevice
)
481 SYMFUNC(RemoveEnabledDevice
)
482 SYMFUNC(MakeClientGrabPervious
)
483 SYMFUNC(MakeClientGrabImpervious
)
484 SYMVAR(GrabInProgress
)
488 SYMFUNC(XkbInitKeyboardDeviceStruct
)
489 SYMFUNC(XkbSetRulesDflts
)
490 SYMVAR(XkbDfltRepeatDelay
)
491 SYMVAR(XkbDfltRepeatInterval
)
497 SYMFUNC(InitValuatorAxisStruct
)
498 SYMFUNC(InitProximityClassDeviceStruct
)
500 SYMFUNC(AssignTypeAndName
)
504 /* XXX This is exported from the DDX, not DIX. */
505 SYMVAR(XDGAEventBase
)
511 SYMFUNC(PictureTransformPoint
)
512 SYMFUNC(PictureTransformPoint3d
)
513 SYMFUNC(PictureGetSubpixelOrder
)
514 SYMFUNC(PictureSetSubpixelOrder
)
515 SYMVAR(PictureScreenPrivateIndex
)
517 SYMFUNC(miPictureInit
)
518 SYMFUNC(miComputeCompositeRegion
)
522 SYMFUNC(miCompositeRects
)
524 SYMFUNC(PictureAddFilter
)
525 SYMFUNC(PictureSetFilterAlias
)
527 SYMFUNC(RenderSampleCeilY
)
528 SYMFUNC(RenderSampleFloorY
)
529 SYMFUNC(RenderEdgeStep
)
530 SYMFUNC(RenderEdgeInit
)
531 SYMFUNC(RenderLineFixedEdgeInit
)