2 * wineusb Unix library interface
4 * Copyright 2022 Zebediah Figura for CodeWeavers
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_WINEUSB_UNIXLIB_H
22 #define __WINE_WINEUSB_UNIXLIB_H
27 #include "wine/unixlib.h"
32 USB_EVENT_REMOVE_DEVICE
,
33 USB_EVENT_TRANSFER_COMPLETE
,
38 enum usb_event_type type
;
42 struct usb_add_device_event
44 struct unix_device
*device
;
45 UINT16 vendor
, product
, revision
, usbver
;
46 UINT8
class, subclass
, protocol
, busnum
, portnum
;
48 INT16 interface_index
;
50 struct unix_device
*removed_device
;
55 struct usb_main_loop_params
57 struct usb_event
*event
;
60 struct usb_submit_urb_params
62 struct unix_device
*device
;
64 void *transfer_buffer
;
67 struct usb_cancel_transfer_params
72 struct usb_destroy_device_params
74 struct unix_device
*device
;
83 unix_usb_cancel_transfer
,
84 unix_usb_destroy_device
,