mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-18 04:06:47 -04:00
Split into workspaces, move proxy module into its own crate
This commit is contained in:
parent
9ddfde23e6
commit
46dc187b34
56 changed files with 127 additions and 106 deletions
|
@ -1,31 +0,0 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.CpuScaling1`
|
||||
//!
|
||||
//! This code was generated by `zbus-xmlgen` `5.0.1` 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.CpuScaling1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait CpuScaling1 {
|
||||
/// AvailableCpuScalingGovernors property
|
||||
#[zbus(property)]
|
||||
fn available_cpu_scaling_governors(&self) -> zbus::Result<Vec<String>>;
|
||||
|
||||
/// CpuScalingGovernor property
|
||||
#[zbus(property)]
|
||||
fn cpu_scaling_governor(&self) -> zbus::Result<String>;
|
||||
#[zbus(property)]
|
||||
fn set_cpu_scaling_governor(&self, value: &str) -> zbus::Result<()>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue