diff options
author | kaiw <kaiw@FreeBSD.org> | 2010-03-27 08:00:16 +0000 |
---|---|---|
committer | kaiw <kaiw@FreeBSD.org> | 2010-03-27 08:00:16 +0000 |
commit | 28e4fb3b8eecda12e4029af4c17969a7f0225097 (patch) | |
tree | 01d412e25de933a44f1fd9357069f5038f049229 /lib/libusbhid/usbvar.h | |
parent | 35f33c0a98437a396b859cba0c8478a55dccb5e6 (diff) | |
download | FreeBSD-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/usbvar.h')
-rw-r--r-- | lib/libusbhid/usbvar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libusbhid/usbvar.h b/lib/libusbhid/usbvar.h index d437005..9605106 100644 --- a/lib/libusbhid/usbvar.h +++ b/lib/libusbhid/usbvar.h @@ -30,8 +30,8 @@ */ struct report_desc { - unsigned int size; - unsigned char data[1]; + uint32_t size; + uint8_t data[1]; }; /* internal backwards compatibility functions */ |