]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
1 | pub type CastingConnection = *mut ::core::ffi::c_void; |
2 | pub type CastingConnectionErrorOccurredEventArgs = *mut ::core::ffi::c_void; | |
04454e1e | 3 | #[doc = "*Required features: `\"Media_Casting\"`*"] |
5e7ed085 FG |
4 | #[repr(transparent)] |
5 | pub struct CastingConnectionErrorStatus(pub i32); | |
6 | impl 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 | } | |
15 | impl ::core::marker::Copy for CastingConnectionErrorStatus {} | |
16 | impl ::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)] |
23 | pub struct CastingConnectionState(pub i32); | |
24 | impl 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 | } | |
31 | impl ::core::marker::Copy for CastingConnectionState {} | |
32 | impl ::core::clone::Clone for CastingConnectionState { | |
33 | fn clone(&self) -> Self { | |
34 | *self | |
35 | } | |
36 | } | |
37 | pub type CastingDevice = *mut ::core::ffi::c_void; | |
38 | pub type CastingDevicePicker = *mut ::core::ffi::c_void; | |
39 | pub type CastingDevicePickerFilter = *mut ::core::ffi::c_void; | |
40 | pub type CastingDeviceSelectedEventArgs = *mut ::core::ffi::c_void; | |
04454e1e | 41 | #[doc = "*Required features: `\"Media_Casting\"`*"] |
5e7ed085 FG |
42 | #[repr(transparent)] |
43 | pub struct CastingPlaybackTypes(pub u32); | |
44 | impl 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 | } | |
50 | impl ::core::marker::Copy for CastingPlaybackTypes {} | |
51 | impl ::core::clone::Clone for CastingPlaybackTypes { | |
52 | fn clone(&self) -> Self { | |
53 | *self | |
54 | } | |
55 | } | |
56 | pub type CastingSource = *mut ::core::ffi::c_void; |