From 45d175931106e238158aea8114dd760838da473f Mon Sep 17 00:00:00 2001 From: Misaki Kasumi Date: Tue, 6 Feb 2024 01:56:56 +0800 Subject: [PATCH] rename WMI to IOCTL --- src-tauri/monitor/src/lib.rs | 4 ++-- src-tauri/src/monitors.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src-tauri/monitor/src/lib.rs b/src-tauri/monitor/src/lib.rs index c187f5e..330460a 100644 --- a/src-tauri/monitor/src/lib.rs +++ b/src-tauri/monitor/src/lib.rs @@ -207,7 +207,7 @@ pub fn get_monitors() -> Vec { #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub enum Interface { DDCCI, - WMI, + IOCTL, } #[derive(Debug, Copy, Clone, PartialEq, Eq)] @@ -342,7 +342,7 @@ impl Monitor { ioctl_query_display_brightness(self.hdevice).map(|value| Reply { current: value as u32, maximum: 100, - source: Interface::WMI, + source: Interface::IOCTL, }) } else { Err(ERROR_NOT_SUPPORTED.into()) diff --git a/src-tauri/src/monitors.rs b/src-tauri/src/monitors.rs index b8e1e5b..e378e25 100644 --- a/src-tauri/src/monitors.rs +++ b/src-tauri/src/monitors.rs @@ -93,7 +93,7 @@ pub async fn get_monitor_feature( maximum, source: match source { Interface::DDCCI => "ddcci", - Interface::WMI => "wmi", + Interface::IOCTL => "ioctl", }, }) }