#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
#[link(name = "windows")]
extern "system" {}
#[repr(transparent)]
pub struct IUsbBulkInEndpointDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbBulkInEndpointDescriptor {}
impl ::core::clone::Clone for IUsbBulkInEndpointDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbBulkInPipe(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbBulkInPipe {}
impl ::core::clone::Clone for IUsbBulkInPipe {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbBulkOutEndpointDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbBulkOutEndpointDescriptor {}
impl ::core::clone::Clone for IUsbBulkOutEndpointDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbBulkOutPipe(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbBulkOutPipe {}
impl ::core::clone::Clone for IUsbBulkOutPipe {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbConfiguration(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbConfiguration {}
impl ::core::clone::Clone for IUsbConfiguration {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbConfigurationDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbConfigurationDescriptor {}
impl ::core::clone::Clone for IUsbConfigurationDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbConfigurationDescriptorStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbConfigurationDescriptorStatics {}
impl ::core::clone::Clone for IUsbConfigurationDescriptorStatics {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbControlRequestType(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbControlRequestType {}
impl ::core::clone::Clone for IUsbControlRequestType {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbDescriptor {}
impl ::core::clone::Clone for IUsbDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbDevice(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbDevice {}
impl ::core::clone::Clone for IUsbDevice {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbDeviceClass(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbDeviceClass {}
impl ::core::clone::Clone for IUsbDeviceClass {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbDeviceClasses(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbDeviceClasses {}
impl ::core::clone::Clone for IUsbDeviceClasses {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbDeviceClassesStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbDeviceClassesStatics {}
impl ::core::clone::Clone for IUsbDeviceClassesStatics {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbDeviceDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbDeviceDescriptor {}
impl ::core::clone::Clone for IUsbDeviceDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbDeviceStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbDeviceStatics {}
impl ::core::clone::Clone for IUsbDeviceStatics {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbEndpointDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbEndpointDescriptor {}
impl ::core::clone::Clone for IUsbEndpointDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbEndpointDescriptorStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbEndpointDescriptorStatics {}
impl ::core::clone::Clone for IUsbEndpointDescriptorStatics {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbInterface(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbInterface {}
impl ::core::clone::Clone for IUsbInterface {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbInterfaceDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbInterfaceDescriptor {}
impl ::core::clone::Clone for IUsbInterfaceDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbInterfaceDescriptorStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbInterfaceDescriptorStatics {}
impl ::core::clone::Clone for IUsbInterfaceDescriptorStatics {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbInterfaceSetting(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbInterfaceSetting {}
impl ::core::clone::Clone for IUsbInterfaceSetting {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbInterruptInEndpointDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbInterruptInEndpointDescriptor {}
impl ::core::clone::Clone for IUsbInterruptInEndpointDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbInterruptInEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbInterruptInEventArgs {}
impl ::core::clone::Clone for IUsbInterruptInEventArgs {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbInterruptInPipe(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbInterruptInPipe {}
impl ::core::clone::Clone for IUsbInterruptInPipe {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbInterruptOutEndpointDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbInterruptOutEndpointDescriptor {}
impl ::core::clone::Clone for IUsbInterruptOutEndpointDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbInterruptOutPipe(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbInterruptOutPipe {}
impl ::core::clone::Clone for IUsbInterruptOutPipe {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbSetupPacket(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbSetupPacket {}
impl ::core::clone::Clone for IUsbSetupPacket {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct IUsbSetupPacketFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUsbSetupPacketFactory {}
impl ::core::clone::Clone for IUsbSetupPacketFactory {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbBulkInEndpointDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbBulkInEndpointDescriptor {}
impl ::core::clone::Clone for UsbBulkInEndpointDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbBulkInPipe(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbBulkInPipe {}
impl ::core::clone::Clone for UsbBulkInPipe {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbBulkOutEndpointDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbBulkOutEndpointDescriptor {}
impl ::core::clone::Clone for UsbBulkOutEndpointDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbBulkOutPipe(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbBulkOutPipe {}
impl ::core::clone::Clone for UsbBulkOutPipe {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbConfiguration(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbConfiguration {}
impl ::core::clone::Clone for UsbConfiguration {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbConfigurationDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbConfigurationDescriptor {}
impl ::core::clone::Clone for UsbConfigurationDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbControlRecipient(pub i32);
impl UsbControlRecipient {
pub const Device: Self = Self(0i32);
pub const SpecifiedInterface: Self = Self(1i32);
pub const Endpoint: Self = Self(2i32);
pub const Other: Self = Self(3i32);
pub const DefaultInterface: Self = Self(4i32);
}
impl ::core::marker::Copy for UsbControlRecipient {}
impl ::core::clone::Clone for UsbControlRecipient {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbControlRequestType(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbControlRequestType {}
impl ::core::clone::Clone for UsbControlRequestType {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbControlTransferType(pub i32);
impl UsbControlTransferType {
pub const Standard: Self = Self(0i32);
pub const Class: Self = Self(1i32);
pub const Vendor: Self = Self(2i32);
}
impl ::core::marker::Copy for UsbControlTransferType {}
impl ::core::clone::Clone for UsbControlTransferType {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbDescriptor {}
impl ::core::clone::Clone for UsbDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbDevice(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbDevice {}
impl ::core::clone::Clone for UsbDevice {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbDeviceClass(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbDeviceClass {}
impl ::core::clone::Clone for UsbDeviceClass {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbDeviceClasses(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbDeviceClasses {}
impl ::core::clone::Clone for UsbDeviceClasses {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbDeviceDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbDeviceDescriptor {}
impl ::core::clone::Clone for UsbDeviceDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbEndpointDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbEndpointDescriptor {}
impl ::core::clone::Clone for UsbEndpointDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbEndpointType(pub i32);
impl UsbEndpointType {
pub const Control: Self = Self(0i32);
pub const Isochronous: Self = Self(1i32);
pub const Bulk: Self = Self(2i32);
pub const Interrupt: Self = Self(3i32);
}
impl ::core::marker::Copy for UsbEndpointType {}
impl ::core::clone::Clone for UsbEndpointType {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbInterface(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbInterface {}
impl ::core::clone::Clone for UsbInterface {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbInterfaceDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbInterfaceDescriptor {}
impl ::core::clone::Clone for UsbInterfaceDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbInterfaceSetting(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbInterfaceSetting {}
impl ::core::clone::Clone for UsbInterfaceSetting {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbInterruptInEndpointDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbInterruptInEndpointDescriptor {}
impl ::core::clone::Clone for UsbInterruptInEndpointDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbInterruptInEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbInterruptInEventArgs {}
impl ::core::clone::Clone for UsbInterruptInEventArgs {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbInterruptInPipe(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbInterruptInPipe {}
impl ::core::clone::Clone for UsbInterruptInPipe {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbInterruptOutEndpointDescriptor(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbInterruptOutEndpointDescriptor {}
impl ::core::clone::Clone for UsbInterruptOutEndpointDescriptor {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbInterruptOutPipe(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbInterruptOutPipe {}
impl ::core::clone::Clone for UsbInterruptOutPipe {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbReadOptions(pub u32);
impl UsbReadOptions {
pub const None: Self = Self(0u32);
pub const AutoClearStall: Self = Self(1u32);
pub const OverrideAutomaticBufferManagement: Self = Self(2u32);
pub const IgnoreShortPacket: Self = Self(4u32);
pub const AllowPartialReads: Self = Self(8u32);
}
impl ::core::marker::Copy for UsbReadOptions {}
impl ::core::clone::Clone for UsbReadOptions {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbSetupPacket(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for UsbSetupPacket {}
impl ::core::clone::Clone for UsbSetupPacket {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbTransferDirection(pub i32);
impl UsbTransferDirection {
pub const Out: Self = Self(0i32);
pub const In: Self = Self(1i32);
}
impl ::core::marker::Copy for UsbTransferDirection {}
impl ::core::clone::Clone for UsbTransferDirection {
fn clone(&self) -> Self {
*self
}
}
#[repr(transparent)]
pub struct UsbWriteOptions(pub u32);
impl UsbWriteOptions {
pub const None: Self = Self(0u32);
pub const AutoClearStall: Self = Self(1u32);
pub const ShortPacketTerminate: Self = Self(2u32);
}
impl ::core::marker::Copy for UsbWriteOptions {}
impl ::core::clone::Clone for UsbWriteOptions {
fn clone(&self) -> Self {
*self
}
}