summaryrefslogtreecommitdiff
path: root/ps2comm.c
diff options
context:
space:
mode:
Diffstat (limited to 'ps2comm.c')
-rw-r--r--ps2comm.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/ps2comm.c b/ps2comm.c
index e95b152..8e6c1ad 100644
--- a/ps2comm.c
+++ b/ps2comm.c
@@ -25,9 +25,8 @@
*
*/
-#include "xf86_OSproc.h"
-
#include "ps2comm.h"
+#include "synproto.h"
#include "synaptics.h"
/* acknowledge for commands and parameter */
@@ -450,3 +449,20 @@ QueryIsSynaptics(int fd)
return FALSE;
}
}
+
+
+static void
+DeviceOnHook(LocalDevicePtr local)
+{
+}
+
+static void
+DeviceOffHook(LocalDevicePtr local)
+{
+ synaptics_set_mode(local->fd, 0);
+}
+
+struct SynapticsProtocolOperations psaux_proto_operations = {
+ DeviceOnHook,
+ DeviceOffHook
+};