summaryrefslogtreecommitdiffstats
path: root/lib/libusbhid/usage.c
diff options
context:
space:
mode:
authorkaiw <kaiw@FreeBSD.org>2010-03-27 08:00:16 +0000
committerkaiw <kaiw@FreeBSD.org>2010-03-27 08:00:16 +0000
commit28e4fb3b8eecda12e4029af4c17969a7f0225097 (patch)
tree01d412e25de933a44f1fd9357069f5038f049229 /lib/libusbhid/usage.c
parent35f33c0a98437a396b859cba0c8478a55dccb5e6 (diff)
downloadFreeBSD-src-28e4fb3b8eecda12e4029af4c17969a7f0225097.zip
FreeBSD-src-28e4fb3b8eecda12e4029af4c17969a7f0225097.tar.gz
Merge improvements from kernel HID parser to the userland usbhid(3)
parser. This merge does not change any API and should not break any native or thirdparty applications. Changes include: * Merge multiple report ID support and other improvements from kernel HID parser. * Ignore rid argument in hid_start_parser, parse all the report items since we now support multiple report ID. * Skip report ID byte in hid_get_data() and set report ID byte in hid_set_data(), if report ID is non-zero. * Reimplement hid_get_report_id: instead get report id from uhid device (which is always 0), try parsing the report descriptor and return the first report ID encountered. Reviewed by: hps Silent on: -usb mailing list
Diffstat (limited to 'lib/libusbhid/usage.c')
-rw-r--r--lib/libusbhid/usage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libusbhid/usage.c b/lib/libusbhid/usage.c
index 280ef69..eeff818 100644
--- a/lib/libusbhid/usage.c
+++ b/lib/libusbhid/usage.c
@@ -29,6 +29,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include <sys/param.h>
#include <assert.h>
#include <ctype.h>
#include <err.h>
OpenPOWER on IntegriCloud