1
1
#include "fake-symbols.h"
4
int xf86ReadSerial (int fd, void *buf, int count)
11
xf86WriteSerial (int fd, const void *buf, int count)
17
xf86CloseSerial (int fd)
23
xf86WaitForInput (int fd, int timeout)
29
xf86OpenSerial (OPTTYPE options)
35
xf86SetSerialSpeed (int fd, int speed)
5
xf86ReadSerial(int fd, void *buf, int count)
11
xf86WriteSerial(int fd, const void *buf, int count)
17
xf86CloseSerial(int fd)
23
xf86WaitForInput(int fd, int timeout)
29
xf86OpenSerial(OPTTYPE options)
35
xf86SetSerialSpeed(int fd, int speed)
118
xf86ScaleAxis(int Cx,
119
xf86ScaleAxis(int Cx, int to_max, int to_min, int from_max, int from_min)
125
122
int64_t to_width = to_max - to_min;
126
123
int64_t from_width = from_max - from_min;
128
125
if (from_width) {
129
X = (int)(((to_width * (Cx - from_min)) / from_width) + to_min);
126
X = (int) (((to_width * (Cx - from_min)) / from_width) + to_min);
133
/*ErrorF ("Divide by Zero in xf86ScaleAxis\n");*/
130
/*ErrorF ("Divide by Zero in xf86ScaleAxis\n"); */
146
142
DeleteInputDeviceRequest(DeviceIntPtr pDev)
152
147
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 11
154
FreeInputAttributes(InputAttributes *attrs)
149
FreeInputAttributes(InputAttributes * attrs)
161
xf86PostButtonEvent(DeviceIntPtr device,
156
xf86PostButtonEvent(DeviceIntPtr device,
159
int is_down, int first_valuator, int num_valuators, ...)
173
Xasprintf(char ** ret, const char * format, ...)
165
Xasprintf(char **ret, const char *format, ...)
180
171
XISetDevicePropertyDeletable(DeviceIntPtr dev, Atom property, Bool deletable)
186
176
_X_EXPORT InputInfoPtr
187
177
xf86FirstLocalDevice(void)
194
183
xf86DeleteInput(InputInfoPtr pInp, int flags)
206
InitButtonClassDeviceStruct(DeviceIntPtr dev, int numButtons, Atom* labels,
195
InitButtonClassDeviceStruct(DeviceIntPtr dev, int numButtons, Atom *labels,
213
InitValuatorAxisStruct(DeviceIntPtr dev, int axnum, Atom label, int minval, int maxval,
214
int resolution, int min_res, int max_res, int mode)
202
InitValuatorAxisStruct(DeviceIntPtr dev, int axnum, Atom label, int minval,
203
int maxval, int resolution, int min_res, int max_res,
220
xf86PostKeyboardEvent(DeviceIntPtr device,
221
unsigned int key_code,
210
xf86PostKeyboardEvent(DeviceIntPtr device, unsigned int key_code, int is_down)
234
xf86PostButtonEventP(DeviceIntPtr device,
222
xf86PostButtonEventP(DeviceIntPtr device,
225
int is_down, int first_valuator, int num_valuators,
240
226
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
255
XIChangeDeviceProperty (DeviceIntPtr dev, Atom property, Atom type,
256
int format, int mode, unsigned long len,
257
OPTTYPE value, Bool sendevent)
241
XIChangeDeviceProperty(DeviceIntPtr dev, Atom property, Atom type,
242
int format, int mode, unsigned long len,
243
OPTTYPE value, Bool sendevent)
263
GetTimeInMillis (void)
249
GetTimeInMillis(void)
270
NewInputDeviceRequest (InputOption *options,
255
NewInputDeviceRequest(InputOption *options,
271
256
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 11
272
InputAttributes *attrs,
257
InputAttributes * attrs,
281
InitLedFeedbackClassDeviceStruct (DeviceIntPtr dev, LedCtrlProcPtr controlProc)
265
InitLedFeedbackClassDeviceStruct(DeviceIntPtr dev, LedCtrlProcPtr controlProc)
287
270
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 11
288
_X_EXPORT InputAttributes*
289
DuplicateInputAttributes(InputAttributes *attrs)
271
_X_EXPORT InputAttributes *
272
DuplicateInputAttributes(InputAttributes * attrs)
302
InitKeyboardDeviceStruct(DeviceIntPtr dev, XkbRMLVOSet *rmlvo,
285
InitKeyboardDeviceStruct(DeviceIntPtr dev, XkbRMLVOSet * rmlvo,
303
286
BellProcPtr bell_func, KbdCtrlProcPtr ctrl_func)
309
XIRegisterPropertyHandler(DeviceIntPtr dev,
292
XIRegisterPropertyHandler(DeviceIntPtr dev,
310
293
int (*SetProperty) (DeviceIntPtr dev,
312
295
XIPropertyValuePtr prop,
349
xf86PostMotionEventP(DeviceIntPtr device,
330
xf86PostMotionEventP(DeviceIntPtr device,
331
int is_absolute, int first_valuator, int num_valuators,
353
332
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
363
341
InitValuatorClassDeviceStruct(DeviceIntPtr dev, int numAxes, Atom *labels,
364
342
int numMotionEvents, int mode)
370
347
_X_EXPORT OPTTYPE
371
xf86ReplaceStrOption(OPTTYPE optlist, const char *name, const char* val)
348
xf86ReplaceStrOption(OPTTYPE optlist, const char *name, const char *val)
377
353
_X_EXPORT OPTTYPE
378
354
xf86NextOption(OPTTYPE list)
385
XIGetDeviceProperty (DeviceIntPtr dev, Atom property, XIPropertyValuePtr *value)
360
XIGetDeviceProperty(DeviceIntPtr dev, Atom property, XIPropertyValuePtr *value)
392
366
MakeAtom(const char *string, unsigned len, Bool makeit)
399
372
GetMotionHistorySize(void)
406
xf86PostProximityEventP(DeviceIntPtr device,
378
xf86PostProximityEventP(DeviceIntPtr device,
379
int is_in, int first_valuator, int num_valuators,
410
380
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
420
389
InitFocusClassDeviceStruct(DeviceIntPtr dev)
432
401
xf86CollectInputOptions(InputInfoPtr pInfo,
433
const char **defaultOpts,
402
const char **defaultOpts, OPTTYPE extraOpts)
438
InputInfoPtr xf86AllocateInput(InputDriverPtr drv, int flags)
407
xf86AllocateInput(InputDriverPtr drv, int flags)
445
414
ClientPtr serverClient;
448
Bool (*function)(ClientPtr /* pClient */, pointer /* closure */),
449
ClientPtr client, pointer closure)
417
QueueWorkProc(Bool (*function)
418
(ClientPtr /* pClient */ , pointer /* closure */ ),
419
ClientPtr client, pointer closure)
454
424
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
455
_X_EXPORT ValuatorMask *valuator_mask_new(int num_valuators)
425
_X_EXPORT ValuatorMask *
426
valuator_mask_new(int num_valuators)
460
_X_EXPORT void valuator_mask_free(ValuatorMask **mask)
464
_X_EXPORT int valuator_mask_get(const ValuatorMask *mask, int valuator)
469
_X_EXPORT void valuator_mask_set(ValuatorMask *mask, int valuator, int data)
473
extern _X_EXPORT void valuator_mask_unset(ValuatorMask *mask, int bit)
477
_X_EXPORT int valuator_mask_num_valuators(const ValuatorMask *mask)
482
_X_EXPORT void valuator_mask_zero(ValuatorMask *mask)
486
_X_EXPORT void valuator_mask_copy(ValuatorMask *dest, const ValuatorMask *src)
432
valuator_mask_free(ValuatorMask **mask)
437
valuator_mask_get(const ValuatorMask *mask, int valuator)
443
valuator_mask_set(ValuatorMask *mask, int valuator, int data)
447
extern _X_EXPORT void
448
valuator_mask_unset(ValuatorMask *mask, int bit)
453
valuator_mask_num_valuators(const ValuatorMask *mask)
459
valuator_mask_zero(ValuatorMask *mask)
464
valuator_mask_copy(ValuatorMask *dest, const ValuatorMask *src)
491
469
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 16
492
_X_EXPORT void xf86PostTouchEvent(DeviceIntPtr dev, uint32_t touchid,
493
uint16_t type, uint32_t flags,
494
const ValuatorMask *mask)
471
xf86PostTouchEvent(DeviceIntPtr dev, uint32_t touchid,
472
uint16_t type, uint32_t flags, const ValuatorMask *mask)