Forgot to add default_service to some of the new interfaces
This commit is contained in:
parent
d17c660410
commit
cff3029833
2 changed files with 125 additions and 0 deletions
32
networkmanager/src/interface/device/bluetooth.rs
Normal file
32
networkmanager/src/interface/device/bluetooth.rs
Normal 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>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue