1 /* $XFree86: xc/include/extensions/xf86misc.h,v 3.6.2.4 1998/02/24 19:05:44 hohndel Exp $ */
4 * Copyright (c) 1995, 1996 The XFree86 Project, Inc
7 /* THIS IS NOT AN X CONSORTIUM STANDARD */
12 #include <X11/Xfuncproto.h>
14 #define X_XF86MiscQueryVersion 0
15 #ifdef _XF86MISC_SAVER_COMPAT_
16 #define X_XF86MiscGetSaver 1
17 #define X_XF86MiscSetSaver 2
19 #define X_XF86MiscGetMouseSettings 3
20 #define X_XF86MiscGetKbdSettings 4
21 #define X_XF86MiscSetMouseSettings 5
22 #define X_XF86MiscSetKbdSettings 6
24 #define XF86MiscNumberEvents 0
26 #define XF86MiscBadMouseProtocol 0
27 #define XF86MiscBadMouseBaudRate 1
28 #define XF86MiscBadMouseFlags 2
29 #define XF86MiscBadMouseCombo 3
30 #define XF86MiscBadKbdType 4
31 #define XF86MiscModInDevDisabled 5
32 #define XF86MiscModInDevClientNotLocal 6
33 #define XF86MiscNumberErrors (XF86MiscModInDevClientNotLocal + 1)
35 /* Never renumber these */
36 #define MTYPE_MICROSOFT 0
37 #define MTYPE_MOUSESYS 1
38 #define MTYPE_MMSERIES 2
39 #define MTYPE_LOGITECH 3
40 #define MTYPE_BUSMOUSE 4
41 #define MTYPE_LOGIMAN 5
44 #define MTYPE_GLIDEPOINT 8
45 #define MTYPE_IMSERIAL 9
46 #define MTYPE_THINKING 10
47 #define MTYPE_IMPS2 11
48 #define MTYPE_THINKINGPS2 12
49 #define MTYPE_MMANPLUSPS2 13
50 #define MTYPE_GLIDEPOINTPS2 14
51 #define MTYPE_NETPS2 15
52 #define MTYPE_NETSCROLLPS2 16
53 #define MTYPE_SYSMOUSE 17
54 #define MTYPE_AUTOMOUSE 18
56 #define MTYPE_XQUEUE 127
57 #define MTYPE_OSMOUSE 126
59 #define KTYPE_UNKNOWN 0
61 #define KTYPE_101KEY 2
63 #define KTYPE_XQUEUE 4
65 #define MF_CLEAR_DTR 1
66 #define MF_CLEAR_RTS 2
69 #ifndef _XF86MISC_SERVER_
84 } XF86MiscMouseSettings;
91 } XF86MiscKbdSettings;
93 Bool XF86MiscQueryVersion(
94 #if NeedFunctionPrototypes
96 int* /* majorVersion */,
97 int* /* minorVersion */
101 Bool XF86MiscQueryExtension(
102 #if NeedFunctionPrototypes
104 int* /* event_base */,
105 int* /* error_base */
109 Status XF86MiscGetMouseSettings(
110 #if NeedFunctionPrototypes
112 XF86MiscMouseSettings* /* mouse info */
116 Status XF86MiscGetKbdSettings(
117 #if NeedFunctionPrototypes
119 XF86MiscKbdSettings* /* keyboard info */
123 Status XF86MiscSetMouseSettings(
124 #if NeedFunctionPrototypes
126 XF86MiscMouseSettings* /* mouse info */
130 Status XF86MiscSetKbdSettings(
131 #if NeedFunctionPrototypes
133 XF86MiscKbdSettings* /* keyboard info */