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.3 | |
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.3')
-rw-r--r-- | lib/libusb/libusb.3 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libusb/libusb.3 b/lib/libusb/libusb.3 index ffc761b..28dff94 100644 --- a/lib/libusb/libusb.3 +++ b/lib/libusb/libusb.3 @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd May 7, 2012 +.Dd May 7, 2013 .Dt LIBUSB 3 .Os .Sh NAME @@ -102,6 +102,15 @@ counter decremented once. Returns the number of the bus contained by the device .Fa dev . .Pp +.Ft int +.Fn libusb_get_port_path "libusb_context *ctx" "libusb_device *dev" "uint8_t *buf" "uint8_t bufsize" +Stores, in the buffer +.Fa buf +of size +.Fa bufsize , +the list of all port numbers from root for the device +.Fa dev . +.Pp .Ft uint8_t .Fn libusb_get_device_address "libusb_device *dev" Returns the device_address contained by the device |