1#include "fake-symbols.h"
2
3_X_EXPORT int
4xf86ReadSerial(int fd, void *buf, int count)
5{
6    return 0;
7}
8
9_X_EXPORT int
10xf86WriteSerial(int fd, const void *buf, int count)
11{
12    return 0;
13}
14
15_X_EXPORT int
16xf86CloseSerial(int fd)
17{
18    return 0;
19}
20
21_X_EXPORT int
22xf86WaitForInput(int fd, int timeout)
23{
24    return 0;
25}
26
27_X_EXPORT int
28xf86OpenSerial(XF86OptionPtr options)
29{
30    return 0;
31}
32
33_X_EXPORT int
34xf86SetSerialSpeed(int fd, int speed)
35{
36    return 0;
37}
38
39_X_EXPORT XF86OptionPtr
40xf86ReplaceIntOption(XF86OptionPtr optlist, const char *name, const int val)
41{
42    return NULL;
43}
44
45_X_EXPORT char *
46xf86SetStrOption(XF86OptionPtr optlist, const char *name, const char *deflt)
47{
48    return NULL;
49}
50
51_X_EXPORT int
52xf86SetBoolOption(XF86OptionPtr optlist, const char *name, int deflt)
53{
54    return 0;
55}
56
57_X_EXPORT XF86OptionPtr
58xf86AddNewOption(XF86OptionPtr head, const char *name, const char *val)
59{
60    return NULL;
61}
62
63_X_EXPORT const char *
64xf86FindOptionValue(XF86OptionPtr options, const char *name)
65{
66    return NULL;
67}
68
69_X_EXPORT char *
70xf86OptionName(XF86OptionPtr opt)
71{
72    return NULL;
73}
74
75_X_EXPORT char *
76xf86OptionValue(XF86OptionPtr opt)
77{
78    return NULL;
79}
80
81_X_EXPORT int
82xf86NameCmp(const char *s1, const char *s2)
83{
84    return 0;
85}
86
87_X_EXPORT void
88xf86AddEnabledDevice(InputInfoPtr pInfo)
89{
90    return;
91}
92
93_X_EXPORT void
94xf86RemoveEnabledDevice(InputInfoPtr pInfo)
95{
96    return;
97}
98
99_X_EXPORT Atom
100XIGetKnownProperty(char *name)
101{
102    return None;
103}
104
105_X_EXPORT void
106xf86AddInputDriver(InputDriverPtr driver, pointer module, int flags)
107{
108    return;
109}
110
111_X_EXPORT int
112xf86ScaleAxis(int Cx, int to_max, int to_min, int from_max, int from_min)
113{
114    int X;
115    int64_t to_width = to_max - to_min;
116    int64_t from_width = from_max - from_min;
117
118    if (from_width) {
119        X = (int) (((to_width * (Cx - from_min)) / from_width) + to_min);
120    }
121    else {
122        X = 0;
123        /*ErrorF ("Divide by Zero in xf86ScaleAxis\n"); */
124    }
125
126    if (X > to_max)
127        X = to_max;
128    if (X < to_min)
129        X = to_min;
130
131    return X;
132}
133
134_X_EXPORT void
135DeleteInputDeviceRequest(DeviceIntPtr pDev)
136{
137    return;
138}
139
140_X_EXPORT void
141FreeInputAttributes(InputAttributes * attrs)
142{
143    return;
144}
145
146_X_EXPORT void
147xf86PostButtonEvent(DeviceIntPtr device,
148                    int is_absolute,
149                    int button,
150                    int is_down, int first_valuator, int num_valuators, ...)
151{
152    return;
153}
154
155_X_EXPORT int
156Xasprintf(char **ret, const char *format, ...)
157{
158    return 0;
159}
160
161_X_EXPORT int
162XISetDevicePropertyDeletable(DeviceIntPtr dev, Atom property, Bool deletable)
163{
164    return 0;
165}
166
167_X_EXPORT InputInfoPtr
168xf86FirstLocalDevice(void)
169{
170    return NULL;
171}
172
173_X_EXPORT void
174xf86DeleteInput(InputInfoPtr pInp, int flags)
175{
176    return;
177}
178
179_X_EXPORT XF86OptionPtr
180xf86OptionListDuplicate(XF86OptionPtr options)
181{
182    return NULL;
183}
184
185_X_EXPORT Bool
186InitButtonClassDeviceStruct(DeviceIntPtr dev, int numButtons, Atom *labels,
187                            CARD8 *map)
188{
189    return FALSE;
190}
191
192_X_EXPORT void
193InitValuatorAxisStruct(DeviceIntPtr dev, int axnum, Atom label, int minval,
194                       int maxval, int resolution, int min_res, int max_res,
195                       int mode)
196{
197    return;
198}
199
200_X_EXPORT void
201xf86PostKeyboardEvent(DeviceIntPtr device, unsigned int key_code, int is_down)
202{
203    return;
204}
205
206_X_EXPORT int
207xf86SetIntOption(XF86OptionPtr optlist, const char *name, int deflt)
208{
209    return 0;
210}
211
212_X_EXPORT void
213xf86PostButtonEventP(DeviceIntPtr device,
214                     int is_absolute,
215                     int button,
216                     int is_down, int first_valuator, int num_valuators,
217                     const int *valuators)
218{
219    return;
220}
221
222_X_EXPORT Bool
223InitPtrFeedbackClassDeviceStruct(DeviceIntPtr dev, PtrCtrlProcPtr controlProc)
224{
225    return FALSE;
226}
227
228_X_EXPORT int
229XIChangeDeviceProperty(DeviceIntPtr dev, Atom property, Atom type,
230                       int format, int mode, unsigned long len,
231                       XF86OptionPtr value, Bool sendevent)
232{
233    return 0;
234}
235
236_X_EXPORT CARD32
237GetTimeInMillis(void)
238{
239    return 0;
240}
241
242_X_EXPORT int
243NewInputDeviceRequest(InputOption *options,
244                      InputAttributes * attrs,
245                      DeviceIntPtr *pdev)
246{
247    return 0;
248}
249
250_X_EXPORT Bool
251InitLedFeedbackClassDeviceStruct(DeviceIntPtr dev, LedCtrlProcPtr controlProc)
252{
253    return FALSE;
254}
255
256_X_EXPORT InputAttributes *
257DuplicateInputAttributes(InputAttributes * attrs)
258{
259    return NULL;
260}
261
262_X_EXPORT int
263ValidAtom(Atom atom)
264{
265    return None;
266}
267
268_X_EXPORT Bool
269InitKeyboardDeviceStruct(DeviceIntPtr dev, XkbRMLVOSet * rmlvo,
270                         BellProcPtr bell_func, KbdCtrlProcPtr ctrl_func)
271{
272    return FALSE;
273}
274
275_X_EXPORT long
276XIRegisterPropertyHandler(DeviceIntPtr dev,
277                          int (*SetProperty) (DeviceIntPtr dev,
278                                              Atom property,
279                                              XIPropertyValuePtr prop,
280                                              BOOL checkonly),
281                          int (*GetProperty) (DeviceIntPtr dev,
282                                              Atom property),
283                          int (*DeleteProperty) (DeviceIntPtr dev,
284                                                 Atom property))
285{
286    return 0;
287}
288
289_X_EXPORT int
290InitProximityClassDeviceStruct(DeviceIntPtr dev)
291{
292    return 0;
293}
294
295_X_EXPORT void
296xf86Msg(MessageType type, const char *format, ...)
297{
298    return;
299}
300
301_X_EXPORT void
302xf86MsgVerb(MessageType type, int verb, const char *format, ...)
303{
304    return;
305}
306
307_X_EXPORT void
308xf86IDrvMsg(InputInfoPtr dev, MessageType type, const char *format, ...)
309{
310    return;
311}
312
313_X_EXPORT void
314LogMessageVerbSigSafe(MessageType type, int verb, const char *format, ...)
315{
316    return;
317}
318
319_X_EXPORT void
320xf86PostMotionEventP(DeviceIntPtr device,
321                     int is_absolute, int first_valuator, int num_valuators,
322                     const int *valuators)
323{
324    return;
325}
326
327_X_EXPORT Bool
328InitValuatorClassDeviceStruct(DeviceIntPtr dev, int numAxes, Atom *labels,
329                              int numMotionEvents, int mode)
330{
331    return FALSE;
332}
333
334_X_EXPORT XF86OptionPtr
335xf86ReplaceStrOption(XF86OptionPtr optlist, const char *name, const char *val)
336{
337    return NULL;
338}
339
340_X_EXPORT XF86OptionPtr
341xf86NextOption(XF86OptionPtr list)
342{
343    return NULL;
344}
345
346_X_EXPORT int
347XIGetDeviceProperty(DeviceIntPtr dev, Atom property, XIPropertyValuePtr *value)
348{
349    return 0;
350}
351
352_X_EXPORT Atom
353MakeAtom(const char *string, unsigned len, Bool makeit)
354{
355    return None;
356}
357
358_X_EXPORT int
359GetMotionHistorySize(void)
360{
361    return 0;
362}
363
364_X_EXPORT void
365xf86PostProximityEventP(DeviceIntPtr device,
366                        int is_in, int first_valuator, int num_valuators,
367                        const int *valuators)
368{
369    return;
370}
371
372_X_EXPORT Bool
373InitFocusClassDeviceStruct(DeviceIntPtr dev)
374{
375    return FALSE;
376}
377
378void
379xf86ProcessCommonOptions(InputInfoPtr pInfo, XF86OptionPtr list)
380{
381}
382
383void
384xf86CollectInputOptions(InputInfoPtr pInfo,
385                        const char **defaultOpts)
386{
387}
388
389InputInfoPtr
390xf86AllocateInput(void)
391{
392    return NULL;
393}
394
395ClientPtr serverClient;
396
397Bool
398QueueWorkProc(Bool (*function)
399              (ClientPtr /* pClient */ , pointer /* closure */ ),
400              ClientPtr client, pointer closure)
401{
402    return FALSE;
403}
404
405_X_EXPORT ValuatorMask *
406valuator_mask_new(int num_valuators)
407{
408    return NULL;
409}
410
411_X_EXPORT void
412valuator_mask_free(ValuatorMask **mask)
413{
414}
415
416_X_EXPORT int
417valuator_mask_get(const ValuatorMask *mask, int valuator)
418{
419    return 0;
420}
421
422_X_EXPORT void
423valuator_mask_set(ValuatorMask *mask, int valuator, int data)
424{
425}
426
427extern _X_EXPORT void
428valuator_mask_unset(ValuatorMask *mask, int bit)
429{
430}
431
432_X_EXPORT int
433valuator_mask_num_valuators(const ValuatorMask *mask)
434{
435    return 0;
436}
437
438_X_EXPORT void
439valuator_mask_zero(ValuatorMask *mask)
440{
441}
442
443_X_EXPORT void
444valuator_mask_copy(ValuatorMask *dest, const ValuatorMask *src)
445{
446}
447
448_X_EXPORT void
449xf86PostTouchEvent(DeviceIntPtr dev, uint32_t touchid,
450                   uint16_t type, uint32_t flags, const ValuatorMask *mask)
451{
452}
453