Forgot to add default_service to some of the new interfaces

This commit is contained in:
Lucy 2022-01-11 13:43:12 -05:00
parent d17c660410
commit cff3029833
No known key found for this signature in database
GPG key ID: EBC517FAD666BBF1
2 changed files with 125 additions and 0 deletions

View file

@ -0,0 +1,93 @@
// SPDX-License-Identifier: MPL-2.0
//! # DBus interface proxy for: `org.freedesktop.NetworkManager.Connection.Active`
//!
//! This code was generated by `zbus-xmlgen` `2.0.0` from DBus introspection data.
//! Source: `Interface '/org/freedesktop/NetworkManager/ActiveConnection/1' from service 'org.freedesktop.NetworkManager' on system bus`.
//!
//! You may prefer to adapt it, instead of using it verbatim.
//!
//! More information can be found in the
//! [Writing a client proxy](https://dbus.pages.freedesktop.org/zbus/client.html)
//! section of the zbus documentation.
//!
//! This DBus object implements
//! [standard DBus interfaces](https://dbus.freedesktop.org/doc/dbus-specification.html),
//! (`org.freedesktop.DBus.*`) for which the following zbus proxies can be used:
//!
//! * [`zbus::fdo::PropertiesProxy`]
//! * [`zbus::fdo::IntrospectableProxy`]
//! * [`zbus::fdo::PeerProxy`]
//!
//! …consequently `zbus-xmlgen` did not generate code for the above interfaces.
use zbus::dbus_proxy;
#[dbus_proxy(
interface = "org.freedesktop.NetworkManager.Connection.Active",
default_service = "org.freedesktop.NetworkManager"
)]
pub trait ActiveConnection {
/// Connection property
#[dbus_proxy(property)]
fn connection(&self) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// Default property
#[dbus_proxy(property)]
fn default(&self) -> zbus::Result<bool>;
/// Default6 property
#[dbus_proxy(property)]
fn default6(&self) -> zbus::Result<bool>;
/// Devices property
#[dbus_proxy(property)]
fn devices(&self) -> zbus::Result<Vec<zbus::zvariant::OwnedObjectPath>>;
/// Dhcp4Config property
#[dbus_proxy(property)]
fn dhcp4_config(&self) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// Dhcp6Config property
#[dbus_proxy(property)]
fn dhcp6_config(&self) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// Id property
#[dbus_proxy(property)]
fn id(&self) -> zbus::Result<String>;
/// Ip4Config property
#[dbus_proxy(property)]
fn ip4_config(&self) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// Ip6Config property
#[dbus_proxy(property)]
fn ip6_config(&self) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// Master property
#[dbus_proxy(property)]
fn master(&self) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// SpecificObject property
#[dbus_proxy(property)]
fn specific_object(&self) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
/// State property
#[dbus_proxy(property)]
fn state(&self) -> zbus::Result<u32>;
/// StateFlags property
#[dbus_proxy(property)]
fn state_flags(&self) -> zbus::Result<u32>;
/// Type property
#[dbus_proxy(property)]
fn type_(&self) -> zbus::Result<String>;
/// Uuid property
#[dbus_proxy(property)]
fn uuid(&self) -> zbus::Result<String>;
/// Vpn property
#[dbus_proxy(property)]
fn vpn(&self) -> zbus::Result<bool>;
}

View file

@ -0,0 +1,32 @@
// SPDX-License-Identifier: MPL-2.0
//! # DBus interface proxy for: `org.freedesktop.NetworkManager.Device.Bluetooth`
//!
//! This code was generated by `zbus-xmlgen` `2.0.0` from DBus introspection data.
//! Source: `org.freedesktop.NetworkManager.Device.Bluetooth.xml`.
//!
//! You may prefer to adapt it, instead of using it verbatim.
//!
//! More information can be found in the
//! [Writing a client proxy](https://dbus.pages.freedesktop.org/zbus/client.html)
//! section of the zbus documentation.
//!
use zbus::dbus_proxy;
#[dbus_proxy(
interface = "org.freedesktop.NetworkManager.Device.Bluetooth",
default_service = "org.freedesktop.NetworkManager"
)]
pub trait Bluetooth {
/// BtCapabilities property
#[dbus_proxy(property)]
fn bt_capabilities(&self) -> zbus::Result<u32>;
/// HwAddress property
#[dbus_proxy(property)]
fn hw_address(&self) -> zbus::Result<String>;
/// Name property
#[dbus_proxy(property)]
fn name(&self) -> zbus::Result<String>;
}