[Bug 224454] Feature request: implement libusb_get_parent and libusb_has_capability

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 06 Jun 2024 14:34:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224454

--- Comment #6 from Ed Maste <emaste@freebsd.org> ---
libusb_get_parent was introduced in libusb in:

commit cfb8610242394d532778a483570089c2bed52c84
Author: Pete Batard <pete@akeo.ie>
Date:   Thu May 10 20:01:10 2012 +0100

    All: Add parent and port topology calls

    * Adds libusb_get_port_number, libusb_get_parent and libusb_get_port_path
    * Linux implementation provided by Alan Stern, OS X by Nathan Hjelm
    * Unsupported for *BSD platforms

It is a trivial getter that returns a parent libusb_device member. From what I
can tell the parent_dev is never set in any of libusb's BSD osdep code.

-- 
You are receiving this mail because:
You are the assignee for the bug.