use zbus::{Result, proxy};
pub mod types;
use types::*;
#[proxy(
interface = "de.pengutronix.rauc.Installer",
default_service = "de.pengutronix.rauc",
default_path = "/"
)]
pub trait Installer {
fn get_artifact_status(&self) -> Result<Vec<ArtifactStatusInfo>>;
fn get_primary(&self) -> Result<String>;
fn get_slot_status(&self) -> Result<Vec<(SlotName, GetSlotStatusInfo)>>;
fn inspect_bundle(&self, source: &str, args: InspectBundleArgs) -> Result<InspectBundleInfo>;
fn install_bundle(&self, source: &str, args: InstallBundleArgs) -> Result<()>;
fn mark(&self, state: MarkState, slot_identifier: &SlotIdentifier) -> Result<MarkInfo>;
#[zbus(signal)]
fn completed(&self, result: InstallationResult) -> Result<()>;
#[zbus(property)]
fn boot_slot(&self) -> Result<String>;
#[zbus(property)]
fn compatible(&self) -> Result<String>;
#[zbus(property)]
fn last_error(&self) -> Result<String>;
#[zbus(property)]
fn operation(&self) -> Result<Operation>;
#[zbus(property)]
fn progress(&self) -> Result<Progress>;
#[zbus(property)]
fn variant(&self) -> Result<String>;
}