From 0f2c706643ff211ce1e1eb0cfbc3c05bc67f2311 Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Thu, 16 Jun 2016 12:14:19 +0000 Subject: Add support for libusb_get_port_number() to the LibUSB v1.0 API. Approved by: re (kostikbel) Requested by: swills MFC after: 1 week --- lib/libusb/libusb.3 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/libusb/libusb.3') 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 -- cgit v1.2.3