Skip to contentSkip to conversation

Update hid2hci tool from udev codebase

PATCH In review Kay Sievers 2 participants 2 messages Apr 28, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Update hid2hci tool from udev codebase

commit 4a2b9643b6e81d12c3c5fb863d1cca353437e102

Author: Kay Sievers <[email protected]>
Date:   Thu Apr 28 11:02:24 2011 +0200

Update hid2hci tool from udev codebase

Makefile.tools +1 -1
index 364db37..1bf21b2 100644
@@ -102,7 +102,7 @@ endif
 if HID2HCI
 sbin_PROGRAMS += tools/hid2hci
 
-tools_hid2hci_LDADD = @USB_LIBS@
+tools_hid2hci_LDADD = @USB_LIBS@ @UDEV_LIBS@
 
 dist_man_MANS += tools/hid2hci.8
 else
acinclude.m4 +6 -0
index 22fcd5c..a27cd22 100644
@@ -148,6 +148,12 @@ AC_DEFUN([AC_PATH_USB], [
 			[Define to 1 if you need the usb_interrupt_read() function.]))
 ])
 
+AC_DEFUN([AC_PATH_UDEV], [
+	PKG_CHECK_MODULES(UDEV, libudev, udev_found=yes, udev_found=no)
+	AC_SUBST(UDEV_CFLAGS)
+	AC_SUBST(UDEV_LIBS)
+])
+
 AC_DEFUN([AC_PATH_SNDFILE], [
 	PKG_CHECK_MODULES(SNDFILE, sndfile, sndfile_found=yes, sndfile_found=no)
 	AC_SUBST(SNDFILE_CFLAGS)
configure.ac +1 -0
index 4447f79..cf32e01 100644
@@ -40,6 +40,7 @@ AC_PATH_GLIB
 AC_PATH_ALSA
 AC_PATH_GSTREAMER
 AC_PATH_USB
+AC_PATH_UDEV
 AC_PATH_SNDFILE
 AC_PATH_OUI
 AC_PATH_READLINE
scripts/bluetooth-hid2hci.rules +26 -32

62 lines not on this page · raw message

tools/hid2hci.8 +8 -13
index 5d35274..6ea7ed8 100644
@@ -29,23 +29,18 @@ is used to set up switch supported Bluetooth devices into the HCI
 mode and back.
 .SH OPTIONS
 .TP
-.BI -h
-Gives a list of possible options.
-.TP
-.BI -q
-Don't display any messages.
-.TP
-.BI -r [hid,hci]
+.B --mode= [hid, hci]
 Sets the mode to switch the device into
 .TP
-.BI -v
-Specifies the 4 digit vendor ID assigned to the device being switched
+.B --method= [csr, logitech-hid, dell]
+Which vendor method to use for switching the device.
 .TP
-.BI -p
-Specifies the 4 digit product ID assigned to the device being switched
+.B --devpath=
+Specifies the device path in /sys
+.TP
+.B --help
+Gives a list of possible options.
 .TP
-.BI -m [csr, logitech, dell]
-Which vendor method to use for switching the device.
 .SH AUTHOR
 Written by Marcel Holtmann <[email protected]>.
 .br
tools/hid2hci.c +205 -229

531 lines not on this page · raw message

#1 lore raw

Hi Kay,

Quoted 5 lines · Kay Sievers

commit 4a2b9643b6e81d12c3c5fb863d1cca353437e102

Author: Kay Sievers <[email protected]>
Date:   Thu Apr 28 11:02:24 2011 +0200

Update hid2hci tool from udev codebase

Pushed upstream. Thanks.

Johan