diff options
Diffstat (limited to 'include/input.h')
-rw-r--r-- | include/input.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/include/input.h b/include/input.h index 9069a1cb5..e0f6b9b01 100644 --- a/include/input.h +++ b/include/input.h @@ -56,6 +56,7 @@ SOFTWARE. #include "xkbrules.h" #include "events.h" #include "list.h" +#include "os.h" #include <X11/extensions/XI2.h> #define DEVICE_INIT 0 @@ -714,13 +715,20 @@ extern _X_HIDDEN void input_constrain_cursor(DeviceIntPtr pDev, ScreenPtr screen int *out_x, int *out_y, int *nevents, InternalEvent* events); -static inline void input_lock(void) { -} +extern _X_EXPORT void input_lock(void); +extern _X_EXPORT void input_unlock(void); +extern _X_EXPORT void input_force_unlock(void); -static inline void input_unlock(void) { -} +extern void InputThreadPreInit(void); +extern void InputThreadInit(void); +extern void InputThreadFini(void); -static inline void input_force_unlock(void) { -} +extern int InputThreadRegisterDev(int fd, + NotifyFdProcPtr readInputProc, + void *readInputArgs); + +extern int InputThreadUnregisterDev(int fd); + +extern _X_EXPORT Bool InputThreadEnable; #endif /* INPUT_H */ |