1 /* $XFree86: xc/include/extensions/xf86misc.h,v 3.6.2.4 1998/02/24 19:05:44 hohndel Exp $ */
2 
3 /*
4  * Copyright (c) 1995, 1996  The XFree86 Project, Inc
5  */
6 
7 /* THIS IS NOT AN X CONSORTIUM STANDARD */
8 
9 #ifndef _XF86MISC_H_
10 #define _XF86MISC_H_
11 
12 #include <X11/Xfuncproto.h>
13 
14 #define X_XF86MiscQueryVersion		0
15 #ifdef _XF86MISC_SAVER_COMPAT_
16 #define X_XF86MiscGetSaver		1
17 #define X_XF86MiscSetSaver		2
18 #endif
19 #define X_XF86MiscGetMouseSettings	3
20 #define X_XF86MiscGetKbdSettings	4
21 #define X_XF86MiscSetMouseSettings	5
22 #define X_XF86MiscSetKbdSettings	6
23 
24 #define XF86MiscNumberEvents		0
25 
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)
34 
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
42 #define MTYPE_PS_2		6
43 #define MTYPE_MMHIT		7
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
55 
56 #define MTYPE_XQUEUE		127
57 #define MTYPE_OSMOUSE		126
58 
59 #define KTYPE_UNKNOWN		0
60 #define KTYPE_84KEY		1
61 #define KTYPE_101KEY		2
62 #define KTYPE_OTHER		3
63 #define KTYPE_XQUEUE		4
64 
65 #define MF_CLEAR_DTR		1
66 #define MF_CLEAR_RTS		2
67 #define MF_REOPEN		128
68 
69 #ifndef _XF86MISC_SERVER_
70 
71 _XFUNCPROTOBEGIN
72 
73 typedef struct {
74     char*	device;
75     int		type;
76     int		baudrate;
77     int		samplerate;
78     int		resolution;
79     int		buttons;
80     Bool	emulate3buttons;
81     int		emulate3timeout;
82     Bool	chordmiddle;
83     int		flags;
84 } XF86MiscMouseSettings;
85 
86 typedef struct {
87     int		type;
88     int		rate;
89     int		delay;
90     Bool	servnumlock;
91 } XF86MiscKbdSettings;
92 
93 Bool XF86MiscQueryVersion(
94 #if NeedFunctionPrototypes
95     Display*		/* dpy */,
96     int*		/* majorVersion */,
97     int*		/* minorVersion */
98 #endif
99 );
100 
101 Bool XF86MiscQueryExtension(
102 #if NeedFunctionPrototypes
103     Display*		/* dpy */,
104     int*		/* event_base */,
105     int*		/* error_base */
106 #endif
107 );
108 
109 Status XF86MiscGetMouseSettings(
110 #if NeedFunctionPrototypes
111     Display*			/* dpy */,
112     XF86MiscMouseSettings*	/* mouse info */
113 #endif
114 );
115 
116 Status XF86MiscGetKbdSettings(
117 #if NeedFunctionPrototypes
118     Display*			/* dpy */,
119     XF86MiscKbdSettings*	/* keyboard info */
120 #endif
121 );
122 
123 Status XF86MiscSetMouseSettings(
124 #if NeedFunctionPrototypes
125     Display*			/* dpy */,
126     XF86MiscMouseSettings*	/* mouse info */
127 #endif
128 );
129 
130 Status XF86MiscSetKbdSettings(
131 #if NeedFunctionPrototypes
132     Display*			/* dpy */,
133     XF86MiscKbdSettings*	/* keyboard info */
134 #endif
135 );
136 
137 _XFUNCPROTOEND
138 
139 #endif
140 
141 #endif
142