Is smol blocking or inotify blocking it?

This commit is contained in:
Luke D. Jones
2022-09-21 22:17:55 +12:00
parent 56285916cd
commit 5d87747d96
13 changed files with 142 additions and 69 deletions

View File

@@ -26,13 +26,13 @@ use zbus_macros::dbus_proxy;
default_path = "/org/asuslinux/Charge"
)]
trait Charge {
/// Limit method
fn limit(&self) -> zbus::Result<i16>;
/// charge_control_end_threshold method
fn charge_control_end_threshold(&self) -> zbus::Result<u8>;
/// SetLimit method
fn set_limit(&self, limit: u8) -> zbus::Result<()>;
/// set_charge_control_end_threshold method
fn set_charge_control_end_threshold(&self, limit: u8) -> zbus::Result<()>;
/// NotifyCharge signal
#[dbus_proxy(signal)]
fn notify_charge(&self, limit: u8) -> zbus::Result<u8>;
fn notify_charge_control_end_threshold(&self, limit: u8) -> zbus::Result<u8>;
}

View File

@@ -40,10 +40,10 @@ trait RogBios {
fn set_post_boot_sound(&self, on: bool) -> zbus::Result<()>;
/// PanelOverdrive method
fn panel_overdrive(&self) -> zbus::Result<bool>;
fn panel_od(&self) -> zbus::Result<bool>;
/// SetPanelOverdrive method
fn set_panel_overdrive(&self, overdrive: bool) -> zbus::Result<()>;
fn set_panel_od(&self, overdrive: bool) -> zbus::Result<()>;
/// NotifyDedicatedGraphicMode signal
#[dbus_proxy(signal)]