Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
08d05121
Commit
08d05121
authored
Jul 03, 2023
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Jul 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add windows.devices.usb.idl file.
parent
4871777b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
178 additions
and
0 deletions
+178
-0
Makefile.in
include/Makefile.in
+1
-0
windows.devices.usb.idl
include/windows.devices.usb.idl
+177
-0
No files found.
include/Makefile.in
View file @
08d05121
...
...
@@ -816,6 +816,7 @@ SOURCES = \
windows.devices.haptics.idl
\
windows.devices.power.idl
\
windows.devices.radios.idl
\
windows.devices.usb.idl
\
windows.foundation.collections.idl
\
windows.foundation.idl
\
windows.foundation.metadata.idl
\
...
...
include/windows.devices.usb.idl
0 → 100644
View file @
08d05121
/*
*
Copyright
(
C
)
2023
Mohamad
Al
-
Jaf
*
*
This
library
is
free
software
; you can redistribute it and/or
*
modify
it
under
the
terms
of
the
GNU
Lesser
General
Public
*
License
as
published
by
the
Free
Software
Foundation
; either
*
version
2.1
of
the
License
,
or
(
at
your
option
)
any
later
version
.
*
*
This
library
is
distributed
in
the
hope
that
it
will
be
useful
,
*
but
WITHOUT
ANY
WARRANTY
; without even the implied warranty of
*
MERCHANTABILITY
or
FITNESS
FOR
A
PARTICULAR
PURPOSE
.
See
the
GNU
*
Lesser
General
Public
License
for
more
details
.
*
*
You
should
have
received
a
copy
of
the
GNU
Lesser
General
Public
*
License
along
with
this
library
; if not, write to the Free Software
*
Foundation
,
Inc
.
,
51
Franklin
St
,
Fifth
Floor
,
Boston
,
MA
02110
-
1301
,
USA
*/
#
ifdef
__WIDL__
#
pragma
winrt
ns_prefix
#
endif
import
"inspectable.idl"
;
import
"asyncinfo.idl"
;
import
"eventtoken.idl"
;
import
"windowscontracts.idl"
;
import
"windows.foundation.idl"
;
import
"windows.storage.streams.idl"
;
namespace
Windows
.
Devices.Usb
{
interface
IUsbDevice
;
interface
IUsbDeviceClass
;
interface
IUsbConfiguration
;
interface
IUsbDeviceDescriptor
;
interface
IUsbDeviceStatics
;
interface
IUsbInterface
;
interface
IUsbSetupPacket
;
interface
IUsbSetupPacketFactory
;
runtimeclass
UsbConfiguration
;
runtimeclass
UsbDevice
;
runtimeclass
UsbDeviceClass
;
runtimeclass
UsbDeviceDescriptor
;
runtimeclass
UsbInterface
;
runtimeclass
UsbSetupPacket
;
declare
{
interface
Windows
.
Foundation.AsyncOperationCompletedHandler<Windows.Devices.Usb.UsbDevice
*
>
;
interface
Windows
.
Foundation.IAsyncOperation<Windows.Devices.Usb.UsbDevice
*
>
;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
exclusiveto
(
Windows
.
Devices.Usb.UsbDevice)
,
uuid
(
5249b992
-
c456
-
44
d5
-
ad5e
-
24
f5a089f63b
)
]
interface
IUsbDevice
:
IInspectable
requires
Windows
.
Foundation.IClosable
{
[
overload
(
"SendControlOutTransferAsync"
)
]
HRESULT
SendControlOutTransferAsync
(
[
in
]
Windows
.
Devices.Usb.UsbSetupPacket
*
packet
,
[
in
]
Windows
.
Storage.Streams.IBuffer
*
buffer
,
[
out
,
retval
]
Windows
.
Foundation.IAsyncOperation<UINT32>
**
operation
)
;
[
overload
(
"SendControlOutTransferAsync"
)
]
HRESULT
SendControlOutTransferAsyncNoBuffer
(
[
in
]
Windows
.
Devices.Usb.UsbSetupPacket
*
packet
,
[
out
,
retval
]
Windows
.
Foundation.IAsyncOperation<UINT32>
**
operation
)
;
[
overload
(
"SendControlInTransferAsync"
)
]
HRESULT
SendControlInTransferAsync
(
[
in
]
Windows
.
Devices.Usb.UsbSetupPacket
*
packet
,
[
in
]
Windows
.
Storage.Streams.IBuffer
*
buffer
,
[
out
,
retval
]
Windows
.
Foundation.IAsyncOperation<Windows.Storage.Streams.IBuffer
*
>
**
operation
)
;
[
overload
(
"SendControlInTransferAsync"
)
]
HRESULT
SendControlInTransferAsyncNoBuffer
(
[
in
]
Windows
.
Devices.Usb.UsbSetupPacket
*
packet
,
[
out
,
retval
]
Windows
.
Foundation.IAsyncOperation<Windows.Storage.Streams.IBuffer
*
>
**
operation
)
;
[
propget
]
HRESULT
DefaultInterface
(
[
out
,
retval
]
Windows
.
Devices.Usb.UsbInterface
**
value
)
;
[
propget
]
HRESULT
DeviceDescriptor
(
[
out
,
retval
]
Windows
.
Devices.Usb.UsbDeviceDescriptor
**
value
)
;
[
propget
]
HRESULT
Configuration
(
[
out
,
retval
]
Windows
.
Devices.Usb.UsbConfiguration
**
value
)
;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
exclusiveto
(
Windows
.
Devices.Usb.UsbDeviceClass)
,
uuid
(
051942
f9
-845e-47
eb
-
b12a
-
38
f2f617afe7
)
]
interface
IUsbDeviceClass
:
IInspectable
{
[
propget
]
HRESULT
ClassCode
(
[
out
,
retval
]
BYTE
*
value
)
;
[
propput
]
HRESULT
ClassCode
(
[
in
]
BYTE
value
)
;
[
propget
]
HRESULT
SubclassCode
(
[
out
,
retval
]
Windows
.
Foundation.IReference<BYTE>
**
value
)
;
[
propput
]
HRESULT
SubclassCode
(
[
in
]
Windows
.
Foundation.IReference<BYTE>
*
value
)
;
[
propget
]
HRESULT
ProtocolCode
(
[
out
,
retval
]
Windows
.
Foundation.IReference<BYTE>
**
value
)
;
[
propput
]
HRESULT
ProtocolCode
(
[
in
]
Windows
.
Foundation.IReference<BYTE>
*
value
)
;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
exclusiveto
(
Windows
.
Devices.Usb.UsbDevice)
,
uuid
(
066b85
a2
-
09b7
-
4446
-
8502
-
6
fe6dcaa7309
)
]
interface
IUsbDeviceStatics
:
IInspectable
{
[
overload
(
"GetDeviceSelector"
)
]
HRESULT
GetDeviceSelector
(
[
in
]
UINT32
vendor
,
[
in
]
UINT32
product
,
[
in
]
GUID
class
,
[
out
,
retval
]
HSTRING
*
value
)
;
[
overload
(
"GetDeviceSelector"
)
]
HRESULT
GetDeviceSelectorGuidOnly
(
[
in
]
GUID
class
,
[
out
,
retval
]
HSTRING
*
value
)
;
[
overload
(
"GetDeviceSelector"
)
]
HRESULT
GetDeviceSelectorVidPidOnly
(
[
in
]
UINT32
vendor
,
[
in
]
UINT32
product
,
[
out
,
retval
]
HSTRING
*
value
)
;
HRESULT
GetDeviceClassSelector
(
[
in
]
Windows
.
Devices.Usb.UsbDeviceClass
*
class
,
[
out
,
retval
]
HSTRING
*
value
)
;
HRESULT
FromIdAsync
(
[
in
]
HSTRING
id
,
[
out
,
retval
]
Windows
.
Foundation.IAsyncOperation<Windows.Devices.Usb.UsbDevice
*
>
**
operation
)
;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
marshaling_behavior
(
agile
)
]
runtimeclass
UsbConfiguration
{
[
default
]
interface
Windows
.
Devices.Usb.IUsbConfiguration;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
marshaling_behavior
(
agile
),
static
(
Windows
.
Devices.Usb.IUsbDeviceStatics
,
Windows
.
Foundation.UniversalApiContract
,
1.0
)
]
runtimeclass
UsbDevice
{
[
default
]
interface
Windows
.
Devices.Usb.IUsbDevice;
interface
Windows
.
Foundation.IClosable;
}
[
activatable
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
marshaling_behavior
(
agile
)
]
runtimeclass
UsbDeviceClass
{
[
default
]
interface
Windows
.
Devices.Usb.IUsbDeviceClass;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
marshaling_behavior
(
agile
)
]
runtimeclass
UsbDeviceDescriptor
{
[
default
]
interface
Windows
.
Devices.Usb.IUsbDeviceDescriptor;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
marshaling_behavior
(
agile
)
]
runtimeclass
UsbInterface
{
[
default
]
interface
Windows
.
Devices.Usb.IUsbInterface;
}
[
activatable
(
Windows
.
Devices.Usb.IUsbSetupPacketFactory
,
Windows
.
Foundation.UniversalApiContract
,
1.0
),
activatable
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
contract
(
Windows
.
Foundation.UniversalApiContract
,
1.0
),
marshaling_behavior
(
agile
)
]
runtimeclass
UsbSetupPacket
{
[
default
]
interface
Windows
.
Devices.Usb.IUsbSetupPacket;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment