From a88102fafbab8075162032b1d3ee0bce4da625b5 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 5 May 2011 12:48:42 +1000 Subject: Update the device's serial number when it comes in. Split serial number internally into - serial: the serial number this device is bound to, 0 if unbound. - cur_serial: current serial number in proximity Then update the serial property with the current serial. Because of SIGIO malloc restrictions, the property must be updated through a timer function. Signed-off-by: Peter Hutterer Reviewed-by: Chris Bagwell --- test/fake-symbols.c | 22 ++++++++++++++++++++++ test/fake-symbols.h | 10 ++++++++++ 2 files changed, 32 insertions(+) (limited to 'test') diff --git a/test/fake-symbols.c b/test/fake-symbols.c index 1b0cc92..bba10e4 100644 --- a/test/fake-symbols.c +++ b/test/fake-symbols.c @@ -439,3 +439,25 @@ Bool QueueWorkProc ( return FALSE; } + +OsTimerPtr +TimerSet(OsTimerPtr timer, int flags, CARD32 millis, + OsTimerCallback func, pointer arg) +{ + return NULL; +} + +void TimerFree(OsTimerPtr timer) +{ +} + +int +xf86BlockSIGIO (void) +{ + return 0; +} + +void +xf86UnblockSIGIO (int wasset) +{ +} diff --git a/test/fake-symbols.h b/test/fake-symbols.h index b5aadbe..dd9500a 100644 --- a/test/fake-symbols.h +++ b/test/fake-symbols.h @@ -173,4 +173,14 @@ extern ClientPtr serverClient; extern Bool QueueWorkProc ( Bool (*function)(ClientPtr /* pClient */, pointer /* closure */), ClientPtr client, pointer closure); + #endif + +extern OsTimerPtr +TimerSet(OsTimerPtr timer, int flags, CARD32 millis, + OsTimerCallback func, pointer arg); + +extern void TimerFree(OsTimerPtr timer); + +extern int xf86BlockSIGIO (void); +extern void xf86UnblockSIGIO (int wasset); -- cgit v1.2.1