summaryrefslogtreecommitdiff
path: root/libusb/os/windows_compat.h
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-01-20 20:29:45 +0000
committerPete Batard <pbatard@gmail.com>2010-01-20 20:29:45 +0000
commit5590301e7fb72350ca26fffa01174b96b02e8da6 (patch)
tree170c1723e06c3d6e3e7ddfedb6bc98b49bd538b8 /libusb/os/windows_compat.h
parent8242029421bb27e7568ca9be29982b902d62d681 (diff)
downloadlibusb-5590301e7fb72350ca26fffa01174b96b02e8da6.tar.gz
r93: HID part 2 (WIP)
- added composite HID device support in xusb.c - fixed signed/unsigned bug in windows_compat.c (Orin Eman) - added support for synchronous completion of async requests - composite HID device support (ClassGUID fallback for driver unavail., read interface number from MI_##, extra path for HID) - generic interface_by_endpoint and get_valid_interface - added HID struct in priv - HID submit_control_transfer
Diffstat (limited to 'libusb/os/windows_compat.h')
-rw-r--r--libusb/os/windows_compat.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/libusb/os/windows_compat.h b/libusb/os/windows_compat.h
index 4eeb6e9..689b82a 100644
--- a/libusb/os/windows_compat.h
+++ b/libusb/os/windows_compat.h
@@ -54,10 +54,11 @@ enum rw_type {
// fd struct that can be used for polling on Windows
struct winfd {
- int fd; // what's exposed to libusb core
- HANDLE handle; // what we need to attach overlapped to the I/O op, so we can poll it
- OVERLAPPED* overlapped; // what will report our I/O status
- enum rw_type rw; // I/O transfer direction: read *XOR* write (NOT BOTH)
+ int fd; // what's exposed to libusb core
+ HANDLE handle; // what we need to attach overlapped to the I/O op, so we can poll it
+ OVERLAPPED* overlapped; // what will report our I/O status
+ enum rw_type rw; // I/O transfer direction: read *XOR* write (NOT BOTH)
+ BOOLEAN completed_synchronously;// flag for async transfers that completed during request
};
extern const struct winfd INVALID_WINFD;