gex: trial of dbus mthods

This commit is contained in:
Luke D. Jones
2023-06-29 12:58:11 +12:00
parent fc8879ac24
commit 6b058c9922
16 changed files with 181 additions and 468 deletions

View File

@@ -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"))]