use std::collections::HashMap;
use zbus::{
proxy,
zvariant::{OwnedObjectPath, OwnedValue},
};
#[proxy(
default_service = "org.freedesktop.NetworkManager",
interface = "org.freedesktop.NetworkManager.Device.WifiP2P"
)]
pub(crate) trait DeviceWifiP2P {
fn start_find(&self, options: HashMap<String, OwnedValue>) -> zbus::Result<()>;
fn stop_find(&self) -> zbus::Result<()>;
#[zbus(property)]
fn hw_address(&self) -> zbus::Result<String>;
#[zbus(property)]
fn groups(&self) -> zbus::Result<Vec<OwnedObjectPath>>;
#[zbus(property)]
fn peers(&self) -> zbus::Result<Vec<OwnedObjectPath>>;
#[zbus(signal)]
fn peer_added(&self, peer: OwnedObjectPath) -> zbus::Result<()>;
#[zbus(signal)]
fn peer_removed(&self, peer: OwnedObjectPath) -> zbus::Result<()>;
}