Darwin: Improve device enumeration performance
authorNathan Hjelm <hjelmn@me.com>
Sun, 20 Mar 2011 06:25:44 +0000 (00:25 -0600)
committerPeter Stuge <peter@stuge.se>
Tue, 13 Sep 2011 17:08:32 +0000 (19:08 +0200)
commit0db8cba7f2c372f0127c7df9724e5a35e93f2069
tree12cb6fdaa2a9b3ff527f9f5198a0fee74fb829c1
parent511ec4301deb516691e39e3df5b90fe28cb2bb0f
Darwin: Improve device enumeration performance

The device location is saved, and later used whenever iterating over
devices. Fixes #111 and #112.

[stuge: Formatting fixes and split out libusb_get_device_speed() change]
[stuge: Combine with patch that uses the saved device location]
libusb/os/darwin_usb.c