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/Networking/Proximity/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/Networking/Proximity/mod.rs')
-rw-r--r-- | vendor/windows-sys/src/Windows/Networking/Proximity/mod.rs | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/vendor/windows-sys/src/Windows/Networking/Proximity/mod.rs b/vendor/windows-sys/src/Windows/Networking/Proximity/mod.rs new file mode 100644 index 000000000..1a15ac9a1 --- /dev/null +++ b/vendor/windows-sys/src/Windows/Networking/Proximity/mod.rs @@ -0,0 +1,72 @@ +pub type ConnectionRequestedEventArgs = *mut ::core::ffi::c_void; +pub type DeviceArrivedEventHandler = *mut ::core::ffi::c_void; +pub type DeviceDepartedEventHandler = *mut ::core::ffi::c_void; +pub type MessageReceivedHandler = *mut ::core::ffi::c_void; +pub type MessageTransmittedHandler = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Networking_Proximity\"`*"] +#[repr(transparent)] +pub struct PeerDiscoveryTypes(pub u32); +impl PeerDiscoveryTypes { + pub const None: Self = Self(0u32); + pub const Browse: Self = Self(1u32); + pub const Triggered: Self = Self(2u32); +} +impl ::core::marker::Copy for PeerDiscoveryTypes {} +impl ::core::clone::Clone for PeerDiscoveryTypes { + fn clone(&self) -> Self { + *self + } +} +pub type PeerInformation = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Networking_Proximity\"`*"] +#[repr(transparent)] +pub struct PeerRole(pub i32); +impl PeerRole { + pub const Peer: Self = Self(0i32); + pub const Host: Self = Self(1i32); + pub const Client: Self = Self(2i32); +} +impl ::core::marker::Copy for PeerRole {} +impl ::core::clone::Clone for PeerRole { + fn clone(&self) -> Self { + *self + } +} +pub type PeerWatcher = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Networking_Proximity\"`*"] +#[repr(transparent)] +pub struct PeerWatcherStatus(pub i32); +impl PeerWatcherStatus { + pub const Created: Self = Self(0i32); + pub const Started: Self = Self(1i32); + pub const EnumerationCompleted: Self = Self(2i32); + pub const Stopping: Self = Self(3i32); + pub const Stopped: Self = Self(4i32); + pub const Aborted: Self = Self(5i32); +} +impl ::core::marker::Copy for PeerWatcherStatus {} +impl ::core::clone::Clone for PeerWatcherStatus { + fn clone(&self) -> Self { + *self + } +} +pub type ProximityDevice = *mut ::core::ffi::c_void; +pub type ProximityMessage = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"Networking_Proximity\"`*"] +#[repr(transparent)] +pub struct TriggeredConnectState(pub i32); +impl TriggeredConnectState { + pub const PeerFound: Self = Self(0i32); + pub const Listening: Self = Self(1i32); + pub const Connecting: Self = Self(2i32); + pub const Completed: Self = Self(3i32); + pub const Canceled: Self = Self(4i32); + pub const Failed: Self = Self(5i32); +} +impl ::core::marker::Copy for TriggeredConnectState {} +impl ::core::clone::Clone for TriggeredConnectState { + fn clone(&self) -> Self { + *self + } +} +pub type TriggeredConnectionStateChangedEventArgs = *mut ::core::ffi::c_void; |