From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- .../src/Windows/Networking/Proximity/mod.rs | 72 ++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 vendor/windows-sys/src/Windows/Networking/Proximity/mod.rs (limited to 'vendor/windows-sys/src/Windows/Networking/Proximity/mod.rs') 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; -- cgit v1.2.3