1 |
|
---|
2 | /* Prototypes for Pointer/Keyboard functions that the DDX must provide */
|
---|
3 |
|
---|
4 | #ifdef HAVE_DIX_CONFIG_H
|
---|
5 | #include <dix-config.h>
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef _XF86MISCPROC_H_
|
---|
9 | #define _XF86MISCPROC_H_
|
---|
10 |
|
---|
11 | typedef enum {
|
---|
12 | MISC_MSE_PROTO,
|
---|
13 | MISC_MSE_BAUDRATE,
|
---|
14 | MISC_MSE_SAMPLERATE,
|
---|
15 | MISC_MSE_RESOLUTION,
|
---|
16 | MISC_MSE_BUTTONS,
|
---|
17 | MISC_MSE_EM3BUTTONS,
|
---|
18 | MISC_MSE_EM3TIMEOUT,
|
---|
19 | MISC_MSE_CHORDMIDDLE,
|
---|
20 | MISC_MSE_FLAGS
|
---|
21 | } MiscExtMseValType;
|
---|
22 |
|
---|
23 | typedef enum {
|
---|
24 | MISC_KBD_TYPE,
|
---|
25 | MISC_KBD_RATE,
|
---|
26 | MISC_KBD_DELAY,
|
---|
27 | MISC_KBD_SERVNUMLOCK
|
---|
28 | } MiscExtKbdValType;
|
---|
29 |
|
---|
30 | typedef enum {
|
---|
31 | MISC_RET_SUCCESS,
|
---|
32 | MISC_RET_BADVAL,
|
---|
33 | MISC_RET_BADMSEPROTO,
|
---|
34 | MISC_RET_BADBAUDRATE,
|
---|
35 | MISC_RET_BADFLAGS,
|
---|
36 | MISC_RET_BADCOMBO,
|
---|
37 | MISC_RET_BADKBDTYPE,
|
---|
38 | MISC_RET_NOMODULE
|
---|
39 | } MiscExtReturn;
|
---|
40 |
|
---|
41 | typedef enum {
|
---|
42 | MISC_POINTER,
|
---|
43 | MISC_KEYBOARD
|
---|
44 | } MiscExtStructType;
|
---|
45 |
|
---|
46 | #define MISC_MSEFLAG_CLEARDTR 1
|
---|
47 | #define MISC_MSEFLAG_CLEARRTS 2
|
---|
48 | #define MISC_MSEFLAG_REOPEN 128
|
---|
49 |
|
---|
50 | void XFree86MiscExtensionInit(void);
|
---|
51 |
|
---|
52 | Bool MiscExtGetMouseSettings(pointer *mouse, char **devname);
|
---|
53 | int MiscExtGetMouseValue(pointer mouse, MiscExtMseValType valtype);
|
---|
54 | Bool MiscExtSetMouseValue(pointer mouse, MiscExtMseValType valtype, int value);
|
---|
55 | Bool MiscExtGetKbdSettings(pointer *kbd);
|
---|
56 | int MiscExtGetKbdValue(pointer kbd, MiscExtKbdValType valtype);
|
---|
57 | Bool MiscExtSetKbdValue(pointer kbd, MiscExtKbdValType valtype, int value);
|
---|
58 | int MiscExtSetGrabKeysState(ClientPtr client, int enable);
|
---|
59 | pointer MiscExtCreateStruct(MiscExtStructType mse_or_kbd);
|
---|
60 | void MiscExtDestroyStruct(pointer structure, MiscExtStructType mse_or_kbd);
|
---|
61 | MiscExtReturn MiscExtApply(pointer structure, MiscExtStructType mse_or_kbd);
|
---|
62 | Bool MiscExtSetMouseDevice(pointer mouse, char* device);
|
---|
63 | Bool MiscExtGetFilePaths(const char **configfile, const char **modulepath,
|
---|
64 | const char **logfile);
|
---|
65 | int MiscExtPassMessage(int scrn, const char *msgtype, const char *msgval,
|
---|
66 | char **retstr);
|
---|
67 |
|
---|
68 | #endif
|
---|
69 |
|
---|