#![allow(clippy::all)]
use zbus::dbus_proxy;
#[dbus_proxy(
interface = "de.pengutronix.rauc.Installer",
default_path = "/",
default_service = "de.pengutronix.rauc",
assume_defaults = true
)]
trait Installer {
fn get_primary(&self) -> zbus::Result<String>;
fn get_slot_status(
&self,
) -> zbus::Result<
Vec<(
String,
std::collections::HashMap<String, zbus::zvariant::OwnedValue>,
)>,
>;
fn info(&self, bundle: &str) -> zbus::Result<(String, String)>;
fn install(&self, source: &str) -> zbus::Result<()>;
fn install_bundle(
&self,
source: &str,
args: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
fn mark(&self, state: &str, slot_identifier: &str) -> zbus::Result<(String, String)>;
#[dbus_proxy(signal)]
fn completed(&self, result: i32) -> zbus::Result<()>;
#[dbus_proxy(property)]
fn boot_slot(&self) -> zbus::Result<String>;
#[dbus_proxy(property)]
fn compatible(&self) -> zbus::Result<String>;
#[dbus_proxy(property)]
fn last_error(&self) -> zbus::Result<String>;
#[dbus_proxy(property)]
fn operation(&self) -> zbus::Result<String>;
#[dbus_proxy(property)]
fn progress(&self) -> zbus::Result<(i32, String, i32)>;
#[dbus_proxy(property)]
fn variant(&self) -> zbus::Result<String>;
}