#![allow(clippy::type_complexity)]
use zbus::{proxy, zvariant::OwnedObjectPath};
#[proxy(
interface = "org.freedesktop.Avahi.Server",
default_service = "org.freedesktop.Avahi",
default_path = "/org/freedesktop/Avahi"
)]
pub trait Server {
fn address_resolver_new(
&self,
interface: i32,
protocol: i32,
address: &str,
flags: u32,
) -> zbus::Result<OwnedObjectPath>;
fn domain_browser_new(
&self,
interface: i32,
protocol: i32,
domain: &str,
btype: i32,
flags: u32,
) -> zbus::Result<OwnedObjectPath>;
fn entry_group_new(&self) -> zbus::Result<OwnedObjectPath>;
#[zbus(name = "GetAPIVersion")]
fn get_apiversion(&self) -> zbus::Result<u32>;
fn get_alternative_host_name(&self, name: &str) -> zbus::Result<String>;
fn get_alternative_service_name(&self, name: &str) -> zbus::Result<String>;
fn get_domain_name(&self) -> zbus::Result<String>;
fn get_host_name(&self) -> zbus::Result<String>;
fn get_host_name_fqdn(&self) -> zbus::Result<String>;
fn get_local_service_cookie(&self) -> zbus::Result<u32>;
fn get_network_interface_index_by_name(&self, name: &str) -> zbus::Result<i32>;
fn get_network_interface_name_by_index(&self, index: i32) -> zbus::Result<String>;
fn get_state(&self) -> zbus::Result<i32>;
fn get_version_string(&self) -> zbus::Result<String>;
fn host_name_resolver_new(
&self,
interface: i32,
protocol: i32,
name: &str,
aprotocol: i32,
flags: u32,
) -> zbus::Result<OwnedObjectPath>;
#[zbus(name = "IsNSSSupportAvailable")]
fn is_nsssupport_available(&self) -> zbus::Result<bool>;
#[allow(clippy::too_many_arguments)]
fn record_browser_new(
&self,
interface: i32,
protocol: i32,
name: &str,
clazz: u16,
type_: u16,
flags: u32,
) -> zbus::Result<OwnedObjectPath>;
#[allow(clippy::too_many_arguments)]
fn resolve_address(
&self,
interface: i32,
protocol: i32,
address: &str,
flags: u32,
) -> zbus::Result<(i32, i32, i32, String, String, u32)>;
#[allow(clippy::too_many_arguments)]
fn resolve_host_name(
&self,
interface: i32,
protocol: i32,
name: &str,
aprotocol: i32,
flags: u32,
) -> zbus::Result<(i32, i32, String, i32, String, u32)>;
#[allow(clippy::too_many_arguments)]
fn resolve_service(
&self,
interface: i32,
protocol: i32,
name: &str,
type_: &str,
domain: &str,
aprotocol: i32,
flags: u32,
) -> zbus::Result<(
i32,
i32,
String,
String,
String,
String,
i32,
String,
u16,
Vec<Vec<u8>>,
u32,
)>;
fn service_browser_new(
&self,
interface: i32,
protocol: i32,
type_: &str,
domain: &str,
flags: u32,
) -> zbus::Result<OwnedObjectPath>;
#[allow(clippy::too_many_arguments)]
fn service_resolver_new(
&self,
interface: i32,
protocol: i32,
name: &str,
type_: &str,
domain: &str,
aprotocol: i32,
flags: u32,
) -> zbus::Result<OwnedObjectPath>;
fn service_type_browser_new(
&self,
interface: i32,
protocol: i32,
domain: &str,
flags: u32,
) -> zbus::Result<OwnedObjectPath>;
fn set_host_name(&self, name: &str) -> zbus::Result<()>;
#[zbus(signal)]
fn state_changed(&self, state: i32, error: &str) -> zbus::Result<()>;
}