diff options
author | Pete Batard <pbatard@gmail.com> | 2010-05-24 20:22:59 +0100 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-05-24 20:22:59 +0100 |
commit | 63f97c600e4d8a59e16375c0900adc36861c629c (patch) | |
tree | 8d6dbf5bbca06ea78074251a7c0ce1327b2401d9 /libusb/os/windows_usb.h | |
parent | 5d23127898e2d00913a2d699f41cdde58e86d3c3 (diff) | |
download | libusb-63f97c600e4d8a59e16375c0900adc36861c629c.tar.gz |
improved auto-release with support for concurrent auto-claim
also switched to using the __device_handle_priv macro everywhere and factorized the autoclaim/autorelease calls.
Diffstat (limited to 'libusb/os/windows_usb.h')
-rw-r--r-- | libusb/os/windows_usb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libusb/os/windows_usb.h b/libusb/os/windows_usb.h index 355e615..713ced3 100644 --- a/libusb/os/windows_usb.h +++ b/libusb/os/windows_usb.h @@ -292,6 +292,9 @@ struct interface_handle_t { struct windows_device_handle_priv { int active_interface; struct interface_handle_t interface_handle[USB_MAXINTERFACES]; +#if defined(AUTO_CLAIM) + int autoclaim_count[USB_MAXINTERFACES]; // For auto-release +#endif }; static inline struct windows_device_handle_priv *__device_handle_priv( @@ -307,9 +310,6 @@ struct windows_transfer_priv { uint8_t *hid_buffer; // 1 byte extended data buffer, required for HID uint8_t *hid_dest; // transfer buffer destination, required for HID size_t hid_expected_size; -#if defined(AUTO_CLAIM) - bool autoclaimed; // For auto-release -#endif }; |