mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 09:23:19 +01:00
Fixes to slash merge
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use zbus::proxy;
|
||||
use rog_slash::SlashMode;
|
||||
use zbus::proxy;
|
||||
|
||||
#[proxy(
|
||||
interface = "org.asuslinux.Slash",
|
||||
@@ -10,25 +10,24 @@ trait Slash {
|
||||
/// EnableDisplay property
|
||||
#[zbus(property)]
|
||||
fn enabled(&self) -> zbus::Result<bool>;
|
||||
// #[zbus(property)]
|
||||
#[zbus(property)]
|
||||
fn set_enabled(&self, value: bool) -> zbus::Result<()>;
|
||||
|
||||
|
||||
/// Brightness property
|
||||
#[zbus(property)]
|
||||
fn brightness(&self) -> zbus::Result<u8>;
|
||||
// #[zbus(property)]
|
||||
#[zbus(property)]
|
||||
fn set_brightness(&self, value: u8) -> zbus::Result<()>;
|
||||
|
||||
/// Interval property
|
||||
#[zbus(property)]
|
||||
fn interval(&self) -> zbus::Result<u8>;
|
||||
// #[zbus(property)]
|
||||
#[zbus(property)]
|
||||
fn set_interval(&self, value: u8) -> zbus::Result<()>;
|
||||
|
||||
/// Slash modes property
|
||||
#[zbus(property)]
|
||||
fn slash_mode(&self) -> zbus::Result<SlashMode>;
|
||||
// #[zbus(property)]
|
||||
#[zbus(property)]
|
||||
fn set_slash_mode(&self, value: SlashMode) -> zbus::Result<()>;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user