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-0.28.0/src/Windows/Networking/ServiceDiscovery/Dnssd/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-0.28.0/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs')
-rw-r--r-- | vendor/windows-sys-0.28.0/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/vendor/windows-sys-0.28.0/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs b/vendor/windows-sys-0.28.0/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs new file mode 100644 index 000000000..8145be4ce --- /dev/null +++ b/vendor/windows-sys-0.28.0/src/Windows/Networking/ServiceDiscovery/Dnssd/mod.rs @@ -0,0 +1,37 @@ +#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)] +#[link(name = "windows")] +extern "system" {} +pub type DnssdRegistrationResult = *mut ::core::ffi::c_void; +#[repr(transparent)] +pub struct DnssdRegistrationStatus(pub i32); +impl DnssdRegistrationStatus { + pub const Success: Self = Self(0i32); + pub const InvalidServiceName: Self = Self(1i32); + pub const ServerError: Self = Self(2i32); + pub const SecurityError: Self = Self(3i32); +} +impl ::core::marker::Copy for DnssdRegistrationStatus {} +impl ::core::clone::Clone for DnssdRegistrationStatus { + fn clone(&self) -> Self { + *self + } +} +pub type DnssdServiceInstance = *mut ::core::ffi::c_void; +pub type DnssdServiceInstanceCollection = *mut ::core::ffi::c_void; +pub type DnssdServiceWatcher = *mut ::core::ffi::c_void; +#[repr(transparent)] +pub struct DnssdServiceWatcherStatus(pub i32); +impl DnssdServiceWatcherStatus { + 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 DnssdServiceWatcherStatus {} +impl ::core::clone::Clone for DnssdServiceWatcherStatus { + fn clone(&self) -> Self { + *self + } +} |