windowscodecs: Silence fixme for IID_CMetaBitmapRenderTarget.
[wine.git] / dlls / wineusb.sys / unixlib.h
blob33469f5a2b5d65c926dad396616b3def0139ad7e
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,
36 struct usb_event
38 enum usb_event_type type;
40 union
42 struct usb_add_device_event
44 struct unix_device *device;
45 UINT16 vendor, product, revision, usbver;
46 UINT8 class, subclass, protocol, busnum, portnum;
47 bool interface;
48 INT16 interface_index;
49 } added_device;
50 struct unix_device *removed_device;
51 IRP *completed_irp;
52 } u;
55 struct usb_main_loop_params
57 struct usb_event *event;
60 struct usb_submit_urb_params
62 struct unix_device *device;
63 IRP *irp;
64 void *transfer_buffer;
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_init,
81 unix_usb_exit,
82 unix_usb_submit_urb,
83 unix_usb_cancel_transfer,
84 unix_usb_destroy_device,
87 #endif