input: remove OpenInputDevice and CloseInputDevice DDX hooks.
In theory, these hooks were to be used for DDX-specific device enablement. None of the DDXs however did anything here. Now we call DEVICE_INIT on all devices when they are added, so the xfree86 DDX as the only one with real code didn't do anything here. kdrive checked for device validity but that's already handled in ProcXOpenDevice. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
@@ -2176,23 +2176,6 @@ ProcessInputEvents (void)
|
||||
KdCheckLock ();
|
||||
}
|
||||
|
||||
/* FIXME use XSECURITY to work out whether the client should be allowed to
|
||||
* open and close. */
|
||||
void
|
||||
OpenInputDevice(DeviceIntPtr pDev, ClientPtr client, int *status)
|
||||
{
|
||||
if (!pDev)
|
||||
*status = BadDevice;
|
||||
else
|
||||
*status = Success;
|
||||
}
|
||||
|
||||
void
|
||||
CloseInputDevice(DeviceIntPtr pDev, ClientPtr client)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/* We initialise all input devices at startup. */
|
||||
void
|
||||
AddOtherInputDevices(void)
|
||||
|
||||
Reference in New Issue
Block a user