Continue to work on bindings, including NetworkManager::activate_connection
This commit is contained in:
parent
0168219a78
commit
6dd7eb9da4
8 changed files with 77 additions and 8 deletions
|
|
@ -1,93 +0,0 @@
|
|||
// 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>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue