use std::collections::HashMap;
use zbus::proxy;
use zbus::zvariant::{ObjectPath, OwnedObjectPath, OwnedValue, Value};
#[proxy(
interface = "fi.w1.wpa_supplicant1.Interface",
default_service = "fi.w1.wpa_supplicant1"
)]
pub trait Interface {
fn add_blob(&self, name: &str, data: &[u8]) -> zbus::Result<()>;
fn add_network(&self, args: HashMap<&str, &Value<'_>>) -> zbus::Result<OwnedObjectPath>;
fn auto_scan(&self, arg: &str) -> zbus::Result<()>;
fn disconnect(&self) -> zbus::Result<()>;
#[zbus(name = "EAPLogoff")]
fn eaplogoff(&self) -> zbus::Result<()>;
#[zbus(name = "EAPLogon")]
fn eaplogon(&self) -> zbus::Result<()>;
#[zbus(name = "FlushBSS")]
fn flush_bss(&self, age: u32) -> zbus::Result<()>;
fn get_blob(&self, name: &str) -> zbus::Result<Vec<u8>>;
fn network_reply(&self, network: &ObjectPath<'_>, field: &str, value: &str)
-> zbus::Result<()>;
fn reassociate(&self) -> zbus::Result<()>;
fn reattach(&self) -> zbus::Result<()>;
fn reconnect(&self) -> zbus::Result<()>;
fn remove_all_networks(&self) -> zbus::Result<()>;
fn remove_blob(&self, name: &str) -> zbus::Result<()>;
fn remove_network(&self, path: &ObjectPath<'_>) -> zbus::Result<()>;
fn scan(&self, args: HashMap<&str, &Value<'_>>) -> zbus::Result<()>;
fn select_network(&self, path: &ObjectPath<'_>) -> zbus::Result<()>;
#[zbus(name = "SetPKCS11EngineAndModulePath")]
fn set_pkcs11engine_and_module_path(
&self,
pkcs11_engine_path: &str,
pkcs11_module_path: &str,
) -> zbus::Result<()>;
fn signal_poll(&self) -> zbus::Result<HashMap<String, OwnedValue>>;
fn subscribe_probe_req(&self) -> zbus::Result<()>;
#[zbus(name = "TDLSDiscover")]
fn tdlsdiscover(&self, peer_address: &str) -> zbus::Result<()>;
#[zbus(name = "TDLSSetup")]
fn tdlssetup(&self, peer_address: &str) -> zbus::Result<()>;
#[zbus(name = "TDLSStatus")]
fn tdlsstatus(&self, peer_address: &str) -> zbus::Result<String>;
#[zbus(name = "TDLSTeardown")]
fn tdlsteardown(&self, peer_address: &str) -> zbus::Result<()>;
fn unsubscribe_probe_req(&self) -> zbus::Result<()>;
#[zbus(signal, name = "BSSAdded")]
fn bssadded(
&self,
path: ObjectPath<'_>,
properties: HashMap<&str, Value<'_>>,
) -> zbus::Result<()>;
#[zbus(signal, name = "BSSRemoved")]
fn bssremoved(&self, path: ObjectPath<'_>) -> zbus::Result<()>;
#[zbus(signal)]
fn blob_added(&self, name: &str) -> zbus::Result<()>;
#[zbus(signal)]
fn blob_removed(&self, name: &str) -> zbus::Result<()>;
#[zbus(signal)]
fn certification(&self, certification: HashMap<&str, Value<'_>>) -> zbus::Result<()>;
#[zbus(signal, name = "EAP")]
fn eap(&self, status: &str, parameter: &str) -> zbus::Result<()>;
#[zbus(signal)]
fn network_request(&self, network: ObjectPath<'_>, field: &str, txt: &str) -> zbus::Result<()>;
#[zbus(signal)]
fn network_added(
&self,
path: ObjectPath<'_>,
properties: HashMap<&str, Value<'_>>,
) -> zbus::Result<()>;
#[zbus(signal)]
fn network_removed(&self, path: ObjectPath<'_>) -> zbus::Result<()>;
#[zbus(signal)]
fn network_selected(&self, path: ObjectPath<'_>) -> zbus::Result<()>;
#[zbus(signal)]
fn probe_request(&self, args: HashMap<&str, Value<'_>>) -> zbus::Result<()>;
#[zbus(signal)]
fn properties_changed(&self, properties: HashMap<&str, Value<'_>>) -> zbus::Result<()>;
#[zbus(signal)]
fn scan_done(&self, success: bool) -> zbus::Result<()>;
#[zbus(signal)]
fn sta_authorized(&self, name: &str) -> zbus::Result<()>;
#[zbus(signal)]
fn sta_deauthorized(&self, name: &str) -> zbus::Result<()>;
#[zbus(property)]
fn ap_scan(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn set_ap_scan(&self, value: u32) -> zbus::Result<()>;
#[zbus(property, name = "BSSExpireAge")]
fn bssexpire_age(&self) -> zbus::Result<u32>;
#[zbus(property, name = "BSSExpireAge")]
fn set_bssexpire_age(&self, value: u32) -> zbus::Result<()>;
#[zbus(property, name = "BSSExpireCount")]
fn bssexpire_count(&self) -> zbus::Result<u32>;
#[zbus(property, name = "BSSExpireCount")]
fn set_bssexpire_count(&self, value: u32) -> zbus::Result<()>;
#[zbus(property, name = "BSSs")]
fn bsss(&self) -> zbus::Result<Vec<OwnedObjectPath>>;
#[zbus(property)]
fn blobs(&self) -> zbus::Result<Vec<String>>;
#[zbus(property)]
fn bridge_ifname(&self) -> zbus::Result<String>;
#[zbus(property)]
fn capabilities(&self) -> zbus::Result<HashMap<String, OwnedValue>>;
#[zbus(property)]
fn country(&self) -> zbus::Result<String>;
#[zbus(property)]
fn set_country(&self, value: &str) -> zbus::Result<()>;
#[zbus(property)]
fn current_auth_mode(&self) -> zbus::Result<String>;
#[zbus(property, name = "CurrentBSS")]
fn current_bss(&self) -> zbus::Result<OwnedObjectPath>;
#[zbus(property)]
fn current_network(&self) -> zbus::Result<OwnedObjectPath>;
#[zbus(property)]
fn disconnect_reason(&self) -> zbus::Result<i32>;
#[zbus(property)]
fn driver(&self) -> zbus::Result<String>;
#[zbus(property)]
fn fast_reauth(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn set_fast_reauth(&self, value: bool) -> zbus::Result<()>;
#[zbus(property)]
fn ifname(&self) -> zbus::Result<String>;
#[zbus(property)]
fn networks(&self) -> zbus::Result<Vec<OwnedObjectPath>>;
#[zbus(property, name = "PKCS11EnginePath")]
fn pkcs11engine_path(&self) -> zbus::Result<String>;
#[zbus(property, name = "PKCS11ModulePath")]
fn pkcs11module_path(&self) -> zbus::Result<String>;
#[zbus(property)]
fn scan_interval(&self) -> zbus::Result<i32>;
#[zbus(property)]
fn set_scan_interval(&self, value: i32) -> zbus::Result<()>;
#[zbus(property)]
fn scanning(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn state(&self) -> zbus::Result<String>;
}