diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-06-01 19:22:38 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2006-06-01 19:22:38 +0000 |
commit | 32be08ba7242da74de5defd6a4dcb536a273f57a (patch) | |
tree | 0e5a115268f450ea97137296587a7dd40ae21415 | |
parent | d81edb9e00680e3c0001f343fa1d0c310b86cb93 (diff) |
Remove horrendously ugly DDX backward-compatibility.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | dix/devices.c | 43 | ||||
-rw-r--r-- | hw/dmx/input/dmxinputinit.c | 4 | ||||
-rw-r--r-- | hw/dmx/input/dmxxinput.c | 2 | ||||
-rw-r--r-- | include/input.h | 24 | ||||
-rw-r--r-- | mi/mipointer.c | 15 | ||||
-rw-r--r-- | mi/mipointer.h | 11 |
7 files changed, 17 insertions, 89 deletions
@@ -17,6 +17,13 @@ * os/WaitFor.c: Die, XTESTEXT1, die! + * dix/devices.c: + * include/input.h: + * mi/mipointer.h: + * mi/mipointer.c: + Get rid of horrendous, somewhat misguided, DDX binary-compatibility + glue. + 2006-05-30 Matthieu Herrb <matthieu.herrb@laas.fr> * hw/xfree86/os-support/bsd/Makefile.am: diff --git a/dix/devices.c b/dix/devices.c index b1d85bf5c..245992e45 100644 --- a/dix/devices.c +++ b/dix/devices.c @@ -48,7 +48,7 @@ SOFTWARE. /* $Xorg: devices.c,v 1.4 2001/02/09 02:04:39 xorgcvs Exp $ */ -/* $XdotOrg: xserver/xorg/dix/devices.c,v 1.9 2006/02/15 20:44:12 ajax Exp $ */ +/* $XdotOrg: xserver/xorg/dix/devices.c,v 1.10 2006/03/28 01:20:59 ajax Exp $ */ #ifdef HAVE_DIX_CONFIG_H #include <dix-config.h> @@ -83,7 +83,7 @@ SOFTWARE. #include "dixevents.h" DeviceIntPtr -_AddInputDevice(DeviceProc deviceProc, Bool autoStart) +AddInputDevice(DeviceProc deviceProc, Bool autoStart) { register DeviceIntPtr dev; @@ -356,7 +356,7 @@ NumMotionEvents() } void -_RegisterPointerDevice(DeviceIntPtr device) +RegisterPointerDevice(DeviceIntPtr device) { inputInfo.pointer = device; #ifdef XKB @@ -379,7 +379,7 @@ _RegisterPointerDevice(DeviceIntPtr device) } void -_RegisterKeyboardDevice(DeviceIntPtr device) +RegisterKeyboardDevice(DeviceIntPtr device) { inputInfo.keyboard = device; #ifdef XKB @@ -1629,38 +1629,3 @@ ProcQueryKeymap(ClientPtr client) WriteReplyToClient(client, sizeof(xQueryKeymapReply), &rep); return Success; } - -/****************************************************************************** - * The following entrypoints are provided for binary compatibility with - * previous versions (they make casts, where the current version changes types - * for more stringent prototype checking). - ******************************************************************************/ -#ifdef AddInputDevice -#undef AddInputDevice - -DevicePtr -AddInputDevice(DeviceProc deviceProc, Bool autoStart) -{ - return (DevicePtr)_AddInputDevice(deviceProc, autoStart); -} -#endif /* AddInputDevice */ - -#ifdef RegisterPointerDevice -#undef RegisterPointerDevice - -void -RegisterPointerDevice(DevicePtr device) -{ - _RegisterPointerDevice((DeviceIntPtr)device); -} -#endif /* RegisterPointerDevice */ - -#ifdef RegisterKeyboardDevice -#undef RegisterKeyboardDevice - -void -RegisterKeyboardDevice(DevicePtr device) -{ - _RegisterKeyboardDevice((DeviceIntPtr)device); -} -#endif /* RegisterKeyboardDevice */ diff --git a/hw/dmx/input/dmxinputinit.c b/hw/dmx/input/dmxinputinit.c index 57eb5751c..0519d2b72 100644 --- a/hw/dmx/input/dmxinputinit.c +++ b/hw/dmx/input/dmxinputinit.c @@ -669,13 +669,13 @@ static DeviceIntPtr dmxAddDevice(DMXLocalInputInfoPtr dmxLocal) dmxLocal->isCore = 1; dmxLocalCoreKeyboard = dmxLocal; name = "keyboard"; - registerProcPtr = _RegisterKeyboardDevice; + registerProcPtr = RegisterKeyboardDevice; } if (dmxLocal->type == DMX_LOCAL_MOUSE && !dmxLocalCorePointer) { dmxLocal->isCore = 1; dmxLocalCorePointer = dmxLocal; name = "pointer"; - registerProcPtr = _RegisterPointerDevice; + registerProcPtr = RegisterPointerDevice; } } diff --git a/hw/dmx/input/dmxxinput.c b/hw/dmx/input/dmxxinput.c index bd4ace6d0..81d1cfbe6 100644 --- a/hw/dmx/input/dmxxinput.c +++ b/hw/dmx/input/dmxxinput.c @@ -70,7 +70,7 @@ int ChangeKeyboardDevice(DeviceIntPtr old_dev, DeviceIntPtr new_dev) dmxLocalNew->sendsCore = 1; dmxLocalCorePointer = dmxLocalNew; - _RegisterKeyboardDevice(new_dev); + RegisterKeyboardDevice(new_dev); RegisterOtherDevice(old_dev); return Success; diff --git a/include/input.h b/include/input.h index bcaa01e6f..e32182d4c 100644 --- a/include/input.h +++ b/include/input.h @@ -163,15 +163,7 @@ extern void ResetDevicePrivateIndex(void); extern KeybdCtrl defaultKeyboardControl; extern PtrCtrl defaultPointerControl; -#undef AddInputDevice -extern DevicePtr AddInputDevice( - DeviceProc /*deviceProc*/, - Bool /*autoStart*/); - -#define AddInputDevice(deviceProc, autoStart) \ - _AddInputDevice(deviceProc, autoStart) - -extern DeviceIntPtr _AddInputDevice( +extern DeviceIntPtr AddInputDevice( DeviceProc /*deviceProc*/, Bool /*autoStart*/); @@ -190,24 +182,10 @@ extern void RemoveDevice( extern int NumMotionEvents(void); -#undef RegisterPointerDevice extern void RegisterPointerDevice( - DevicePtr /*device*/); - -#define RegisterPointerDevice(device) \ - _RegisterPointerDevice(device) - -extern void _RegisterPointerDevice( DeviceIntPtr /*device*/); -#undef RegisterKeyboardDevice extern void RegisterKeyboardDevice( - DevicePtr /*device*/); - -#define RegisterKeyboardDevice(device) \ - _RegisterKeyboardDevice(device) - -extern void _RegisterKeyboardDevice( DeviceIntPtr /*device*/); extern DevicePtr LookupKeyboardDevice(void); diff --git a/mi/mipointer.c b/mi/mipointer.c index 2b8fa0d3d..4602d4703 100644 --- a/mi/mipointer.c +++ b/mi/mipointer.c @@ -523,22 +523,9 @@ miPointerMove (pScreen, x, y, time) } void -_miRegisterPointerDevice (pScreen, pDevice) +miRegisterPointerDevice (pScreen, pDevice) ScreenPtr pScreen; DeviceIntPtr pDevice; { miPointer.pPointer = (DevicePtr)pDevice; } - -/* obsolete: for binary compatibility */ - -#ifdef miRegisterPointerDevice -#undef miRegisterPointerDevice -void -miRegisterPointerDevice (pScreen, pDevice) - ScreenPtr pScreen; - DevicePtr pDevice; -{ - miPointer.pPointer = pDevice; -} -#endif /* miRegisterPointerDevice */ diff --git a/mi/mipointer.h b/mi/mipointer.h index f8e7fd084..ad4be69c2 100644 --- a/mi/mipointer.h +++ b/mi/mipointer.h @@ -134,12 +134,6 @@ extern void miPointerPosition( int * /*y*/ ); -#undef miRegisterPointerDevice -extern void miRegisterPointerDevice( - ScreenPtr /*pScreen*/, - DevicePtr /*pDevice*/ -); - extern void miPointerSetNewScreen( int, /*screen_no*/ int, /*x*/ @@ -149,10 +143,7 @@ extern ScreenPtr miPointerCurrentScreen( void ); -#define miRegisterPointerDevice(pScreen,pDevice) \ - _miRegisterPointerDevice(pScreen,pDevice) - -extern void _miRegisterPointerDevice( +extern void miRegisterPointerDevice( ScreenPtr /*pScreen*/, DeviceIntPtr /*pDevice*/ ); |