From 20b82a6efbc0cfd69e7d292c70fd96c53c182711 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 23 May 2025 16:26:48 +0200 Subject: [PATCH] dix: unexport DeviceEventCallback field Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- dix/input_priv.h | 5 +++++ include/dix.h | 6 ------ record/record.c | 1 + 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dix/input_priv.h b/dix/input_priv.h index d80ad7b4b..e91054e83 100644 --- a/dix/input_priv.h +++ b/dix/input_priv.h @@ -412,4 +412,9 @@ WindowPtr InputDevSpriteWindow(DeviceIntPtr pDev) void DeliverRawEvent(RawDeviceEvent *event, DeviceIntPtr device) _X_ATTRIBUTE_NONNULL_ARG(1,2); +/* + * @brief callback on input device events + */ +extern CallbackListPtr DeviceEventCallback; + #endif /* _XSERVER_INPUT_PRIV_H */ diff --git a/include/dix.h b/include/dix.h index 7093d6c6e..70573a85b 100644 --- a/include/dix.h +++ b/include/dix.h @@ -308,12 +308,6 @@ typedef struct { int count; } EventInfoRec; -/* - * DeviceEventCallback stuff - */ - -extern _X_EXPORT CallbackListPtr DeviceEventCallback; - typedef struct { InternalEvent *event; DeviceIntPtr device; diff --git a/record/record.c b/record/record.c index d8e730972..ba1f217c9 100644 --- a/record/record.c +++ b/record/record.c @@ -36,6 +36,7 @@ and Jim Haggerty of Metheus. #include "dix/cursor_priv.h" #include "dix/eventconvert.h" +#include "dix/input_priv.h" #include "os/client_priv.h" #include "dixstruct.h"