From 550d992a33e406c6955427d4f169a05822ee6f50 Mon Sep 17 00:00:00 2001 From: emaste Date: Wed, 8 May 2013 00:55:29 +0000 Subject: 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@ --- lib/libusb/libusb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libusb/libusb.h') 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); -- cgit v1.1