mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-17 11:46:46 -04:00
manager/user: Add interface for remote relay interfaces
This commit is contained in:
parent
29ffb42a4e
commit
19d7e3e7c4
5 changed files with 465 additions and 18 deletions
35
steamos-manager-proxy/src/remote_interface1.rs
Normal file
35
steamos-manager-proxy/src/remote_interface1.rs
Normal file
|
@ -0,0 +1,35 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.RemoteInterface1`
|
||||
//!
|
||||
//! This code was generated by `zbus-xmlgen` `5.1.0` from D-Bus introspection data.
|
||||
//! Source: `com.steampowered.SteamOSManager1.xml`.
|
||||
//!
|
||||
//! You may prefer to adapt it, instead of using it verbatim.
|
||||
//!
|
||||
//! More information can be found in the [Writing a client proxy] section of the zbus
|
||||
//! documentation.
|
||||
//!
|
||||
//!
|
||||
//! [Writing a client proxy]: https://dbus2.github.io/zbus/client.html
|
||||
//! [D-Bus standard interfaces]: https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces,
|
||||
use zbus::proxy;
|
||||
#[proxy(
|
||||
interface = "com.steampowered.SteamOSManager1.RemoteInterface1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait RemoteInterface1 {
|
||||
/// RegisterInterface method
|
||||
fn register_interface(
|
||||
&self,
|
||||
interface: &str,
|
||||
object: &zbus::zvariant::ObjectPath<'_>,
|
||||
) -> zbus::Result<bool>;
|
||||
|
||||
/// UnregisterInterface method
|
||||
fn unregister_interface(&self, interface: &str) -> zbus::Result<bool>;
|
||||
|
||||
/// RemoteInterfaces property
|
||||
#[zbus(property)]
|
||||
fn remote_interfaces(&self) -> zbus::Result<Vec<String>>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue