diff --git a/networkmanager/src/interface/connection.rs b/networkmanager/src/interface/connection.rs new file mode 100644 index 0000000..7f3cd38 --- /dev/null +++ b/networkmanager/src/interface/connection.rs @@ -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; + + /// Default property + #[dbus_proxy(property)] + fn default(&self) -> zbus::Result; + + /// Default6 property + #[dbus_proxy(property)] + fn default6(&self) -> zbus::Result; + + /// Devices property + #[dbus_proxy(property)] + fn devices(&self) -> zbus::Result>; + + /// Dhcp4Config property + #[dbus_proxy(property)] + fn dhcp4_config(&self) -> zbus::Result; + + /// Dhcp6Config property + #[dbus_proxy(property)] + fn dhcp6_config(&self) -> zbus::Result; + + /// Id property + #[dbus_proxy(property)] + fn id(&self) -> zbus::Result; + + /// Ip4Config property + #[dbus_proxy(property)] + fn ip4_config(&self) -> zbus::Result; + + /// Ip6Config property + #[dbus_proxy(property)] + fn ip6_config(&self) -> zbus::Result; + + /// Master property + #[dbus_proxy(property)] + fn master(&self) -> zbus::Result; + + /// SpecificObject property + #[dbus_proxy(property)] + fn specific_object(&self) -> zbus::Result; + + /// State property + #[dbus_proxy(property)] + fn state(&self) -> zbus::Result; + + /// StateFlags property + #[dbus_proxy(property)] + fn state_flags(&self) -> zbus::Result; + + /// Type property + #[dbus_proxy(property)] + fn type_(&self) -> zbus::Result; + + /// Uuid property + #[dbus_proxy(property)] + fn uuid(&self) -> zbus::Result; + + /// Vpn property + #[dbus_proxy(property)] + fn vpn(&self) -> zbus::Result; +} diff --git a/networkmanager/src/interface/device/bluetooth.rs b/networkmanager/src/interface/device/bluetooth.rs new file mode 100644 index 0000000..780186b --- /dev/null +++ b/networkmanager/src/interface/device/bluetooth.rs @@ -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; + + /// HwAddress property + #[dbus_proxy(property)] + fn hw_address(&self) -> zbus::Result; + + /// Name property + #[dbus_proxy(property)] + fn name(&self) -> zbus::Result; +}