Manage add/remove aura

Serialize aura config filename
This commit is contained in:
Luke D. Jones
2024-03-18 16:22:18 +13:00
parent 014604724f
commit 5c43c31331
30 changed files with 690 additions and 298 deletions

View File

@@ -19,7 +19,7 @@ use crate::error::RogError;
use crate::{task_watch_item, task_watch_item_notify, CtrlTask, ReloadAndNotify};
const PLATFORM_ZBUS_NAME: &str = "Platform";
const PLATFORM_ZBUS_PATH: &str = "/org/asuslinux/Platform";
const PLATFORM_ZBUS_PATH: &str = "/org/asuslinux";
macro_rules! platform_get_value {
($self:ident, $property:tt, $prop_name:literal) => {
@@ -34,7 +34,6 @@ macro_rules! platform_get_value {
})
})
} else {
debug!("RogPlatform: getting {} not supported", $prop_name);
return Err(FdoErr::NotSupported(format!("RogPlatform: {} not supported", $prop_name)));
}
})
@@ -263,8 +262,12 @@ impl CtrlPlatform {
}
}
#[interface(name = "org.asuslinux.Daemon")]
#[interface(name = "org.asuslinux.Platform")]
impl CtrlPlatform {
async fn version(&self) -> String {
crate::VERSION.to_string()
}
/// Returns a list of property names that this system supports
async fn supported_properties(&self) -> Vec<Properties> {
let mut supported = Vec::new();