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
,
39 enum usb_event_type type
;
43 struct usb_add_device_event
45 struct unix_device
*device
;
46 UINT16 vendor
, product
, revision
;
47 UINT8
class, subclass
, protocol
;
49 UINT8 interface_index
;
51 struct unix_device
*removed_device
;
56 struct usb_get_event_params
58 struct usb_event
*event
;
61 struct usb_submit_urb_params
63 struct unix_device
*device
;
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
,