From 537f8c4b82be5969b2475efdfaaf6a6442a3058a Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 23 May 2025 17:20:53 +0200 Subject: [PATCH] dix: unexport IsKeyboardDevice() 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 | 9 +++++++++ include/dix.h | 3 --- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/dix/input_priv.h b/dix/input_priv.h index 517f9ed44..c1275f020 100644 --- a/dix/input_priv.h +++ b/dix/input_priv.h @@ -446,4 +446,13 @@ DeviceIntPtr PickKeyboard(ClientPtr client) Bool IsPointerDevice(DeviceIntPtr dev) _X_ATTRIBUTE_NONNULL_ARG(1); +/* + * @brief check whether input device is a keyboard + * + * @param dev pointer to device structure + * @return TRUE if dev is a keyboard device + */ +Bool IsKeyboardDevice(DeviceIntPtr dev) + _X_ATTRIBUTE_NONNULL_ARG(1); + #endif /* _XSERVER_INPUT_PRIV_H */ diff --git a/include/dix.h b/include/dix.h index 27d4888c2..7fb034c3c 100644 --- a/include/dix.h +++ b/include/dix.h @@ -288,9 +288,6 @@ typedef struct { DeviceIntPtr device; } DeviceEventInfoRec; -extern _X_EXPORT Bool -IsKeyboardDevice(DeviceIntPtr dev); - extern _X_EXPORT Bool IsMaster(DeviceIntPtr dev);