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,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>;
}