diff options
author | Peter Hutterer <peter.hutterer@redhat.com> | 2008-09-09 00:24:06 +0930 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-09-09 19:13:57 +0930 |
commit | 05e22a584be0dbf83b5b4b72d51f7d5f59ad7334 (patch) | |
tree | 3d57c8e0f824d728a0ea31fdf6c5ed81850da72f /src/synproto.h | |
parent | db7dc1085e43ccdd796c67174289313ed4852c13 (diff) |
Pre-probe the device (eventcomm only).
For auto-dev, we'd probe the device node and get the axis ranges. If we
specify the device however we didn't retrieve the axis ranges and thus got
stuck with the defaults - losing out on automatic edge and accel calculation.
This is an issue if the device is hotplugged, as HAL will specify the device
node.
This patch adds another hook to synproto_operations to pre-probe the device.
This hook is only used by eventcomm and opens the FD, queries the axis range
and closes the FD again.
Diffstat (limited to 'src/synproto.h')
-rw-r--r-- | src/synproto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/synproto.h b/src/synproto.h index d5ae8f9..246adbd 100644 --- a/src/synproto.h +++ b/src/synproto.h @@ -96,6 +96,7 @@ struct SynapticsProtocolOperations { struct SynapticsProtocolOperations *proto_ops, struct CommData *comm, struct SynapticsHwState *hwRet); Bool (*AutoDevProbe)(LocalDevicePtr local); + Bool (*ProbeDevice)(LocalDevicePtr local, char* name); }; extern struct SynapticsProtocolOperations psaux_proto_operations; |