diff options
author | emaste <emaste@FreeBSD.org> | 2013-05-08 00:55:29 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2013-05-08 00:55:29 +0000 |
commit | 550d992a33e406c6955427d4f169a05822ee6f50 (patch) | |
tree | d9bdf3c8a5ecb27056dd085ff2a191045ab82020 /lib/libusb/libusb10.c | |
parent | 90de8690e43221caaa3c2571fb8b77560c306dfe (diff) | |
download | FreeBSD-src-550d992a33e406c6955427d4f169a05822ee6f50.zip FreeBSD-src-550d992a33e406c6955427d4f169a05822ee6f50.tar.gz |
Add libusb_get_port_path wrapper
This follows the libusbx API reference at
http://libusbx.sourceforge.net/api-1.0/group__dev.html
Reviewed by: hselasky@
Diffstat (limited to 'lib/libusb/libusb10.c')
-rw-r--r-- | lib/libusb/libusb10.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libusb/libusb10.c b/lib/libusb/libusb10.c index 0212296..802bc8a 100644 --- a/lib/libusb/libusb10.c +++ b/lib/libusb/libusb10.c @@ -290,6 +290,13 @@ libusb_get_bus_number(libusb_device *dev) return (libusb20_dev_get_bus_number(dev->os_priv)); } +int +libusb_get_port_path(libusb_context *ctx, libusb_device *dev, uint8_t *buf, + uint8_t bufsize) +{ + return (libusb20_dev_get_port_path(dev->os_priv, buf, bufsize)); +} + uint8_t libusb_get_device_address(libusb_device *dev) { |