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);