summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-11-19 15:50:11 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-11-19 21:40:38 +1000
commita2a33b41f1ae8d918190e3f0bf14c38cc7db8549 (patch)
tree4492507c5223e697fef6f8d6079202ee562eebe2 /test
parentb13a40cb9c2015093cc9e12fb1ecc1cedbe8925c (diff)
downloadxf86-input-wacom-a2a33b41f1ae8d918190e3f0bf14c38cc7db8549.tar.gz
Require xserver 1.10 as minimum version
Released in 2011 and available in RHEL6.2 and later, this should be conservative enough. It allows us to drop a bunch of code that requires older ABIs (anything ABI_XINPUT_VERSION < 12). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r--test/fake-symbols.c51
1 files changed, 4 insertions, 47 deletions
diff --git a/test/fake-symbols.c b/test/fake-symbols.c
index 07fa3a4..c8cc676 100644
--- a/test/fake-symbols.c
+++ b/test/fake-symbols.c
@@ -161,14 +161,11 @@ DeleteInputDeviceRequest(DeviceIntPtr pDev)
return;
}
-
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 11
_X_EXPORT void
FreeInputAttributes(InputAttributes *attrs)
{
return;
}
-#endif
_X_EXPORT void
xf86PostButtonEvent(DeviceIntPtr device,
@@ -262,10 +259,7 @@ xf86PostButtonEventP(DeviceIntPtr device,
int is_down,
int first_valuator,
int num_valuators,
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
- const
-#endif
- int *valuators)
+ const int *valuators)
{
return;
}
@@ -279,14 +273,7 @@ InitPtrFeedbackClassDeviceStruct(DeviceIntPtr dev, PtrCtrlProcPtr controlProc)
_X_EXPORT int
XIChangeDeviceProperty (DeviceIntPtr dev, Atom property, Atom type,
int format, int mode, unsigned long len,
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) > 16
- const void *
-#elif GET_ABI_MAJOR(ABI_XINPUT_VERSION) > 12
- const pointer
-#else
- pointer
-#endif
- value, Bool sendevent)
+ const void * value, Bool sendevent)
{
return 0;
}
@@ -300,9 +287,7 @@ GetTimeInMillis (void)
_X_EXPORT int
NewInputDeviceRequest (InputOption *options,
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 11
InputAttributes *attrs,
-#endif
DeviceIntPtr *pdev)
{
return 0;
@@ -316,13 +301,11 @@ InitLedFeedbackClassDeviceStruct (DeviceIntPtr dev, LedCtrlProcPtr controlProc)
}
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 11
_X_EXPORT InputAttributes*
DuplicateInputAttributes(InputAttributes *attrs)
{
return NULL;
}
-#endif
_X_EXPORT int
ValidAtom(Atom atom)
@@ -380,10 +363,7 @@ xf86PostMotionEventP(DeviceIntPtr device,
int is_absolute,
int first_valuator,
int num_valuators,
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
- const
-#endif
- int *valuators)
+ const int *valuators)
{
return;
}
@@ -437,10 +417,7 @@ xf86PostProximityEventP(DeviceIntPtr device,
int is_in,
int first_valuator,
int num_valuators,
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
- const
-#endif
- int *valuators)
+ const int *valuators)
{
return;
}
@@ -452,26 +429,6 @@ InitFocusClassDeviceStruct(DeviceIntPtr dev)
return FALSE;
}
-#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 12
-void
-xf86ProcessCommonOptions(InputInfoPtr pInfo, pointer list)
-{
-}
-
-void
-xf86CollectInputOptions(InputInfoPtr pInfo,
- const char **defaultOpts,
- pointer extraOpts)
-{
-}
-
-InputInfoPtr xf86AllocateInput(InputDriverPtr drv, int flags)
-{
- return NULL;
-}
-
-#endif
-
ClientPtr serverClient;
Bool QueueWorkProc (