From ea81d4327f2c84f033c13bfba8647006139b2f7d Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Tue, 6 Feb 2001 00:54:00 +0000 Subject: [PATCH] Added used include of . Declare all the interfaces documented in usb.3 (2 were missing). --- lib/libusb/libusb.h | 4 ++++ lib/libusbhid/libusb.h | 4 ++++ lib/libusbhid/libusbhid.h | 4 ++++ lib/libusbhid/usbhid.h | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/lib/libusb/libusb.h b/lib/libusb/libusb.h index 7d4ac20d3e5e..b616e852d46b 100644 --- a/lib/libusb/libusb.h +++ b/lib/libusb/libusb.h @@ -29,6 +29,8 @@ * */ +#include + typedef struct report_desc *report_desc_t; typedef struct hid_data *hid_data_t; @@ -88,6 +90,8 @@ 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: */ +int hid_parse_usage_page __P((const char *name)); +int hid_parse_usage_in_page __P((const char *name)); const char *hid_usage_page __P((int i)); const char *hid_usage_in_page __P((unsigned int u)); void hid_init __P((const char *file)); diff --git a/lib/libusbhid/libusb.h b/lib/libusbhid/libusb.h index 7d4ac20d3e5e..b616e852d46b 100644 --- a/lib/libusbhid/libusb.h +++ b/lib/libusbhid/libusb.h @@ -29,6 +29,8 @@ * */ +#include + typedef struct report_desc *report_desc_t; typedef struct hid_data *hid_data_t; @@ -88,6 +90,8 @@ 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: */ +int hid_parse_usage_page __P((const char *name)); +int hid_parse_usage_in_page __P((const char *name)); const char *hid_usage_page __P((int i)); const char *hid_usage_in_page __P((unsigned int u)); void hid_init __P((const char *file)); diff --git a/lib/libusbhid/libusbhid.h b/lib/libusbhid/libusbhid.h index 7d4ac20d3e5e..b616e852d46b 100644 --- a/lib/libusbhid/libusbhid.h +++ b/lib/libusbhid/libusbhid.h @@ -29,6 +29,8 @@ * */ +#include + typedef struct report_desc *report_desc_t; typedef struct hid_data *hid_data_t; @@ -88,6 +90,8 @@ 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: */ +int hid_parse_usage_page __P((const char *name)); +int hid_parse_usage_in_page __P((const char *name)); const char *hid_usage_page __P((int i)); const char *hid_usage_in_page __P((unsigned int u)); void hid_init __P((const char *file)); diff --git a/lib/libusbhid/usbhid.h b/lib/libusbhid/usbhid.h index 7d4ac20d3e5e..b616e852d46b 100644 --- a/lib/libusbhid/usbhid.h +++ b/lib/libusbhid/usbhid.h @@ -29,6 +29,8 @@ * */ +#include + typedef struct report_desc *report_desc_t; typedef struct hid_data *hid_data_t; @@ -88,6 +90,8 @@ 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: */ +int hid_parse_usage_page __P((const char *name)); +int hid_parse_usage_in_page __P((const char *name)); const char *hid_usage_page __P((int i)); const char *hid_usage_in_page __P((unsigned int u)); void hid_init __P((const char *file));