diff options
author | Pete Batard <pete@akeo.ie> | 2012-05-10 20:01:10 +0100 |
---|---|---|
committer | Pete Batard <pete@akeo.ie> | 2012-05-28 10:26:44 +0100 |
commit | cfb8610242394d532778a483570089c2bed52c84 (patch) | |
tree | 729c43ea4aecb8d4a4b39872820603df72026041 /libusb/os/windows_usb.c | |
parent | a544e5972bf2b0ac9e006439576f681a8439d311 (diff) | |
download | libusbx-cfb8610242394d532778a483570089c2bed52c84.tar.gz |
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
Diffstat (limited to 'libusb/os/windows_usb.c')
-rw-r--r-- | libusb/os/windows_usb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index 62e41e8..c4212c0 100644 --- a/libusb/os/windows_usb.c +++ b/libusb/os/windows_usb.c @@ -1002,8 +1002,10 @@ static int init_device(struct libusb_device* dev, struct libusb_device* parent_d } dev->bus_number = parent_dev->bus_number; priv->port = port_number; + dev->port_number = port_number; priv->depth = parent_priv->depth + 1; priv->parent_dev = parent_dev; + dev->parent_dev = parent_dev; // If the device address is already set, we can stop here if (dev->device_address != 0) { |