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 --- .../Windows/System/Diagnostics/DevicePortal/mod.rs | 20 ++++++ .../Windows/System/Diagnostics/Telemetry/mod.rs | 16 +++++ .../System/Diagnostics/TraceReporting/mod.rs | 84 ++++++++++++++++++++++ .../src/Windows/System/Diagnostics/mod.rs | 38 ++++++++++ 4 files changed, 158 insertions(+) create mode 100644 vendor/windows-sys/src/Windows/System/Diagnostics/DevicePortal/mod.rs create mode 100644 vendor/windows-sys/src/Windows/System/Diagnostics/Telemetry/mod.rs create mode 100644 vendor/windows-sys/src/Windows/System/Diagnostics/TraceReporting/mod.rs create mode 100644 vendor/windows-sys/src/Windows/System/Diagnostics/mod.rs (limited to 'vendor/windows-sys/src/Windows/System/Diagnostics') diff --git a/vendor/windows-sys/src/Windows/System/Diagnostics/DevicePortal/mod.rs b/vendor/windows-sys/src/Windows/System/Diagnostics/DevicePortal/mod.rs new file mode 100644 index 000000000..2b266dd27 --- /dev/null +++ b/vendor/windows-sys/src/Windows/System/Diagnostics/DevicePortal/mod.rs @@ -0,0 +1,20 @@ +pub type DevicePortalConnection = *mut ::core::ffi::c_void; +pub type DevicePortalConnectionClosedEventArgs = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"System_Diagnostics_DevicePortal\"`*"] +#[repr(transparent)] +pub struct DevicePortalConnectionClosedReason(pub i32); +impl DevicePortalConnectionClosedReason { + pub const Unknown: Self = Self(0i32); + pub const ResourceLimitsExceeded: Self = Self(1i32); + pub const ProtocolError: Self = Self(2i32); + pub const NotAuthorized: Self = Self(3i32); + pub const UserNotPresent: Self = Self(4i32); + pub const ServiceTerminated: Self = Self(5i32); +} +impl ::core::marker::Copy for DevicePortalConnectionClosedReason {} +impl ::core::clone::Clone for DevicePortalConnectionClosedReason { + fn clone(&self) -> Self { + *self + } +} +pub type DevicePortalConnectionRequestReceivedEventArgs = *mut ::core::ffi::c_void; diff --git a/vendor/windows-sys/src/Windows/System/Diagnostics/Telemetry/mod.rs b/vendor/windows-sys/src/Windows/System/Diagnostics/Telemetry/mod.rs new file mode 100644 index 000000000..67fd61635 --- /dev/null +++ b/vendor/windows-sys/src/Windows/System/Diagnostics/Telemetry/mod.rs @@ -0,0 +1,16 @@ +pub type PlatformTelemetryRegistrationResult = *mut ::core::ffi::c_void; +pub type PlatformTelemetryRegistrationSettings = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"System_Diagnostics_Telemetry\"`*"] +#[repr(transparent)] +pub struct PlatformTelemetryRegistrationStatus(pub i32); +impl PlatformTelemetryRegistrationStatus { + pub const Success: Self = Self(0i32); + pub const SettingsOutOfRange: Self = Self(1i32); + pub const UnknownFailure: Self = Self(2i32); +} +impl ::core::marker::Copy for PlatformTelemetryRegistrationStatus {} +impl ::core::clone::Clone for PlatformTelemetryRegistrationStatus { + fn clone(&self) -> Self { + *self + } +} diff --git a/vendor/windows-sys/src/Windows/System/Diagnostics/TraceReporting/mod.rs b/vendor/windows-sys/src/Windows/System/Diagnostics/TraceReporting/mod.rs new file mode 100644 index 000000000..efa6d3773 --- /dev/null +++ b/vendor/windows-sys/src/Windows/System/Diagnostics/TraceReporting/mod.rs @@ -0,0 +1,84 @@ +#[doc = "*Required features: `\"System_Diagnostics_TraceReporting\"`*"] +#[repr(transparent)] +pub struct PlatformDiagnosticActionState(pub i32); +impl PlatformDiagnosticActionState { + pub const Success: Self = Self(0i32); + pub const FreeNetworkNotAvailable: Self = Self(1i32); + pub const ACPowerNotAvailable: Self = Self(2i32); +} +impl ::core::marker::Copy for PlatformDiagnosticActionState {} +impl ::core::clone::Clone for PlatformDiagnosticActionState { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"System_Diagnostics_TraceReporting\"`*"] +#[repr(transparent)] +pub struct PlatformDiagnosticEscalationType(pub i32); +impl PlatformDiagnosticEscalationType { + pub const OnCompletion: Self = Self(0i32); + pub const OnFailure: Self = Self(1i32); +} +impl ::core::marker::Copy for PlatformDiagnosticEscalationType {} +impl ::core::clone::Clone for PlatformDiagnosticEscalationType { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"System_Diagnostics_TraceReporting\"`*"] +#[repr(transparent)] +pub struct PlatformDiagnosticEventBufferLatencies(pub u32); +impl PlatformDiagnosticEventBufferLatencies { + pub const Normal: Self = Self(1u32); + pub const CostDeferred: Self = Self(2u32); + pub const Realtime: Self = Self(4u32); +} +impl ::core::marker::Copy for PlatformDiagnosticEventBufferLatencies {} +impl ::core::clone::Clone for PlatformDiagnosticEventBufferLatencies { + fn clone(&self) -> Self { + *self + } +} +pub type PlatformDiagnosticTraceInfo = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"System_Diagnostics_TraceReporting\"`*"] +#[repr(transparent)] +pub struct PlatformDiagnosticTracePriority(pub i32); +impl PlatformDiagnosticTracePriority { + pub const Normal: Self = Self(0i32); + pub const UserElevated: Self = Self(1i32); +} +impl ::core::marker::Copy for PlatformDiagnosticTracePriority {} +impl ::core::clone::Clone for PlatformDiagnosticTracePriority { + fn clone(&self) -> Self { + *self + } +} +pub type PlatformDiagnosticTraceRuntimeInfo = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"System_Diagnostics_TraceReporting\"`*"] +#[repr(transparent)] +pub struct PlatformDiagnosticTraceSlotState(pub i32); +impl PlatformDiagnosticTraceSlotState { + pub const NotRunning: Self = Self(0i32); + pub const Running: Self = Self(1i32); + pub const Throttled: Self = Self(2i32); +} +impl ::core::marker::Copy for PlatformDiagnosticTraceSlotState {} +impl ::core::clone::Clone for PlatformDiagnosticTraceSlotState { + fn clone(&self) -> Self { + *self + } +} +#[doc = "*Required features: `\"System_Diagnostics_TraceReporting\"`*"] +#[repr(transparent)] +pub struct PlatformDiagnosticTraceSlotType(pub i32); +impl PlatformDiagnosticTraceSlotType { + pub const Alternative: Self = Self(0i32); + pub const AlwaysOn: Self = Self(1i32); + pub const Mini: Self = Self(2i32); +} +impl ::core::marker::Copy for PlatformDiagnosticTraceSlotType {} +impl ::core::clone::Clone for PlatformDiagnosticTraceSlotType { + fn clone(&self) -> Self { + *self + } +} diff --git a/vendor/windows-sys/src/Windows/System/Diagnostics/mod.rs b/vendor/windows-sys/src/Windows/System/Diagnostics/mod.rs new file mode 100644 index 000000000..912eab5ce --- /dev/null +++ b/vendor/windows-sys/src/Windows/System/Diagnostics/mod.rs @@ -0,0 +1,38 @@ +#[cfg(feature = "System_Diagnostics_DevicePortal")] +pub mod DevicePortal; +#[cfg(feature = "System_Diagnostics_Telemetry")] +pub mod Telemetry; +#[cfg(feature = "System_Diagnostics_TraceReporting")] +pub mod TraceReporting; +pub type DiagnosticActionResult = *mut ::core::ffi::c_void; +#[doc = "*Required features: `\"System_Diagnostics\"`*"] +#[repr(transparent)] +pub struct DiagnosticActionState(pub i32); +impl DiagnosticActionState { + pub const Initializing: Self = Self(0i32); + pub const Downloading: Self = Self(1i32); + pub const VerifyingTrust: Self = Self(2i32); + pub const Detecting: Self = Self(3i32); + pub const Resolving: Self = Self(4i32); + pub const VerifyingResolution: Self = Self(5i32); + pub const Executing: Self = Self(6i32); +} +impl ::core::marker::Copy for DiagnosticActionState {} +impl ::core::clone::Clone for DiagnosticActionState { + fn clone(&self) -> Self { + *self + } +} +pub type DiagnosticInvoker = *mut ::core::ffi::c_void; +pub type ProcessCpuUsage = *mut ::core::ffi::c_void; +pub type ProcessCpuUsageReport = *mut ::core::ffi::c_void; +pub type ProcessDiagnosticInfo = *mut ::core::ffi::c_void; +pub type ProcessDiskUsage = *mut ::core::ffi::c_void; +pub type ProcessDiskUsageReport = *mut ::core::ffi::c_void; +pub type ProcessMemoryUsage = *mut ::core::ffi::c_void; +pub type ProcessMemoryUsageReport = *mut ::core::ffi::c_void; +pub type SystemCpuUsage = *mut ::core::ffi::c_void; +pub type SystemCpuUsageReport = *mut ::core::ffi::c_void; +pub type SystemDiagnosticInfo = *mut ::core::ffi::c_void; +pub type SystemMemoryUsage = *mut ::core::ffi::c_void; +pub type SystemMemoryUsageReport = *mut ::core::ffi::c_void; -- cgit v1.2.3