aboutsummaryrefslogtreecommitdiff
path: root/lib/libusbhid/usage.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-NetBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-261-1/+3
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326219
* USB: replace 0 with NULL for pointers.Pedro F. Giffuni2016-04-091-3/+3
| | | | | | | | | Found with devel/coccinelle. Reviewed by: hselasky Notes: svn path=/head/; revision=297764
* Merge improvements from kernel HID parser to the userland usbhid(3)Kai Wang2010-03-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | 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: svn path=/head/; revision=205728
* Sync with NetBSD.Matthew N. Dodd2003-04-091-1/+2
| | | | | | | | | | | | | | | | | - Bump shared library version on libusbhid. - Retire libusbhid.h; it is called usbhid.h now. - hid_start_parse() takes a third argument. - hid_locate() takes a fifth argument. - hid_report_size() order of arguments changes. - Other changes, including formatting and whitespace. Bump __FreeBSD_version. This change will break all third party applications that rely on previous FreeBSD specific behavior. Notes: svn path=/head/; revision=113273
* MF NetBSD:Matthew N. Dodd2003-04-071-7/+9
| | | | | | | | | | | | | - Reduce diffs with NetBSD. - Formatting and explicit values for enum declaration. - Order of prototypes. - zero report_size in hid_clear_local() - errx() needs no newline - Don't initialie variable in declaration in hid_parse_usage_in_page(). - Use fmtcheck() in hid_usage_in_page(). Notes: svn path=/head/; revision=113193
* Finish the libusb.h -> libusbhid.h migration.Josef Karthauser2002-03-281-1/+1
| | | | | | | MFC after: 7 days Notes: svn path=/head/; revision=93331
* Add __FBSDID()s to libusbMatthew Dillon2001-09-301-3/+3
| | | | Notes: svn path=/head/; revision=84224
* Sync with NetBSD:Nick Hibma2000-10-161-2/+40
| | | | | | | | | | | | | K&R -> ANSI Bugfix: 'Keep the bit position even when the report descriptor says POP.' Add hid_use_report_desc, hid_parse_usage_page, hid_parse_usage_in_page. Changed iface for hid_report_size. Notes: svn path=/head/; revision=67217
* Sync with NetBSD:Nick Hibma2000-08-261-3/+3
| | | | | | | | Print unknown usages with 4 digits. Mask in page extraction. Notes: svn path=/head/; revision=65116
* The USB library from NetBSD by Lennart Augustsson <lennart@augustsson.net>.Nick Hibma2000-06-111-0/+197
Notes: svn path=/head/; revision=61560