aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb.3
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2016-06-16 12:14:19 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2016-06-16 12:14:19 +0000
commit0f2c706643ff211ce1e1eb0cfbc3c05bc67f2311 (patch)
treef93ae8103d06f681cc27a461182b1ff75bf32084 /lib/libusb/libusb.3
parent78a6a430ca7edc0b55e08e9e597c64ca4dab9574 (diff)
downloadsrc-0f2c706643ff211ce1e1eb0cfbc3c05bc67f2311.tar.gz
src-0f2c706643ff211ce1e1eb0cfbc3c05bc67f2311.zip
Add support for libusb_get_port_number() to the LibUSB v1.0 API.
Approved by: re (kostikbel) Requested by: swills MFC after: 1 week
Notes
Notes: svn path=/head/; revision=301964
Diffstat (limited to 'lib/libusb/libusb.3')
-rw-r--r--lib/libusb/libusb.38
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libusb/libusb.3 b/lib/libusb/libusb.3
index 03113c0a152f..c91c61d8d351 100644
--- a/lib/libusb/libusb.3
+++ b/lib/libusb/libusb.3
@@ -26,7 +26,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd June 16, 2016
+.Dd June 17, 2016
.Dt LIBUSB 3
.Os
.Sh NAME
@@ -106,6 +106,12 @@ counter decremented once.
Returns the number of the bus contained by the device
.Fa dev .
.Pp
+.Ft uint8_t
+.Fn libusb_get_port_number "libusb_device *dev"
+Returns the port number which the device given by
+.Fa dev
+is attached to.
+.Pp
.Ft int
.Fn libusb_get_port_numbers "libusb_device *dev" "uint8_t *buf" "uint8_t bufsize"
Stores, in the buffer