]> diplodocus.org Git - xorg-xinput/blob - src/xinput.h
Require inputproto 1.9.99.5
[xorg-xinput] / src / xinput.h
1 /*
2 * Copyright 1996 by Frederic Lepied, France. <Frederic.Lepied@sugix.frmug.org>
3 *
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that
7 * copyright notice and this permission notice appear in supporting
8 * documentation, and that the name of the authors not be used in
9 * advertising or publicity pertaining to distribution of the software without
10 * specific, written prior permission. The authors make no
11 * representations about the suitability of this software for any purpose. It
12 * is provided "as is" without express or implied warranty.
13 *
14 * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 * EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20 * PERFORMANCE OF THIS SOFTWARE.
21 *
22 */
23
24 #if HAVE_CONFIG_H
25 #include <config.h>
26 #endif
27
28 #include <X11/Xlib.h>
29 #include <X11/extensions/XInput.h>
30 #include <X11/Xutil.h>
31 #include <stdio.h>
32 #include <stdlib.h>
33
34 #ifndef EXIT_SUCCESS
35 #define EXIT_SUCCESS 1
36 #endif
37 #ifndef EXIT_FAILURE
38 #define EXIT_FAILURE 0
39 #endif
40
41 XDeviceInfo*
42 find_device_info(
43 #if NeedFunctionPrototypes
44 Display *display,
45 char *name,
46 Bool only_extended
47 #endif
48 );
49 int
50 get_feedbacks(
51 #if NeedFunctionPrototypes
52 Display* display,
53 int argc,
54 char *argv[],
55 char *prog_name,
56 char *prog_desc
57 #endif
58 );
59
60 int
61 set_ptr_feedback(
62 #if NeedFunctionPrototypes
63 Display* display,
64 int argc,
65 char *argv[],
66 char *prog_name,
67 char *prog_desc
68 #endif
69 );
70
71 int
72 set_button_map(
73 #if NeedFunctionPrototypes
74 Display* display,
75 int argc,
76 char *argv[],
77 char *prog_name,
78 char *prog_desc
79 #endif
80 );
81
82 int
83 set_pointer(
84 #if NeedFunctionPrototypes
85 Display* display,
86 int argc,
87 char *argv[],
88 char *prog_name,
89 char *prog_desc
90 #endif
91 );
92
93 int
94 set_mode(
95 #if NeedFunctionPrototypes
96 Display* display,
97 int argc,
98 char *argv[],
99 char *prog_name,
100 char *prog_desc
101 #endif
102 );
103
104 int
105 list(
106 #if NeedFunctionPrototypes
107 Display* display,
108 int argc,
109 char *argv[],
110 char *prog_name,
111 char *prog_desc
112 #endif
113 );
114
115 int
116 test(
117 #if NeedFunctionPrototypes
118 Display* display,
119 int argc,
120 char *argv[],
121 char *prog_name,
122 char *prog_desc
123 #endif
124 );
125
126 int
127 version(
128 #if NeedFunctionPrototypes
129 Display* display,
130 int argc,
131 char *argv[],
132 char *prog_name,
133 char *prog_desc
134 #endif
135 );
136
137 int
138 set_integer_feedback(
139 #if NeedFunctionPrototypes
140 Display* display,
141 int argc,
142 char *argv[],
143 char *prog_name,
144 char *prog_desc
145 #endif
146 );
147
148 int
149 query_state(
150 #if NeedFunctionPrototypes
151 Display* display,
152 int argc,
153 char *argv[],
154 char *prog_name,
155 char *prog_desc
156 #endif
157 );
158
159 int
160 create_master(
161 #if NeedFunctionPrototypes
162 Display* display,
163 int argc,
164 char *argv[],
165 char *prog_name,
166 char *prog_desc
167 #endif
168 );
169
170 int
171 remove_master(
172 #if NeedFunctionPrototypes
173 Display* display,
174 int argc,
175 char *argv[],
176 char *prog_name,
177 char *prog_desc
178 #endif
179 );
180
181 int
182 change_attachment(
183 #if NeedFunctionPrototypes
184 Display* display,
185 int argc,
186 char *argv[],
187 char *prog_name,
188 char *prog_desc
189 #endif
190 );
191
192 int
193 float_device(
194 #if NeedFunctionPrototypes
195 Display* display,
196 int argc,
197 char *argv[],
198 char *prog_name,
199 char *prog_desc
200 #endif
201 );
202
203 int
204 set_clientpointer(
205 #if NeedFunctionPrototypes
206 Display* display,
207 int argc,
208 char *argv[],
209 char *prog_name,
210 char *prog_desc
211 #endif
212 );
213
214 int
215 list_props(
216 #if NeedFunctionPrototypes
217 Display* display,
218 int argc,
219 char *argv[],
220 char *prog_name,
221 char *prog_desc
222 #endif
223 );
224
225
226 int
227 set_int_prop(
228 #if NeedFunctionPrototypes
229 Display* display,
230 int argc,
231 char *argv[],
232 char *prog_name,
233 char *prog_desc
234 #endif
235 );
236
237 int
238 watch_props(
239 #if NeedFunctionPrototypes
240 Display* display,
241 int argc,
242 char *argv[],
243 char *prog_name,
244 char *prog_desc
245 #endif
246 );
247
248 int
249 delete_prop(
250 #if NeedFunctionPrototypes
251 Display* display,
252 int argc,
253 char *argv[],
254 char *prog_name,
255 char *prog_desc
256 #endif
257 );
258
259 /* end of xinput.h */