aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-01-31 14:11:44 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-05-27 15:32:23 +1000
commiteaf202531f2bb2b3da6d4769769f76da5489ae68 (patch)
treea75d7f00370ce47967d5086fdfde617e3797a2c4 /src/evdev.h
parentHandle touchscreens without BTN_TOUCH (diff)
downloadxf86-input-evdev-eaf202531f2bb2b3da6d4769769f76da5489ae68.tar.gz
xf86-input-evdev-eaf202531f2bb2b3da6d4769769f76da5489ae68.tar.bz2
xf86-input-evdev-eaf202531f2bb2b3da6d4769769f76da5489ae68.zip
Export device node as property.
There is currently no mapping between XI devices and physical devices other than what can be extracted by parsing the Xorg logfile. Add new property "Device Node" to the driver to export the open device file. Server 1.11 and later standardises on this property name. The client is responsible for detecting if the device is on the same host and converting the data into a more useful format (e.g. sysfs path). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/evdev.h b/src/evdev.h
index ff50d0a..73df9ac 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -80,6 +80,10 @@
#define MAX_VALUATORS 36
#endif
+#ifndef XI_PROP_DEVICE_NODE
+#define XI_PROP_DEVICE_NODE "Device Node"
+#endif
+
#define LONG_BITS (sizeof(long) * 8)
/* Number of longs needed to hold the given number of bits */