diff options
author | Nathan Hjelm <hjelmn@me.com> | 2010-08-02 21:27:38 -0600 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-08-05 11:08:38 +0100 |
commit | e2e354d519c77c65d9ae3c8e4db6f0c9eedc4148 (patch) | |
tree | a634b15d0c0e29cb03c4ca0ce9eff1d5d2e4f4ee /libusb/os/darwin_usb.h | |
parent | f901e14356f7fb961443e8a7c4782d36827fe15d (diff) | |
download | libusb-e2e354d519c77c65d9ae3c8e4db6f0c9eedc4148.tar.gz |
Darwin: Cache device configuration value
Cache device configuration value to bring the Darwin backend more in
line with the libusb spec. To handle buggy devices GetConfiguration is
not called unless the device has more than one configuration.
Diffstat (limited to 'libusb/os/darwin_usb.h')
-rw-r--r-- | libusb/os/darwin_usb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libusb/os/darwin_usb.h b/libusb/os/darwin_usb.h index d220889..a71d464 100644 --- a/libusb/os/darwin_usb.h +++ b/libusb/os/darwin_usb.h @@ -126,7 +126,8 @@ struct darwin_device_priv { UInt32 location; char sys_path[21]; usb_device_t **device; - int open_count; + int open_count; + UInt8 first_config, active_config; }; struct darwin_device_handle_priv { |