summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-05-05 12:48:42 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-05-06 11:56:21 +1000
commita88102fafbab8075162032b1d3ee0bce4da625b5 (patch)
tree74e2da0380de1668e7d4d6be0465db5edd8df2c0 /test
parent85a2c91fb8b489968ac21f848d75a7c8b3d1c207 (diff)
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 <peter.hutterer@who-t.net> Reviewed-by: Chris Bagwell <chris@cnpbagwell.com>
Diffstat (limited to 'test')
-rw-r--r--test/fake-symbols.c22
-rw-r--r--test/fake-symbols.h10
2 files changed, 32 insertions, 0 deletions
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);