aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20.h
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2011-06-24 11:14:09 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2011-06-24 11:14:09 +0000
commit2485d8a793b882e77fe7be4dc1a034390c96abbb (patch)
tree9880fbd33f8a6cbdcce3e25ce3d8a0726fbaf728 /lib/libusb/libusb20.h
parentecd9e552d0671a9bb49d3193527f04b5e04e9632 (diff)
downloadsrc-2485d8a793b882e77fe7be4dc1a034390c96abbb.tar.gz
src-2485d8a793b882e77fe7be4dc1a034390c96abbb.zip
- Add two new API's to libusb20 which can be used to retrive information
about the parent USB device: - libusb20_dev_get_parent_address - libusb20_dev_get_parent_port - Rename libusb20_compat01.c into libusb01.c MFC after: 3 days
Notes
Notes: svn path=/head/; revision=223495
Diffstat (limited to 'lib/libusb/libusb20.h')
-rw-r--r--lib/libusb/libusb20.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libusb/libusb20.h b/lib/libusb/libusb20.h
index 958a379ed254..22a2899bbd80 100644
--- a/lib/libusb/libusb20.h
+++ b/lib/libusb/libusb20.h
@@ -262,6 +262,8 @@ struct LIBUSB20_DEVICE_DESC_DECODED *libusb20_dev_get_device_desc(struct libusb2
struct libusb20_config *libusb20_dev_alloc_config(struct libusb20_device *pdev, uint8_t config_index);
struct libusb20_device *libusb20_dev_alloc(void);
uint8_t libusb20_dev_get_address(struct libusb20_device *pdev);
+uint8_t libusb20_dev_get_parent_address(struct libusb20_device *pdev);
+uint8_t libusb20_dev_get_parent_port(struct libusb20_device *pdev);
uint8_t libusb20_dev_get_bus_number(struct libusb20_device *pdev);
uint8_t libusb20_dev_get_mode(struct libusb20_device *pdev);
uint8_t libusb20_dev_get_speed(struct libusb20_device *pdev);