mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
gex: trial of dbus mthods
This commit is contained in:
@@ -15,8 +15,10 @@ pub struct SupportedFunctions(rog_platform::supported::SupportedFunctions);
|
||||
|
||||
#[dbus_interface(name = "org.asuslinux.Daemon")]
|
||||
impl SupportedFunctions {
|
||||
pub fn supported_functions(&self) -> &rog_platform::supported::SupportedFunctions {
|
||||
&self.0
|
||||
pub fn supported_functions(
|
||||
&self,
|
||||
) -> zbus::fdo::Result<&rog_platform::supported::SupportedFunctions> {
|
||||
Ok(&self.0)
|
||||
}
|
||||
|
||||
#[dbus_interface(out_args("answer", "question"))]
|
||||
|
||||
Reference in New Issue
Block a user