2 * windows UsbDk backend for libusb 1.0
3 * Copyright © 2014 Red Hat, Inc.
6 * Dmitry Fleytman <dmitry@daynix.com>
7 * Pavel Gurvich <pavel@daynix.com>
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 #ifndef LIBUSB_WINDOWS_USBDK_H
25 #define LIBUSB_WINDOWS_USBDK_H
27 #include "windows_common.h"
29 typedef struct USB_DK_CONFIG_DESCRIPTOR_REQUEST {
32 } USB_DK_CONFIG_DESCRIPTOR_REQUEST, *PUSB_DK_CONFIG_DESCRIPTOR_REQUEST;
46 } USB_DK_DEVICE_SPEED;
51 InterruptTransferType,
52 IsochronousTransferType
53 } USB_DK_TRANSFER_TYPE;
55 typedef BOOL (__cdecl *USBDK_GET_DEVICES_LIST)(
56 PUSB_DK_DEVICE_INFO *DeviceInfo,
59 typedef void (__cdecl *USBDK_RELEASE_DEVICES_LIST)(
60 PUSB_DK_DEVICE_INFO DeviceInfo
62 typedef HANDLE (__cdecl *USBDK_START_REDIRECT)(
63 PUSB_DK_DEVICE_ID DeviceId
65 typedef BOOL (__cdecl *USBDK_STOP_REDIRECT)(
68 typedef BOOL (__cdecl *USBDK_GET_CONFIGURATION_DESCRIPTOR)(
69 PUSB_DK_CONFIG_DESCRIPTOR_REQUEST Request,
70 PUSB_CONFIGURATION_DESCRIPTOR *Descriptor,
73 typedef void (__cdecl *USBDK_RELEASE_CONFIGURATION_DESCRIPTOR)(
74 PUSB_CONFIGURATION_DESCRIPTOR Descriptor
76 typedef TransferResult (__cdecl *USBDK_WRITE_PIPE)(
78 PUSB_DK_TRANSFER_REQUEST Request,
79 LPOVERLAPPED lpOverlapped
81 typedef TransferResult (__cdecl *USBDK_READ_PIPE)(
83 PUSB_DK_TRANSFER_REQUEST Request,
84 LPOVERLAPPED lpOverlapped
86 typedef BOOL (__cdecl *USBDK_ABORT_PIPE)(
90 typedef BOOL (__cdecl *USBDK_RESET_PIPE)(
94 typedef BOOL (__cdecl *USBDK_SET_ALTSETTING)(
99 typedef BOOL (__cdecl *USBDK_RESET_DEVICE)(
102 typedef HANDLE (__cdecl *USBDK_GET_REDIRECTOR_SYSTEM_HANDLE)(