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/libusb.h | |
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/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 52ad914..220a8da 100644 --- a/lib/libusb/libusb.h +++ b/lib/libusb/libusb.h @@ -369,6 +369,7 @@ void libusb_exit(struct libusb_context *ctx); ssize_t libusb_get_device_list(libusb_context * ctx, libusb_device *** list); void libusb_free_device_list(libusb_device ** list, int unref_devices); uint8_t libusb_get_bus_number(libusb_device * dev); +int libusb_get_port_path(libusb_context *ctx, libusb_device *dev, uint8_t *buf, uint8_t bufsize); uint8_t libusb_get_device_address(libusb_device * dev); enum libusb_speed libusb_get_device_speed(libusb_device * dev); int libusb_clear_halt(libusb_device_handle *devh, uint8_t endpoint); |