summaryrefslogtreecommitdiffstats
path: root/lib/libusb/libusb.h
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>2000-10-16 18:13:59 +0000
committern_hibma <n_hibma@FreeBSD.org>2000-10-16 18:13:59 +0000
commitef4994a1212dd74d2ea9e3be4b586433d2aeb0bd (patch)
treef5bf67808c38fb5703446a339a4b2fbee87bfa91 /lib/libusb/libusb.h
parentba11a89d00cdc5eb8917da96d66e9feae77dc5e6 (diff)
downloadFreeBSD-src-ef4994a1212dd74d2ea9e3be4b586433d2aeb0bd.zip
FreeBSD-src-ef4994a1212dd74d2ea9e3be4b586433d2aeb0bd.tar.gz
Sync with NetBSD:
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.
Diffstat (limited to 'lib/libusb/libusb.h')
-rw-r--r--lib/libusb/libusb.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libusb/libusb.h b/lib/libusb/libusb.h
index 854eda8..7d4ac20 100644
--- a/lib/libusb/libusb.h
+++ b/lib/libusb/libusb.h
@@ -35,7 +35,7 @@ typedef struct hid_data *hid_data_t;
typedef enum hid_kind {
hid_input, hid_output, hid_feature, hid_collection, hid_endcollection
-}hid_kind_t;
+} hid_kind_t;
typedef struct hid_item {
/* Global */
@@ -77,13 +77,14 @@ typedef struct hid_item {
/* Obtaining a report descriptor, descr.c: */
report_desc_t hid_get_report_desc __P((int file));
+report_desc_t hid_use_report_desc __P((unsigned char *data, unsigned int size));
void hid_dispose_report_desc __P((report_desc_t));
/* Parsing of a HID report descriptor, parse.c: */
hid_data_t hid_start_parse __P((report_desc_t d, int kindset));
void hid_end_parse __P((hid_data_t s));
int hid_get_item __P((hid_data_t s, hid_item_t *h));
-int hid_report_size __P((report_desc_t d, enum hid_kind k, int *idp));
+int hid_report_size __P((report_desc_t d, unsigned int id, enum hid_kind k));
int hid_locate __P((report_desc_t d, unsigned int usage, enum hid_kind k, hid_item_t *h));
/* Conversion to/from usage names, usage.c: */
OpenPOWER on IntegriCloud