diff options
author | emaste <emaste@FreeBSD.org> | 2013-06-07 13:45:58 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2013-06-07 13:45:58 +0000 |
commit | fea20f0dd054233130832a9b7c2a0af27d63dc29 (patch) | |
tree | 6e18f5faad04e68fdc5ef52f398f1bfbe4468244 /lib/libusb/libusb10.c | |
parent | d7bd09411e7ff4a565f0fe21aaae6fd481e3d88d (diff) | |
download | FreeBSD-src-fea20f0dd054233130832a9b7c2a0af27d63dc29.zip FreeBSD-src-fea20f0dd054233130832a9b7c2a0af27d63dc29.tar.gz |
Add libusb_get_port_numbers
libusbx deprecated libusb_get_port_path and replaced it with
libusb_get_port_numbers. The latter omits an extra parameter which was
unused in the FreeBSD implementation anyway.
Diffstat (limited to 'lib/libusb/libusb10.c')
-rw-r--r-- | lib/libusb/libusb10.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libusb/libusb10.c b/lib/libusb/libusb10.c index 802bc8a..79a570e 100644 --- a/lib/libusb/libusb10.c +++ b/lib/libusb/libusb10.c @@ -291,6 +291,12 @@ libusb_get_bus_number(libusb_device *dev) } int +libusb_get_port_numbers(libusb_device *dev, uint8_t *buf, uint8_t bufsize) +{ + return (libusb20_dev_get_port_path(dev->os_priv, buf, bufsize)); +} + +int libusb_get_port_path(libusb_context *ctx, libusb_device *dev, uint8_t *buf, uint8_t bufsize) { |