dix: unexport SetAccelerationProfile()

Not used by any module, just locally within one source file, thus
unexport and make it static

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1347>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-02-29 20:01:19 +01:00 committed by Marge Bot
parent 1b983d7e82
commit 2a5e754275
2 changed files with 3 additions and 5 deletions

View File

@ -92,6 +92,8 @@ DeletePredictableAccelerationProperties(DeviceIntPtr,
/* some int which is not a profile number */
#define PROFILE_UNINITIALIZE (-100)
static int SetAccelerationProfile(DeviceVelocityPtr vel, int profile_num);
/**
* Init DeviceVelocity struct so it should match the average case
*/
@ -1012,8 +1014,7 @@ GetAccelerationProfile(DeviceVelocityPtr vel, int profile_num)
*
* returns FALSE if profile number is unavailable, TRUE otherwise.
*/
int
SetAccelerationProfile(DeviceVelocityPtr vel, int profile_num)
static int SetAccelerationProfile(DeviceVelocityPtr vel, int profile_num)
{
PointerAccelerationProfileFunc profile;

View File

@ -81,9 +81,6 @@ typedef struct _DeviceVelocityRec {
} statistics;
} DeviceVelocityRec, *DeviceVelocityPtr;
extern _X_EXPORT int
SetAccelerationProfile(DeviceVelocityPtr vel, int profile_num);
extern _X_EXPORT DeviceVelocityPtr
GetDevicePredictableAccelData(DeviceIntPtr dev);