aboutsummaryrefslogtreecommitdiff
path: root/lib/libusbhid/usage.c
diff options
context:
space:
mode:
authorKai Wang <kaiw@FreeBSD.org>2010-03-27 08:00:16 +0000
committerKai Wang <kaiw@FreeBSD.org>2010-03-27 08:00:16 +0000
commitcde587816c2ff5ad53212af4f0f1497832ba1776 (patch)
tree01d412e25de933a44f1fd9357069f5038f049229 /lib/libusbhid/usage.c
parent8d02363b0cb81835de847c78788e01c00d102ddb (diff)
downloadsrc-cde587816c2ff5ad53212af4f0f1497832ba1776.tar.gz
src-cde587816c2ff5ad53212af4f0f1497832ba1776.zip
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
Notes
Notes: svn path=/head/; revision=205728
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 280ef69aae8c..eeff818afed8 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>