comctl32/tests: Flush events before testing edit control IME messages.
[wine.git] / dlls / wineusb.sys / unixlib.h
blob0c3319969b7648e13e612c0e9dc00a053a656c14
1 /*
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
24 #include "windef.h"
25 #include "winternl.h"
26 #include "ddk/wdm.h"
27 #include "wine/unixlib.h"
29 enum usb_event_type
31 USB_EVENT_ADD_DEVICE,
32 USB_EVENT_REMOVE_DEVICE,
33 USB_EVENT_TRANSFER_COMPLETE,
34 USB_EVENT_SHUTDOWN,
37 struct usb_event
39 enum usb_event_type type;
41 union
43 struct usb_add_device_event
45 struct unix_device *device;
46 UINT16 vendor, product, revision;
47 UINT8 class, subclass, protocol;
48 bool interface;
49 UINT8 interface_index;
50 } added_device;
51 struct unix_device *removed_device;
52 IRP *completed_irp;
53 } u;
56 struct usb_get_event_params
58 struct usb_event *event;
61 struct usb_submit_urb_params
63 struct unix_device *device;
64 IRP *irp;
67 struct usb_cancel_transfer_params
69 void *transfer;
72 struct usb_destroy_device_params
74 struct unix_device *device;
77 enum unix_funcs
79 unix_usb_main_loop,
80 unix_usb_exit,
81 unix_usb_get_event,
82 unix_usb_submit_urb,
83 unix_usb_cancel_transfer,
84 unix_usb_destroy_device,
87 #endif