From 0b4b683f3eeec43536e73be302a4c396fe4d9894 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 7 Oct 2008 18:44:42 +1030 Subject: [PATCH] xfree86: export NewInputDeviceRequest/DeleteInputDeviceRequest NIDR should be used to create a new SD from e.g. within a driver. DIDR should be used to remove a device from the server. Signed-off-by: Peter Hutterer --- hw/xfree86/common/xf86Xinput.c | 4 ++-- hw/xfree86/loader/xf86sym.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c index 5be08413c..8eaa118a5 100644 --- a/hw/xfree86/common/xf86Xinput.c +++ b/hw/xfree86/common/xf86Xinput.c @@ -461,7 +461,7 @@ AddOtherInputDevices() { } -int +_X_EXPORT int NewInputDeviceRequest (InputOption *options, DeviceIntPtr *pdev) { IDevRec *idev = NULL; @@ -604,7 +604,7 @@ unwind: return rval; } -void +_X_EXPORT void DeleteInputDeviceRequest(DeviceIntPtr pDev) { LocalDevicePtr pInfo = (LocalDevicePtr) pDev->public.devicePrivate; diff --git a/hw/xfree86/loader/xf86sym.c b/hw/xfree86/loader/xf86sym.c index 1677a4934..d0e855887 100644 --- a/hw/xfree86/loader/xf86sym.c +++ b/hw/xfree86/loader/xf86sym.c @@ -642,6 +642,8 @@ _X_HIDDEN void *xfree86LookupTab[] = { SYMFUNC(xf86ActivateDevice) SYMFUNC(xf86XInputSetScreen) SYMFUNC(xf86ScaleAxis) + SYMFUNC(NewInputDeviceRequest) + SYMFUNC(DeleteInputDeviceRequest) #ifdef DPMSExtension SYMFUNC(DPMSGet) SYMFUNC(DPMSSet)