summaryrefslogtreecommitdiff
path: root/extras/hid2hci/Makefile.am
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-07-24 18:06:22 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-07-24 18:06:22 +0200
commit4b6769f61206e90850aff8a30e8e93fbfcc18673 (patch)
treeb4d116a062b3ff4b8a74745288f747465f729a7c /extras/hid2hci/Makefile.am
parentd5b5a611aeb6c78a9290ea31ad62dc039401fb44 (diff)
hid2hci: rewrite (and break) rules and device handling
We must never access random devices in /dev which do not belong to the event we are handling. Hard-coding /dev/hidrawX, and looping over all devices is absolutely not acceptable --> hook into hidraw events. We can not relay on (rather random) properties merged into the parent device by earlier rules --> use libudev to find the sibling device with a matching interface. Libusb does not fit into udev's use case. We never want want to scan and open() all usb devices in the system, just to find the device we are already handling the event for --> put all the stupid scanning into a single function and prepare for a fixed libusb or drop it later.
Diffstat (limited to 'extras/hid2hci/Makefile.am')
-rw-r--r--extras/hid2hci/Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/extras/hid2hci/Makefile.am b/extras/hid2hci/Makefile.am
index 62ba58d3fa..5450c34198 100644
--- a/extras/hid2hci/Makefile.am
+++ b/extras/hid2hci/Makefile.am
@@ -7,7 +7,13 @@ dist_udevrules_DATA = \
70-hid2hci.rules
hid2hci_SOURCES = \
- hid2hci.c
+ hid2hci.c \
+ ../../libudev/libudev.h \
+ ../../libudev/libudev.c \
+ ../../libudev/libudev-list.c \
+ ../../libudev/libudev-util.c \
+ ../../libudev/libudev-device.c \
+ ../../libudev/libudev-enumerate.c
hid2hci_LDADD = \
@LIBUSB_LIBS@