]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/Devices/Bluetooth/Advertisement/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Devices / Bluetooth / Advertisement / mod.rs
CommitLineData
5e7ed085
FG
1pub type BluetoothLEAdvertisement = *mut ::core::ffi::c_void;
2pub type BluetoothLEAdvertisementBytePattern = *mut ::core::ffi::c_void;
3pub type BluetoothLEAdvertisementDataSection = *mut ::core::ffi::c_void;
4pub type BluetoothLEAdvertisementFilter = *mut ::core::ffi::c_void;
04454e1e 5#[doc = "*Required features: `\"Devices_Bluetooth_Advertisement\"`*"]
5e7ed085
FG
6#[repr(transparent)]
7pub struct BluetoothLEAdvertisementFlags(pub u32);
8impl 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}
16impl ::core::marker::Copy for BluetoothLEAdvertisementFlags {}
17impl ::core::clone::Clone for BluetoothLEAdvertisementFlags {
18 fn clone(&self) -> Self {
19 *self
20 }
21}
22pub type BluetoothLEAdvertisementPublisher = *mut ::core::ffi::c_void;
04454e1e 23#[doc = "*Required features: `\"Devices_Bluetooth_Advertisement\"`*"]
5e7ed085
FG
24#[repr(transparent)]
25pub struct BluetoothLEAdvertisementPublisherStatus(pub i32);
26impl 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}
34impl ::core::marker::Copy for BluetoothLEAdvertisementPublisherStatus {}
35impl ::core::clone::Clone for BluetoothLEAdvertisementPublisherStatus {
36 fn clone(&self) -> Self {
37 *self
38 }
39}
40pub type BluetoothLEAdvertisementPublisherStatusChangedEventArgs = *mut ::core::ffi::c_void;
41pub type BluetoothLEAdvertisementReceivedEventArgs = *mut ::core::ffi::c_void;
04454e1e 42#[doc = "*Required features: `\"Devices_Bluetooth_Advertisement\"`*"]
5e7ed085
FG
43#[repr(transparent)]
44pub struct BluetoothLEAdvertisementType(pub i32);
45impl 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}
53impl ::core::marker::Copy for BluetoothLEAdvertisementType {}
54impl ::core::clone::Clone for BluetoothLEAdvertisementType {
55 fn clone(&self) -> Self {
56 *self
57 }
58}
59pub type BluetoothLEAdvertisementWatcher = *mut ::core::ffi::c_void;
04454e1e 60#[doc = "*Required features: `\"Devices_Bluetooth_Advertisement\"`*"]
5e7ed085
FG
61#[repr(transparent)]
62pub struct BluetoothLEAdvertisementWatcherStatus(pub i32);
63impl 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}
70impl ::core::marker::Copy for BluetoothLEAdvertisementWatcherStatus {}
71impl ::core::clone::Clone for BluetoothLEAdvertisementWatcherStatus {
72 fn clone(&self) -> Self {
73 *self
74 }
75}
76pub type BluetoothLEAdvertisementWatcherStoppedEventArgs = *mut ::core::ffi::c_void;
77pub type BluetoothLEManufacturerData = *mut ::core::ffi::c_void;
04454e1e 78#[doc = "*Required features: `\"Devices_Bluetooth_Advertisement\"`*"]
5e7ed085
FG
79#[repr(transparent)]
80pub struct BluetoothLEScanningMode(pub i32);
81impl BluetoothLEScanningMode {
82 pub const Passive: Self = Self(0i32);
83 pub const Active: Self = Self(1i32);
84 pub const None: Self = Self(2i32);
85}
86impl ::core::marker::Copy for BluetoothLEScanningMode {}
87impl ::core::clone::Clone for BluetoothLEScanningMode {
88 fn clone(&self) -> Self {
89 *self
90 }
91}