]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/Media/Casting/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Media / Casting / mod.rs
CommitLineData
5e7ed085
FG
1pub type CastingConnection = *mut ::core::ffi::c_void;
2pub type CastingConnectionErrorOccurredEventArgs = *mut ::core::ffi::c_void;
04454e1e 3#[doc = "*Required features: `\"Media_Casting\"`*"]
5e7ed085
FG
4#[repr(transparent)]
5pub struct CastingConnectionErrorStatus(pub i32);
6impl CastingConnectionErrorStatus {
7 pub const Succeeded: Self = Self(0i32);
8 pub const DeviceDidNotRespond: Self = Self(1i32);
9 pub const DeviceError: Self = Self(2i32);
10 pub const DeviceLocked: Self = Self(3i32);
11 pub const ProtectedPlaybackFailed: Self = Self(4i32);
12 pub const InvalidCastingSource: Self = Self(5i32);
13 pub const Unknown: Self = Self(6i32);
14}
15impl ::core::marker::Copy for CastingConnectionErrorStatus {}
16impl ::core::clone::Clone for CastingConnectionErrorStatus {
17 fn clone(&self) -> Self {
18 *self
19 }
20}
04454e1e 21#[doc = "*Required features: `\"Media_Casting\"`*"]
5e7ed085
FG
22#[repr(transparent)]
23pub struct CastingConnectionState(pub i32);
24impl CastingConnectionState {
25 pub const Disconnected: Self = Self(0i32);
26 pub const Connected: Self = Self(1i32);
27 pub const Rendering: Self = Self(2i32);
28 pub const Disconnecting: Self = Self(3i32);
29 pub const Connecting: Self = Self(4i32);
30}
31impl ::core::marker::Copy for CastingConnectionState {}
32impl ::core::clone::Clone for CastingConnectionState {
33 fn clone(&self) -> Self {
34 *self
35 }
36}
37pub type CastingDevice = *mut ::core::ffi::c_void;
38pub type CastingDevicePicker = *mut ::core::ffi::c_void;
39pub type CastingDevicePickerFilter = *mut ::core::ffi::c_void;
40pub type CastingDeviceSelectedEventArgs = *mut ::core::ffi::c_void;
04454e1e 41#[doc = "*Required features: `\"Media_Casting\"`*"]
5e7ed085
FG
42#[repr(transparent)]
43pub struct CastingPlaybackTypes(pub u32);
44impl CastingPlaybackTypes {
45 pub const None: Self = Self(0u32);
46 pub const Audio: Self = Self(1u32);
47 pub const Video: Self = Self(2u32);
48 pub const Picture: Self = Self(4u32);
49}
50impl ::core::marker::Copy for CastingPlaybackTypes {}
51impl ::core::clone::Clone for CastingPlaybackTypes {
52 fn clone(&self) -> Self {
53 *self
54 }
55}
56pub type CastingSource = *mut ::core::ffi::c_void;