summaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-11-17 10:03:11 +1000
committerPeter Hutterer <peter.hutterer@redhat.com>2008-11-17 10:05:09 +1000
commit63af314368cec47b6b8266db331f2c820e7a071f (patch)
tree6d8bbb1e673892db167d59b937ce2a5bb10a103d /src/evdev.h
parent4c5c9c111d406e5590429377262b86e91868ef76 (diff)
Store device file's minor/major to avoid duplicate devices.
Devices added that use the same min/maj as an already added device are ignored by the driver. This way users can have an xorg.conf entry on /dev/input/by-id/blahblah and not get the same device added by HAL. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
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 32da81c..af88741 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -31,6 +31,7 @@
#define EVDEV_H
#include <linux/input.h>
+#include <linux/types.h>
#include <xf86Xinput.h>
#include <xf86_OSproc.h>
@@ -125,6 +126,9 @@ typedef struct {
long abs_bitmask[NBITS(ABS_MAX)];
long led_bitmask[NBITS(LED_MAX)];
struct input_absinfo absinfo[ABS_MAX];
+
+ /* minor/major number */
+ dev_t min_maj;
} EvdevRec, *EvdevPtr;
unsigned int EvdevUtilButtonEventToButtonNumber(EvdevPtr pEvdev, int code);