xserver/Xi
Enrico Weigelt, metux IT consult 86cf2c5ce3 Xi: use fixed define for extenion base opcode
Several places outside Xi (eg. dix, security hooks, ...) need to know the
actual XI base opcode. This formerly had been done by a global variable,
which is filled on XI init. This has some drawbacks, eg. requires that
XI really is initialized before anybody else attempting to access this
variable - changes in extension init order could be dangerous.

Since extension opcodes are now (compile-time) fixed for all known
extensions (including XI), this isn't needed anymore. We can really
rely on the XI extension always having the same opcode base. So we
can drop that variable entirely and use the corresponding define instead.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-12 17:21:43 +02:00
..
XIstubs.h include: unexport XIstubs.h 2024-09-01 22:21:12 +00:00
allowev.c include: drop obsolete dixevents.h 2025-06-12 16:17:35 +02:00
allowev.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
chgdctl.c XI: directly write out X_ChangeDeviceControl reply 2025-06-12 17:21:43 +02:00
chgdctl.h XI: directly write out X_ChangeDeviceControl reply 2025-06-12 17:21:43 +02:00
chgfctl.c Xi: drop swapping request length fields 2025-02-06 22:28:51 +00:00
chgfctl.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
chgkbd.c Xi: drop now obsolete swap procs 2025-02-06 22:28:52 +00:00
chgkbd.h Xi: drop now obsolete swap procs 2025-02-06 22:28:52 +00:00
chgkmap.c Xi: drop swapping request length fields 2025-02-06 22:28:51 +00:00
chgkmap.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
chgprop.c Xi: drop swapping request length fields 2025-02-06 22:28:51 +00:00
chgprop.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
chgptr.c include: drop obsolete dixevents.h 2025-06-12 16:17:35 +02:00
chgptr.h Xi: drop now obsolete swap procs 2025-02-06 22:28:52 +00:00
closedev.c dix: make SameClient() macro private 2025-06-12 16:53:43 +02:00
closedev.h Xi: drop now obsolete swap procs 2025-02-06 22:28:52 +00:00
devbell.c Xi: drop now obsolete swap procs 2025-02-06 22:28:52 +00:00
devbell.h Xi: drop now obsolete swap procs 2025-02-06 22:28:52 +00:00
exevents.c dix: let CreateGrab operate on ClientPtr instead of array index 2025-06-12 16:53:37 +02:00
exglobals.h Xi: use fixed define for extenion base opcode 2025-06-12 17:21:43 +02:00
extinit.c Xi: use fixed define for extenion base opcode 2025-06-12 17:21:43 +02:00
getbmap.c XI: directly write out X_GetDeviceButtonMapping reply 2025-06-12 17:21:43 +02:00
getbmap.h XI: directly write out X_GetDeviceButtonMapping reply 2025-06-12 17:21:43 +02:00
getdctl.c XI: directly write out X_GetDeviceControl reply 2025-06-12 17:21:43 +02:00
getdctl.h XI: directly write out X_GetDeviceControl reply 2025-06-12 17:21:43 +02:00
getfctl.c XI: directly write out X_GetFeedbackControl reply 2025-06-12 17:21:43 +02:00
getfctl.h XI: directly write out X_GetFeedbackControl reply 2025-06-12 17:21:43 +02:00
getfocus.c XI: directly write out X_GetDeviceFocus reply 2025-06-12 17:21:43 +02:00
getfocus.h XI: directly write out X_GetDeviceFocus reply 2025-06-12 17:21:43 +02:00
getkmap.c XI: directly write out X_GetDeviceKeyMapping reply 2025-06-12 17:21:43 +02:00
getkmap.h XI: directly write out X_GetDeviceKeyMapping reply 2025-06-12 17:21:43 +02:00
getmmap.c XI: directly write out X_GetDeviceModifierMapping reply 2025-06-12 17:21:43 +02:00
getmmap.h XI: directly write out X_GetDeviceModifierMapping reply 2025-06-12 17:21:43 +02:00
getprop.c XI: directly write out X_GetDeviceDontPropagateList reply 2025-06-12 17:21:42 +02:00
getprop.h XI: directly write out X_GetDeviceDontPropagateList reply 2025-06-12 17:21:42 +02:00
getselev.c XI: directly write out X_GetSelectedExtensionEvents reply 2025-06-12 17:21:42 +02:00
getselev.h XI: directly write out X_GetSelectedExtensionEvents reply 2025-06-12 17:21:42 +02:00
getvers.c XI: directly write out X_GetExtensionVersion reply 2025-06-12 17:21:42 +02:00
getvers.h XI: directly write out X_GetExtensionVersion reply 2025-06-12 17:21:42 +02:00
grabdev.c XI: directly write out X_GrabDevice reply 2025-06-12 17:21:43 +02:00
grabdev.h XI: directly write out X_GrabDevice reply 2025-06-12 17:21:43 +02:00
grabdevb.c dix: unexport PickKeyboard() 2025-06-12 16:19:15 +02:00
grabdevb.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
grabdevk.c dix: unexport PickKeyboard() 2025-06-12 16:19:15 +02:00
grabdevk.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
gtmotion.c XI: directly write out X_GetDeviceMotionEvents reply 2025-06-12 17:21:43 +02:00
gtmotion.h XI: directly write out X_GetDeviceMotionEvents reply 2025-06-12 17:21:43 +02:00
listdev.c XI: directly write out X_ListInputDevices reply 2025-06-12 17:21:42 +02:00
listdev.h XI: directly write out X_ListInputDevices reply 2025-06-12 17:21:42 +02:00
meson.build Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00
opendev.c XI: directly write out X_OpenDevice reply 2025-06-12 17:21:42 +02:00
opendev.h XI: directly write out X_OpenDevice reply 2025-06-12 17:21:42 +02:00
queryst.c XI: directly write out X_QueryDeviceState reply 2025-06-12 17:21:43 +02:00
queryst.h XI: directly write out X_QueryDeviceState reply 2025-06-12 17:21:43 +02:00
selectev.c Xi: drop swapping request length fields 2025-02-06 22:28:51 +00:00
selectev.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
sendexev.c Xi: drop swapping request length fields 2025-02-06 22:28:51 +00:00
sendexev.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
setbmap.c XI: directly write out X_SetDeviceButtonMapping reply 2025-06-12 17:21:43 +02:00
setbmap.h XI: directly write out X_SetDeviceButtonMapping reply 2025-06-12 17:21:43 +02:00
setdval.c XI: directly write out X_SetDeviceValuators reply 2025-06-12 17:21:43 +02:00
setdval.h XI: directly write out X_SetDeviceValuators reply 2025-06-12 17:21:43 +02:00
setfocus.c include: drop obsolete dixevents.h 2025-06-12 16:17:35 +02:00
setfocus.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
setmmap.c XI: directly write out X_SetDeviceModifierMapping reply 2025-06-12 17:21:43 +02:00
setmmap.h XI: directly write out X_SetDeviceModifierMapping reply 2025-06-12 17:21:43 +02:00
setmode.c XI: directly write out X_SetDeviceMode reply 2025-06-12 17:21:42 +02:00
setmode.h XI: directly write out X_SetDeviceMode reply 2025-06-12 17:21:42 +02:00
stubs.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
ungrdev.c dix: make SameClient() macro private 2025-06-12 16:53:43 +02:00
ungrdev.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
ungrdevb.c Xi: drop swapping request length fields 2025-02-06 22:28:51 +00:00
ungrdevb.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
ungrdevk.c Xi: drop swapping request length fields 2025-02-06 22:28:51 +00:00
ungrdevk.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xiallowev.c dix: rename IsMaster to InputDevIsMaster() 2025-06-12 16:19:33 +02:00
xiallowev.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xibarriers.c dix: replace CLIENT_ID() macro by dixClientIdForXID() inline function 2025-06-12 16:53:27 +02:00
xibarriers.h Xi: unexport PointerBarrierType field 2025-06-12 16:50:57 +02:00
xichangecursor.c dix: rename IsMaster to InputDevIsMaster() 2025-06-12 16:19:33 +02:00
xichangecursor.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xichangehierarchy.c Xi: use fixed define for extenion base opcode 2025-06-12 17:21:43 +02:00
xichangehierarchy.h Xi: drop now obsolete swap procs 2025-02-06 22:28:52 +00:00
xigetclientpointer.c XI: directly write out X_XIGetClientPointer reply 2025-06-12 17:21:43 +02:00
xigetclientpointer.h XI: directly write out X_XIGetClientPointer reply 2025-06-12 17:21:43 +02:00
xigrabdev.c XI: directly write out X_XIGrabDevice reply 2025-06-12 17:21:43 +02:00
xigrabdev.h XI: directly write out X_XIGrabDevice reply 2025-06-12 17:21:43 +02:00
xipassivegrab.c XI: directly write out X_XIPassiveGrabDevice reply 2025-06-12 17:21:43 +02:00
xipassivegrab.h XI: directly write out X_XIPassiveGrabDevice reply 2025-06-12 17:21:43 +02:00
xiproperty.c Xi: use fixed define for extenion base opcode 2025-06-12 17:21:43 +02:00
xiproperty.h XI: directly write out X_XIGetProperty reply 2025-06-12 17:21:43 +02:00
xiquerydevice.c XI: directly write out X_XIQueryDevice reply 2025-06-12 17:21:43 +02:00
xiquerydevice.h XI: directly write out X_XIQueryDevice reply 2025-06-12 17:21:43 +02:00
xiquerypointer.c XI: directly write out X_XIQueryPointer reply 2025-06-12 17:21:43 +02:00
xiquerypointer.h XI: directly write out X_XIQueryPointer reply 2025-06-12 17:21:43 +02:00
xiqueryversion.c XI: directly write out X_XIQueryVersion reply 2025-06-12 17:21:43 +02:00
xiqueryversion.h XI: directly write out X_XIQueryVersion reply 2025-06-12 17:21:43 +02:00
xiselectev.c XI: directly write out X_XIGetSelectedEvents reply 2025-06-12 17:21:43 +02:00
xiselectev.h XI: directly write out X_XIGetSelectedEvents reply 2025-06-12 17:21:43 +02:00
xisetclientpointer.c dix: rename dixLookupClient() to dixLookupResourceOwner() 2025-06-12 16:52:07 +02:00
xisetclientpointer.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xisetdevfocus.c XI: directly write out X_XIGetFocus reply 2025-06-12 17:21:43 +02:00
xisetdevfocus.h XI: directly write out X_XIGetFocus reply 2025-06-12 17:21:43 +02:00
xiwarppointer.c dix: protect from pScreen->SetCursorPosition == NULL 2025-06-12 16:34:14 +02:00
xiwarppointer.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00