diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-07-30 14:21:14 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-09-01 15:26:51 +1000 |
commit | cb672a461cc6cd668ab7e61994b94e9ff46b3ef1 (patch) | |
tree | d93b32b014d754c901d440dd452e506f647d67e1 /Xi/stubs.c | |
parent | a46d2bb344e822bbd9d69cb59829b85f9d8f0213 (diff) |
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>
Diffstat (limited to 'Xi/stubs.c')
-rw-r--r-- | Xi/stubs.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/Xi/stubs.c b/Xi/stubs.c index de80042ec..4c9795aba 100644 --- a/Xi/stubs.c +++ b/Xi/stubs.c @@ -68,24 +68,6 @@ SOFTWARE. /*********************************************************************** * - * Caller: ProcXCloseDevice - * - * Take care of implementation-dependent details of closing a device. - * Some implementations may actually close the device, others may just - * remove this clients interest in that device. - * - * The default implementation is to do nothing (assume all input devices - * are initialized during X server initialization and kept open). - * - */ - -void -CloseInputDevice(DeviceIntPtr d, ClientPtr client) -{ -} - -/*********************************************************************** - * * Caller: ProcXListInputDevices * * This is the implementation-dependent routine to initialize an input @@ -127,34 +109,6 @@ AddOtherInputDevices(void) } -/*********************************************************************** - * - * Caller: ProcXOpenDevice - * - * This is the implementation-dependent routine to open an input device. - * Some implementations open all input devices when the server is first - * initialized, and never close them. Other implementations open only - * the X pointer and keyboard devices during server initialization, - * and only open other input devices when some client makes an - * XOpenDevice request. This entry point is for the latter type of - * implementation. - * - * If the physical device is not already open, do it here. In this case, - * you need to keep track of the fact that one or more clients has the - * device open, and physically close it when the last client that has - * it open does an XCloseDevice. - * - * The default implementation is to do nothing (assume all input devices - * are opened during X server initialization and kept open). - * - */ - -void -OpenInputDevice(DeviceIntPtr dev, ClientPtr client, int *status) -{ - *status = XaceHook(XACE_DEVICE_ACCESS, client, dev, DixUseAccess); -} - /**************************************************************************** * * Caller: ProcXSetDeviceMode |