diff options
author | hselasky <hselasky@FreeBSD.org> | 2012-05-07 14:07:13 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2012-05-07 14:07:13 +0000 |
commit | 2463f208a26e08825bafd69986312adc7c264f8d (patch) | |
tree | f9b26a5908fe6698ac82d4ad205a847d599d8dc9 /lib/libusb/libusb.h | |
parent | 4b07a79925078e4a03c602b68c047474d719e2c4 (diff) | |
download | FreeBSD-src-2463f208a26e08825bafd69986312adc7c264f8d.zip FreeBSD-src-2463f208a26e08825bafd69986312adc7c264f8d.tar.gz |
Add missing LibUSB 1.0 API function: libusb_get_string_descriptor().
Reported by: Xiaofan Chen
Diffstat (limited to 'lib/libusb/libusb.h')
-rw-r--r-- | lib/libusb/libusb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libusb/libusb.h b/lib/libusb/libusb.h index d8a22b5..1675f46 100644 --- a/lib/libusb/libusb.h +++ b/lib/libusb/libusb.h @@ -398,6 +398,7 @@ int libusb_get_active_config_descriptor(libusb_device * dev, struct libusb_confi int libusb_get_config_descriptor(libusb_device * dev, uint8_t config_index, struct libusb_config_descriptor **config); int libusb_get_config_descriptor_by_value(libusb_device * dev, uint8_t bConfigurationValue, struct libusb_config_descriptor **config); void libusb_free_config_descriptor(struct libusb_config_descriptor *config); +int libusb_get_string_descriptor(libusb_device_handle * devh, uint8_t desc_index, uint16_t langid, unsigned char *data, int length); int libusb_get_string_descriptor_ascii(libusb_device_handle * devh, uint8_t desc_index, uint8_t *data, int length); int libusb_get_descriptor(libusb_device_handle * devh, uint8_t desc_type, uint8_t desc_index, uint8_t *data, int length); int libusb_parse_ss_endpoint_comp(const void *buf, int len, struct libusb_ss_endpoint_companion_descriptor **ep_comp); |