]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
1 | pub type BluetoothLEAdvertisement = *mut ::core::ffi::c_void; |
2 | pub type BluetoothLEAdvertisementBytePattern = *mut ::core::ffi::c_void; | |
3 | pub type BluetoothLEAdvertisementDataSection = *mut ::core::ffi::c_void; | |
4 | pub type BluetoothLEAdvertisementFilter = *mut ::core::ffi::c_void; | |
04454e1e | 5 | #[doc = "*Required features: `\"Devices_Bluetooth_Advertisement\"`*"] |
5e7ed085 FG |
6 | #[repr(transparent)] |
7 | pub struct BluetoothLEAdvertisementFlags(pub u32); | |
8 | impl BluetoothLEAdvertisementFlags { | |
9 | pub const None: Self = Self(0u32); | |
10 | pub const LimitedDiscoverableMode: Self = Self(1u32); | |
11 | pub const GeneralDiscoverableMode: Self = Self(2u32); | |
12 | pub const ClassicNotSupported: Self = Self(4u32); | |
13 | pub const DualModeControllerCapable: Self = Self(8u32); | |
14 | pub const DualModeHostCapable: Self = Self(16u32); | |
15 | } | |
16 | impl ::core::marker::Copy for BluetoothLEAdvertisementFlags {} | |
17 | impl ::core::clone::Clone for BluetoothLEAdvertisementFlags { | |
18 | fn clone(&self) -> Self { | |
19 | *self | |
20 | } | |
21 | } | |
22 | pub type BluetoothLEAdvertisementPublisher = *mut ::core::ffi::c_void; | |
04454e1e | 23 | #[doc = "*Required features: `\"Devices_Bluetooth_Advertisement\"`*"] |
5e7ed085 FG |
24 | #[repr(transparent)] |
25 | pub struct BluetoothLEAdvertisementPublisherStatus(pub i32); | |
26 | impl BluetoothLEAdvertisementPublisherStatus { | |
27 | pub const Created: Self = Self(0i32); | |
28 | pub const Waiting: Self = Self(1i32); | |
29 | pub const Started: Self = Self(2i32); | |
30 | pub const Stopping: Self = Self(3i32); | |
31 | pub const Stopped: Self = Self(4i32); | |
32 | pub const Aborted: Self = Self(5i32); | |
33 | } | |
34 | impl ::core::marker::Copy for BluetoothLEAdvertisementPublisherStatus {} | |
35 | impl ::core::clone::Clone for BluetoothLEAdvertisementPublisherStatus { | |
36 | fn clone(&self) -> Self { | |
37 | *self | |
38 | } | |
39 | } | |
40 | pub type BluetoothLEAdvertisementPublisherStatusChangedEventArgs = *mut ::core::ffi::c_void; | |
41 | pub type BluetoothLEAdvertisementReceivedEventArgs = *mut ::core::ffi::c_void; | |
04454e1e | 42 | #[doc = "*Required features: `\"Devices_Bluetooth_Advertisement\"`*"] |
5e7ed085 FG |
43 | #[repr(transparent)] |
44 | pub struct BluetoothLEAdvertisementType(pub i32); | |
45 | impl BluetoothLEAdvertisementType { | |
46 | pub const ConnectableUndirected: Self = Self(0i32); | |
47 | pub const ConnectableDirected: Self = Self(1i32); | |
48 | pub const ScannableUndirected: Self = Self(2i32); | |
49 | pub const NonConnectableUndirected: Self = Self(3i32); | |
50 | pub const ScanResponse: Self = Self(4i32); | |
51 | pub const Extended: Self = Self(5i32); | |
52 | } | |
53 | impl ::core::marker::Copy for BluetoothLEAdvertisementType {} | |
54 | impl ::core::clone::Clone for BluetoothLEAdvertisementType { | |
55 | fn clone(&self) -> Self { | |
56 | *self | |
57 | } | |
58 | } | |
59 | pub type BluetoothLEAdvertisementWatcher = *mut ::core::ffi::c_void; | |
04454e1e | 60 | #[doc = "*Required features: `\"Devices_Bluetooth_Advertisement\"`*"] |
5e7ed085 FG |
61 | #[repr(transparent)] |
62 | pub struct BluetoothLEAdvertisementWatcherStatus(pub i32); | |
63 | impl BluetoothLEAdvertisementWatcherStatus { | |
64 | pub const Created: Self = Self(0i32); | |
65 | pub const Started: Self = Self(1i32); | |
66 | pub const Stopping: Self = Self(2i32); | |
67 | pub const Stopped: Self = Self(3i32); | |
68 | pub const Aborted: Self = Self(4i32); | |
69 | } | |
70 | impl ::core::marker::Copy for BluetoothLEAdvertisementWatcherStatus {} | |
71 | impl ::core::clone::Clone for BluetoothLEAdvertisementWatcherStatus { | |
72 | fn clone(&self) -> Self { | |
73 | *self | |
74 | } | |
75 | } | |
76 | pub type BluetoothLEAdvertisementWatcherStoppedEventArgs = *mut ::core::ffi::c_void; | |
77 | pub type BluetoothLEManufacturerData = *mut ::core::ffi::c_void; | |
04454e1e | 78 | #[doc = "*Required features: `\"Devices_Bluetooth_Advertisement\"`*"] |
5e7ed085 FG |
79 | #[repr(transparent)] |
80 | pub struct BluetoothLEScanningMode(pub i32); | |
81 | impl BluetoothLEScanningMode { | |
82 | pub const Passive: Self = Self(0i32); | |
83 | pub const Active: Self = Self(1i32); | |
84 | pub const None: Self = Self(2i32); | |
85 | } | |
86 | impl ::core::marker::Copy for BluetoothLEScanningMode {} | |
87 | impl ::core::clone::Clone for BluetoothLEScanningMode { | |
88 | fn clone(&self) -> Self { | |
89 | *self | |
90 | } | |
91 | } |