]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys-0.28.0/src/Windows/Devices/Bluetooth/mod.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / vendor / windows-sys-0.28.0 / src / Windows / Devices / Bluetooth / mod.rs
CommitLineData
064997fb
FG
1#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2#[cfg(feature = "Devices_Bluetooth_Advertisement")]
3pub mod Advertisement;
4#[cfg(feature = "Devices_Bluetooth_Background")]
5pub mod Background;
6#[cfg(feature = "Devices_Bluetooth_GenericAttributeProfile")]
7pub mod GenericAttributeProfile;
8#[cfg(feature = "Devices_Bluetooth_Rfcomm")]
9pub mod Rfcomm;
10#[link(name = "windows")]
11extern "system" {}
12pub type BluetoothAdapter = *mut ::core::ffi::c_void;
13#[repr(transparent)]
14pub struct BluetoothAddressType(pub i32);
15impl BluetoothAddressType {
16 pub const Public: Self = Self(0i32);
17 pub const Random: Self = Self(1i32);
18 pub const Unspecified: Self = Self(2i32);
19}
20impl ::core::marker::Copy for BluetoothAddressType {}
21impl ::core::clone::Clone for BluetoothAddressType {
22 fn clone(&self) -> Self {
23 *self
24 }
25}
26#[repr(transparent)]
27pub struct BluetoothCacheMode(pub i32);
28impl BluetoothCacheMode {
29 pub const Cached: Self = Self(0i32);
30 pub const Uncached: Self = Self(1i32);
31}
32impl ::core::marker::Copy for BluetoothCacheMode {}
33impl ::core::clone::Clone for BluetoothCacheMode {
34 fn clone(&self) -> Self {
35 *self
36 }
37}
38pub type BluetoothClassOfDevice = *mut ::core::ffi::c_void;
39#[repr(transparent)]
40pub struct BluetoothConnectionStatus(pub i32);
41impl BluetoothConnectionStatus {
42 pub const Disconnected: Self = Self(0i32);
43 pub const Connected: Self = Self(1i32);
44}
45impl ::core::marker::Copy for BluetoothConnectionStatus {}
46impl ::core::clone::Clone for BluetoothConnectionStatus {
47 fn clone(&self) -> Self {
48 *self
49 }
50}
51pub type BluetoothDevice = *mut ::core::ffi::c_void;
52pub type BluetoothDeviceId = *mut ::core::ffi::c_void;
53#[repr(transparent)]
54pub struct BluetoothError(pub i32);
55impl BluetoothError {
56 pub const Success: Self = Self(0i32);
57 pub const RadioNotAvailable: Self = Self(1i32);
58 pub const ResourceInUse: Self = Self(2i32);
59 pub const DeviceNotConnected: Self = Self(3i32);
60 pub const OtherError: Self = Self(4i32);
61 pub const DisabledByPolicy: Self = Self(5i32);
62 pub const NotSupported: Self = Self(6i32);
63 pub const DisabledByUser: Self = Self(7i32);
64 pub const ConsentRequired: Self = Self(8i32);
65 pub const TransportNotSupported: Self = Self(9i32);
66}
67impl ::core::marker::Copy for BluetoothError {}
68impl ::core::clone::Clone for BluetoothError {
69 fn clone(&self) -> Self {
70 *self
71 }
72}
73pub type BluetoothLEAppearance = *mut ::core::ffi::c_void;
74pub type BluetoothLEConnectionParameters = *mut ::core::ffi::c_void;
75pub type BluetoothLEConnectionPhy = *mut ::core::ffi::c_void;
76pub type BluetoothLEConnectionPhyInfo = *mut ::core::ffi::c_void;
77pub type BluetoothLEDevice = *mut ::core::ffi::c_void;
78pub type BluetoothLEPreferredConnectionParameters = *mut ::core::ffi::c_void;
79pub type BluetoothLEPreferredConnectionParametersRequest = *mut ::core::ffi::c_void;
80#[repr(transparent)]
81pub struct BluetoothLEPreferredConnectionParametersRequestStatus(pub i32);
82impl BluetoothLEPreferredConnectionParametersRequestStatus {
83 pub const Unspecified: Self = Self(0i32);
84 pub const Success: Self = Self(1i32);
85 pub const DeviceNotAvailable: Self = Self(2i32);
86 pub const AccessDenied: Self = Self(3i32);
87}
88impl ::core::marker::Copy for BluetoothLEPreferredConnectionParametersRequestStatus {}
89impl ::core::clone::Clone for BluetoothLEPreferredConnectionParametersRequestStatus {
90 fn clone(&self) -> Self {
91 *self
92 }
93}
94#[repr(transparent)]
95pub struct BluetoothMajorClass(pub i32);
96impl BluetoothMajorClass {
97 pub const Miscellaneous: Self = Self(0i32);
98 pub const Computer: Self = Self(1i32);
99 pub const Phone: Self = Self(2i32);
100 pub const NetworkAccessPoint: Self = Self(3i32);
101 pub const AudioVideo: Self = Self(4i32);
102 pub const Peripheral: Self = Self(5i32);
103 pub const Imaging: Self = Self(6i32);
104 pub const Wearable: Self = Self(7i32);
105 pub const Toy: Self = Self(8i32);
106 pub const Health: Self = Self(9i32);
107}
108impl ::core::marker::Copy for BluetoothMajorClass {}
109impl ::core::clone::Clone for BluetoothMajorClass {
110 fn clone(&self) -> Self {
111 *self
112 }
113}
114#[repr(transparent)]
115pub struct BluetoothMinorClass(pub i32);
116impl BluetoothMinorClass {
117 pub const Uncategorized: Self = Self(0i32);
118 pub const ComputerDesktop: Self = Self(1i32);
119 pub const ComputerServer: Self = Self(2i32);
120 pub const ComputerLaptop: Self = Self(3i32);
121 pub const ComputerHandheld: Self = Self(4i32);
122 pub const ComputerPalmSize: Self = Self(5i32);
123 pub const ComputerWearable: Self = Self(6i32);
124 pub const ComputerTablet: Self = Self(7i32);
125 pub const PhoneCellular: Self = Self(1i32);
126 pub const PhoneCordless: Self = Self(2i32);
127 pub const PhoneSmartPhone: Self = Self(3i32);
128 pub const PhoneWired: Self = Self(4i32);
129 pub const PhoneIsdn: Self = Self(5i32);
130 pub const NetworkFullyAvailable: Self = Self(0i32);
131 pub const NetworkUsed01To17Percent: Self = Self(8i32);
132 pub const NetworkUsed17To33Percent: Self = Self(16i32);
133 pub const NetworkUsed33To50Percent: Self = Self(24i32);
134 pub const NetworkUsed50To67Percent: Self = Self(32i32);
135 pub const NetworkUsed67To83Percent: Self = Self(40i32);
136 pub const NetworkUsed83To99Percent: Self = Self(48i32);
137 pub const NetworkNoServiceAvailable: Self = Self(56i32);
138 pub const AudioVideoWearableHeadset: Self = Self(1i32);
139 pub const AudioVideoHandsFree: Self = Self(2i32);
140 pub const AudioVideoMicrophone: Self = Self(4i32);
141 pub const AudioVideoLoudspeaker: Self = Self(5i32);
142 pub const AudioVideoHeadphones: Self = Self(6i32);
143 pub const AudioVideoPortableAudio: Self = Self(7i32);
144 pub const AudioVideoCarAudio: Self = Self(8i32);
145 pub const AudioVideoSetTopBox: Self = Self(9i32);
146 pub const AudioVideoHifiAudioDevice: Self = Self(10i32);
147 pub const AudioVideoVcr: Self = Self(11i32);
148 pub const AudioVideoVideoCamera: Self = Self(12i32);
149 pub const AudioVideoCamcorder: Self = Self(13i32);
150 pub const AudioVideoVideoMonitor: Self = Self(14i32);
151 pub const AudioVideoVideoDisplayAndLoudspeaker: Self = Self(15i32);
152 pub const AudioVideoVideoConferencing: Self = Self(16i32);
153 pub const AudioVideoGamingOrToy: Self = Self(18i32);
154 pub const PeripheralJoystick: Self = Self(1i32);
155 pub const PeripheralGamepad: Self = Self(2i32);
156 pub const PeripheralRemoteControl: Self = Self(3i32);
157 pub const PeripheralSensing: Self = Self(4i32);
158 pub const PeripheralDigitizerTablet: Self = Self(5i32);
159 pub const PeripheralCardReader: Self = Self(6i32);
160 pub const PeripheralDigitalPen: Self = Self(7i32);
161 pub const PeripheralHandheldScanner: Self = Self(8i32);
162 pub const PeripheralHandheldGesture: Self = Self(9i32);
163 pub const WearableWristwatch: Self = Self(1i32);
164 pub const WearablePager: Self = Self(2i32);
165 pub const WearableJacket: Self = Self(3i32);
166 pub const WearableHelmet: Self = Self(4i32);
167 pub const WearableGlasses: Self = Self(5i32);
168 pub const ToyRobot: Self = Self(1i32);
169 pub const ToyVehicle: Self = Self(2i32);
170 pub const ToyDoll: Self = Self(3i32);
171 pub const ToyController: Self = Self(4i32);
172 pub const ToyGame: Self = Self(5i32);
173 pub const HealthBloodPressureMonitor: Self = Self(1i32);
174 pub const HealthThermometer: Self = Self(2i32);
175 pub const HealthWeighingScale: Self = Self(3i32);
176 pub const HealthGlucoseMeter: Self = Self(4i32);
177 pub const HealthPulseOximeter: Self = Self(5i32);
178 pub const HealthHeartRateMonitor: Self = Self(6i32);
179 pub const HealthHealthDataDisplay: Self = Self(7i32);
180 pub const HealthStepCounter: Self = Self(8i32);
181 pub const HealthBodyCompositionAnalyzer: Self = Self(9i32);
182 pub const HealthPeakFlowMonitor: Self = Self(10i32);
183 pub const HealthMedicationMonitor: Self = Self(11i32);
184 pub const HealthKneeProsthesis: Self = Self(12i32);
185 pub const HealthAnkleProsthesis: Self = Self(13i32);
186 pub const HealthGenericHealthManager: Self = Self(14i32);
187 pub const HealthPersonalMobilityDevice: Self = Self(15i32);
188}
189impl ::core::marker::Copy for BluetoothMinorClass {}
190impl ::core::clone::Clone for BluetoothMinorClass {
191 fn clone(&self) -> Self {
192 *self
193 }
194}
195#[repr(transparent)]
196pub struct BluetoothServiceCapabilities(pub u32);
197impl BluetoothServiceCapabilities {
198 pub const None: Self = Self(0u32);
199 pub const LimitedDiscoverableMode: Self = Self(1u32);
200 pub const PositioningService: Self = Self(8u32);
201 pub const NetworkingService: Self = Self(16u32);
202 pub const RenderingService: Self = Self(32u32);
203 pub const CapturingService: Self = Self(64u32);
204 pub const ObjectTransferService: Self = Self(128u32);
205 pub const AudioService: Self = Self(256u32);
206 pub const TelephoneService: Self = Self(512u32);
207 pub const InformationService: Self = Self(1024u32);
208}
209impl ::core::marker::Copy for BluetoothServiceCapabilities {}
210impl ::core::clone::Clone for BluetoothServiceCapabilities {
211 fn clone(&self) -> Self {
212 *self
213 }
214}
215pub type BluetoothSignalStrengthFilter = *mut ::core::ffi::c_void;