45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Prototypes for Pointer/Keyboard functions that the DDX must provide */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef HAVE_DIX_CONFIG_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <dix-config.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef _XF86MISCPROC_H_
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define _XF86MISCPROC_H_
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef enum {
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_MSE_PROTO,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_MSE_BAUDRATE,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_MSE_SAMPLERATE,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_MSE_RESOLUTION,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_MSE_BUTTONS,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_MSE_EM3BUTTONS,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_MSE_EM3TIMEOUT,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_MSE_CHORDMIDDLE,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_MSE_FLAGS
45e9809aff7304721fddb95654901b32195c9c7avboxsync} MiscExtMseValType;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef enum {
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_KBD_TYPE,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_KBD_RATE,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_KBD_DELAY,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_KBD_SERVNUMLOCK
45e9809aff7304721fddb95654901b32195c9c7avboxsync} MiscExtKbdValType;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef enum {
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_RET_SUCCESS,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_RET_BADVAL,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_RET_BADMSEPROTO,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_RET_BADBAUDRATE,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_RET_BADFLAGS,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_RET_BADCOMBO,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_RET_BADKBDTYPE,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_RET_NOMODULE
45e9809aff7304721fddb95654901b32195c9c7avboxsync} MiscExtReturn;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef enum {
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_POINTER,
45e9809aff7304721fddb95654901b32195c9c7avboxsync MISC_KEYBOARD
45e9809aff7304721fddb95654901b32195c9c7avboxsync} MiscExtStructType;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define MISC_MSEFLAG_CLEARDTR 1
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define MISC_MSEFLAG_CLEARRTS 2
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define MISC_MSEFLAG_REOPEN 128
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid XFree86MiscExtensionInit(void);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBool MiscExtGetMouseSettings(pointer *mouse, char **devname);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncint MiscExtGetMouseValue(pointer mouse, MiscExtMseValType valtype);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBool MiscExtSetMouseValue(pointer mouse, MiscExtMseValType valtype, int value);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBool MiscExtGetKbdSettings(pointer *kbd);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncint MiscExtGetKbdValue(pointer kbd, MiscExtKbdValType valtype);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBool MiscExtSetKbdValue(pointer kbd, MiscExtKbdValType valtype, int value);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncint MiscExtSetGrabKeysState(ClientPtr client, int enable);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncpointer MiscExtCreateStruct(MiscExtStructType mse_or_kbd);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid MiscExtDestroyStruct(pointer structure, MiscExtStructType mse_or_kbd);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncMiscExtReturn MiscExtApply(pointer structure, MiscExtStructType mse_or_kbd);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBool MiscExtSetMouseDevice(pointer mouse, char* device);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBool MiscExtGetFilePaths(const char **configfile, const char **modulepath,
45e9809aff7304721fddb95654901b32195c9c7avboxsync const char **logfile);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncint MiscExtPassMessage(int scrn, const char *msgtype, const char *msgval,
45e9809aff7304721fddb95654901b32195c9c7avboxsync char **retstr);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync