Merge branch 'profile_remove' into 'main'

Added --remove ability to profile subcommand

See merge request asus-linux/asus-nb-ctrl!37
This commit is contained in:
Luke Jones
2021-03-20 08:40:04 +00:00
4 changed files with 42 additions and 2 deletions

View File

@@ -44,6 +44,9 @@ trait Daemon {
/// ProfileNames method
fn profile_names(&self) -> zbus::Result<String>;
/// Remove method
fn remove(&self, profile: &str) -> zbus::Result<()>;
/// SetProfile method
fn set_profile(&self, profile: &str) -> zbus::Result<()>;
@@ -90,6 +93,11 @@ impl<'a> ProfileProxy<'a> {
self.0.profile_names()
}
#[inline]
pub fn remove(&self, profile: &str) -> Result<()> {
self.0.remove(profile)
}
#[inline]
pub fn connect_notify_profile(
&self,