diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /vendor/windows-sys/src/Windows/Devices/Geolocation/Geofencing/mod.rs | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/windows-sys/src/Windows/Devices/Geolocation/Geofencing/mod.rs')
-rw-r--r-- | vendor/windows-sys/src/Windows/Devices/Geolocation/Geofencing/mod.rs | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/vendor/windows-sys/src/Windows/Devices/Geolocation/Geofencing/mod.rs b/vendor/windows-sys/src/Windows/Devices/Geolocation/Geofencing/mod.rs new file mode 100644 index 000000000..2fbbee5c5 --- /dev/null +++ b/vendor/windows-sys/src/Windows/Devices/Geolocation/Geofencing/mod.rs @@ -0,0 +1,63 @@ +pub type Geofence = *mut ::core::ffi::c_void; +pub type GeofenceMonitor = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Devices_Geolocation_Geofencing\"`*"] +#[repr(transparent)] +pub struct GeofenceMonitorStatus(pub i32); +impl GeofenceMonitorStatus { + pub const Ready: Self = Self(0i32); + pub const Initializing: Self = Self(1i32); + pub const NoData: Self = Self(2i32); + pub const Disabled: Self = Self(3i32); + pub const NotInitialized: Self = Self(4i32); + pub const NotAvailable: Self = Self(5i32); +} +impl ::core::marker::Copy for GeofenceMonitorStatus {} +impl ::core::clone::Clone for GeofenceMonitorStatus { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Devices_Geolocation_Geofencing\"`*"] +#[repr(transparent)] +pub struct GeofenceRemovalReason(pub i32); +impl GeofenceRemovalReason { + pub const Used: Self = Self(0i32); + pub const Expired: Self = Self(1i32); +} +impl ::core::marker::Copy for GeofenceRemovalReason {} +impl ::core::clone::Clone for GeofenceRemovalReason { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"Devices_Geolocation_Geofencing\"`*"] +#[repr(transparent)] +pub struct GeofenceState(pub u32); +impl GeofenceState { + pub const None: Self = Self(0u32); + pub const Entered: Self = Self(1u32); + pub const Exited: Self = Self(2u32); + pub const Removed: Self = Self(4u32); +} +impl ::core::marker::Copy for GeofenceState {} +impl ::core::clone::Clone for GeofenceState { + fn clone(&self) -> Self { + *self + } +} +pub type GeofenceStateChangeReport = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Devices_Geolocation_Geofencing\"`*"] +#[repr(transparent)] +pub struct MonitoredGeofenceStates(pub u32); +impl MonitoredGeofenceStates { + pub const None: Self = Self(0u32); + pub const Entered: Self = Self(1u32); + pub const Exited: Self = Self(2u32); + pub const Removed: Self = Self(4u32); +} +impl ::core::marker::Copy for MonitoredGeofenceStates {} +impl ::core::clone::Clone for MonitoredGeofenceStates { + fn clone(&self) -> Self { + *self + } +} |