mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-17 19:56:41 -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
8
steamos-manager-proxy/Cargo.toml
Normal file
8
steamos-manager-proxy/Cargo.toml
Normal file
|
@ -0,0 +1,8 @@
|
|||
[package]
|
||||
name = "steamos-manager-proxy"
|
||||
version = "25.6.1"
|
||||
edition = "2021"
|
||||
repository = "https://gitlab.steamos.cloud/holo/steamos-manager/"
|
||||
|
||||
[dependencies]
|
||||
zbus = { version = "5", default-features = false, features = ["tokio"] }
|
25
steamos-manager-proxy/src/ambient_light_sensor1.rs
Normal file
25
steamos-manager-proxy/src/ambient_light_sensor1.rs
Normal file
|
@ -0,0 +1,25 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.AmbientLightSensor1`
|
||||
//!
|
||||
//! 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.AmbientLightSensor1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait AmbientLightSensor1 {
|
||||
/// AlsCalibrationGain property
|
||||
#[zbus(property)]
|
||||
fn als_calibration_gain(&self) -> zbus::Result<Vec<f64>>;
|
||||
}
|
31
steamos-manager-proxy/src/battery_charge_limit1.rs
Normal file
31
steamos-manager-proxy/src/battery_charge_limit1.rs
Normal file
|
@ -0,0 +1,31 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.BatteryChargeLimit1`
|
||||
//!
|
||||
//! 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.BatteryChargeLimit1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait BatteryChargeLimit1 {
|
||||
/// MaxChargeLevel property
|
||||
#[zbus(property)]
|
||||
fn max_charge_level(&self) -> zbus::Result<i32>;
|
||||
#[zbus(property)]
|
||||
fn set_max_charge_level(&self, value: i32) -> zbus::Result<()>;
|
||||
|
||||
/// SuggestedMinimumLimit property
|
||||
#[zbus(property)]
|
||||
fn suggested_minimum_limit(&self) -> zbus::Result<i32>;
|
||||
}
|
31
steamos-manager-proxy/src/cpu_scaling1.rs
Normal file
31
steamos-manager-proxy/src/cpu_scaling1.rs
Normal file
|
@ -0,0 +1,31 @@
|
|||
//! # 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<()>;
|
||||
}
|
24
steamos-manager-proxy/src/factory_reset1.rs
Normal file
24
steamos-manager-proxy/src/factory_reset1.rs
Normal file
|
@ -0,0 +1,24 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.FactoryReset1`
|
||||
//!
|
||||
//! 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.FactoryReset1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait FactoryReset1 {
|
||||
/// PrepareFactoryReset method
|
||||
fn prepare_factory_reset(&self, kind: u32) -> zbus::Result<u32>;
|
||||
}
|
27
steamos-manager-proxy/src/fan_control1.rs
Normal file
27
steamos-manager-proxy/src/fan_control1.rs
Normal file
|
@ -0,0 +1,27 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.FanControl1`
|
||||
//!
|
||||
//! 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.FanControl1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait FanControl1 {
|
||||
/// FanControlState property
|
||||
#[zbus(property)]
|
||||
fn fan_control_state(&self) -> zbus::Result<u32>;
|
||||
#[zbus(property)]
|
||||
fn set_fan_control_state(&self, value: u32) -> zbus::Result<()>;
|
||||
}
|
45
steamos-manager-proxy/src/gpu_performance_level1.rs
Normal file
45
steamos-manager-proxy/src/gpu_performance_level1.rs
Normal file
|
@ -0,0 +1,45 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.GpuPerformanceLevel1`
|
||||
//!
|
||||
//! 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.GpuPerformanceLevel1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait GpuPerformanceLevel1 {
|
||||
/// AvailableGpuPerformanceLevels property
|
||||
#[zbus(property)]
|
||||
fn available_gpu_performance_levels(&self) -> zbus::Result<Vec<String>>;
|
||||
|
||||
/// GpuPerformanceLevel property
|
||||
#[zbus(property)]
|
||||
fn gpu_performance_level(&self) -> zbus::Result<String>;
|
||||
#[zbus(property)]
|
||||
fn set_gpu_performance_level(&self, value: &str) -> zbus::Result<()>;
|
||||
|
||||
/// ManualGpuClock property
|
||||
#[zbus(property)]
|
||||
fn manual_gpu_clock(&self) -> zbus::Result<u32>;
|
||||
#[zbus(property)]
|
||||
fn set_manual_gpu_clock(&self, value: u32) -> zbus::Result<()>;
|
||||
|
||||
/// ManualGpuClockMax property
|
||||
#[zbus(property)]
|
||||
fn manual_gpu_clock_max(&self) -> zbus::Result<u32>;
|
||||
|
||||
/// ManualGpuClockMin property
|
||||
#[zbus(property)]
|
||||
fn manual_gpu_clock_min(&self) -> zbus::Result<u32>;
|
||||
}
|
31
steamos-manager-proxy/src/gpu_power_profile1.rs
Normal file
31
steamos-manager-proxy/src/gpu_power_profile1.rs
Normal file
|
@ -0,0 +1,31 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.GpuPowerProfile1`
|
||||
//!
|
||||
//! 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.GpuPowerProfile1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait GpuPowerProfile1 {
|
||||
/// AvailableGpuPowerProfiles property
|
||||
#[zbus(property)]
|
||||
fn available_gpu_power_profiles(&self) -> zbus::Result<Vec<String>>;
|
||||
|
||||
/// GpuPowerProfile property
|
||||
#[zbus(property)]
|
||||
fn gpu_power_profile(&self) -> zbus::Result<String>;
|
||||
#[zbus(property)]
|
||||
fn set_gpu_power_profile(&self, value: &str) -> zbus::Result<()>;
|
||||
}
|
27
steamos-manager-proxy/src/hdmi_cec1.rs
Normal file
27
steamos-manager-proxy/src/hdmi_cec1.rs
Normal file
|
@ -0,0 +1,27 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.HdmiCec1`
|
||||
//!
|
||||
//! 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.HdmiCec1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait HdmiCec1 {
|
||||
/// HdmiCecState property
|
||||
#[zbus(property)]
|
||||
fn hdmi_cec_state(&self) -> zbus::Result<u32>;
|
||||
#[zbus(property)]
|
||||
fn set_hdmi_cec_state(&self, value: u32) -> zbus::Result<()>;
|
||||
}
|
35
steamos-manager-proxy/src/job1.rs
Normal file
35
steamos-manager-proxy/src/job1.rs
Normal file
|
@ -0,0 +1,35 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.Job1`
|
||||
//!
|
||||
//! 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.Job1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait Job1 {
|
||||
/// Cancel method
|
||||
fn cancel(&self, force: bool) -> zbus::Result<()>;
|
||||
|
||||
/// ExitCode method
|
||||
fn exit_code(&self) -> zbus::Result<i32>;
|
||||
|
||||
/// Pause method
|
||||
fn pause(&self) -> zbus::Result<()>;
|
||||
|
||||
/// Resume method
|
||||
fn resume(&self) -> zbus::Result<()>;
|
||||
|
||||
/// Wait method
|
||||
fn wait(&self) -> zbus::Result<i32>;
|
||||
}
|
25
steamos-manager-proxy/src/job_manager1.rs
Normal file
25
steamos-manager-proxy/src/job_manager1.rs
Normal file
|
@ -0,0 +1,25 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.JobManager1`
|
||||
//!
|
||||
//! 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.JobManager1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1/Jobs",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait JobManager1 {
|
||||
/// JobStarted signal
|
||||
#[zbus(signal)]
|
||||
fn job_started(&self, job: zbus::zvariant::ObjectPath<'_>) -> zbus::Result<()>;
|
||||
}
|
62
steamos-manager-proxy/src/lib.rs
Normal file
62
steamos-manager-proxy/src/lib.rs
Normal file
|
@ -0,0 +1,62 @@
|
|||
/*
|
||||
* Copyright © 2023 Collabora Ltd.
|
||||
* Copyright © 2024 Valve Software
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#![allow(clippy::module_name_repetitions)]
|
||||
|
||||
// Re-export relevant proxies
|
||||
|
||||
// Deprecated interface
|
||||
mod manager;
|
||||
pub use crate::manager::ManagerProxy;
|
||||
|
||||
// Optional interfaces
|
||||
mod ambient_light_sensor1;
|
||||
mod battery_charge_limit1;
|
||||
mod cpu_scaling1;
|
||||
mod factory_reset1;
|
||||
mod fan_control1;
|
||||
mod gpu_performance_level1;
|
||||
mod gpu_power_profile1;
|
||||
mod hdmi_cec1;
|
||||
mod low_power_mode1;
|
||||
mod manager2;
|
||||
mod performance_profile1;
|
||||
mod screenreader0;
|
||||
mod storage1;
|
||||
mod tdp_limit1;
|
||||
mod update_bios1;
|
||||
mod update_dock1;
|
||||
mod wifi_debug1;
|
||||
mod wifi_debug_dump1;
|
||||
mod wifi_power_management1;
|
||||
pub use crate::ambient_light_sensor1::AmbientLightSensor1Proxy;
|
||||
pub use crate::battery_charge_limit1::BatteryChargeLimit1Proxy;
|
||||
pub use crate::cpu_scaling1::CpuScaling1Proxy;
|
||||
pub use crate::factory_reset1::FactoryReset1Proxy;
|
||||
pub use crate::fan_control1::FanControl1Proxy;
|
||||
pub use crate::gpu_performance_level1::GpuPerformanceLevel1Proxy;
|
||||
pub use crate::gpu_power_profile1::GpuPowerProfile1Proxy;
|
||||
pub use crate::hdmi_cec1::HdmiCec1Proxy;
|
||||
pub use crate::low_power_mode1::LowPowerMode1Proxy;
|
||||
pub use crate::manager2::Manager2Proxy;
|
||||
pub use crate::performance_profile1::PerformanceProfile1Proxy;
|
||||
pub use crate::screenreader0::ScreenReader0Proxy;
|
||||
pub use crate::storage1::Storage1Proxy;
|
||||
pub use crate::tdp_limit1::TdpLimit1Proxy;
|
||||
pub use crate::update_bios1::UpdateBios1Proxy;
|
||||
pub use crate::update_dock1::UpdateDock1Proxy;
|
||||
pub use crate::wifi_debug1::WifiDebug1Proxy;
|
||||
pub use crate::wifi_debug_dump1::WifiDebugDump1Proxy;
|
||||
pub use crate::wifi_power_management1::WifiPowerManagement1Proxy;
|
||||
|
||||
// Sub-interfaces
|
||||
mod job1;
|
||||
mod job_manager1;
|
||||
mod udev_events1;
|
||||
pub use crate::job1::Job1Proxy;
|
||||
pub use crate::job_manager1::JobManager1Proxy;
|
||||
pub use crate::udev_events1::UdevEvents1Proxy;
|
27
steamos-manager-proxy/src/low_power_mode1.rs
Normal file
27
steamos-manager-proxy/src/low_power_mode1.rs
Normal file
|
@ -0,0 +1,27 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.LowPowerMode1`
|
||||
//!
|
||||
//! This code was generated by `zbus-xmlgen` `4.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.LowPowerMode1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait LowPowerMode1 {
|
||||
/// EnterDownloadMode method
|
||||
fn enter_download_mode(&self, identifier: &str) -> zbus::Result<zbus::zvariant::OwnedFd>;
|
||||
|
||||
/// ListDownloadModeHandles method
|
||||
fn list_download_mode_handles(&self) -> zbus::Result<std::collections::HashMap<String, u32>>;
|
||||
}
|
42
steamos-manager-proxy/src/manager.rs
Normal file
42
steamos-manager-proxy/src/manager.rs
Normal file
|
@ -0,0 +1,42 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.Manager`
|
||||
//!
|
||||
//! This code was generated by `zbus-xmlgen` `5.0.1` from D-Bus introspection data.
|
||||
//! Source: `com.steampowered.SteamOSManager1.Manager.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.Manager",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait Manager {
|
||||
/// SetWifiDebugMode method
|
||||
fn set_wifi_debug_mode(&self, mode: u32, buffer_size: u32) -> zbus::Result<()>;
|
||||
|
||||
/// TdpLimitMin property
|
||||
#[zbus(property)]
|
||||
fn tdp_limit_min(&self) -> zbus::Result<u32>;
|
||||
|
||||
/// Version property
|
||||
#[zbus(property)]
|
||||
fn version(&self) -> zbus::Result<u32>;
|
||||
|
||||
/// WifiBackend property
|
||||
#[zbus(property)]
|
||||
fn wifi_backend(&self) -> zbus::Result<u32>;
|
||||
#[zbus(property)]
|
||||
fn set_wifi_backend(&self, value: u32) -> zbus::Result<()>;
|
||||
|
||||
/// WifiDebugModeState property
|
||||
#[zbus(property)]
|
||||
fn wifi_debug_mode_state(&self) -> zbus::Result<u32>;
|
||||
}
|
28
steamos-manager-proxy/src/manager2.rs
Normal file
28
steamos-manager-proxy/src/manager2.rs
Normal file
|
@ -0,0 +1,28 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.Manager2`
|
||||
//!
|
||||
//! 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.Manager2",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait Manager2 {
|
||||
/// ReloadConfig method
|
||||
fn reload_config(&self) -> zbus::Result<()>;
|
||||
|
||||
/// DeviceModel property
|
||||
#[zbus(property)]
|
||||
fn device_model(&self) -> zbus::Result<(String, String)>;
|
||||
}
|
35
steamos-manager-proxy/src/performance_profile1.rs
Normal file
35
steamos-manager-proxy/src/performance_profile1.rs
Normal file
|
@ -0,0 +1,35 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.PerformanceProfile1`
|
||||
//!
|
||||
//! 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.PerformanceProfile1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait PerformanceProfile1 {
|
||||
/// AvailablePerformanceProfiles property
|
||||
#[zbus(property)]
|
||||
fn available_performance_profiles(&self) -> zbus::Result<Vec<String>>;
|
||||
|
||||
/// PerformanceProfile property
|
||||
#[zbus(property)]
|
||||
fn performance_profile(&self) -> zbus::Result<String>;
|
||||
#[zbus(property)]
|
||||
fn set_performance_profile(&self, value: &str) -> zbus::Result<()>;
|
||||
|
||||
/// SuggestedDefaultPerformanceProfile property
|
||||
#[zbus(property)]
|
||||
fn suggested_default_performance_profile(&self) -> zbus::Result<String>;
|
||||
}
|
68
steamos-manager-proxy/src/screenreader0.rs
Normal file
68
steamos-manager-proxy/src/screenreader0.rs
Normal file
|
@ -0,0 +1,68 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.ScreenReader0`
|
||||
//!
|
||||
//! 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.ScreenReader0",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait ScreenReader0 {
|
||||
/// TriggerAction method
|
||||
fn trigger_action(&self, action: u32, timestamp: u64) -> zbus::Result<()>;
|
||||
|
||||
/// Enabled property
|
||||
#[zbus(property)]
|
||||
fn enabled(&self) -> zbus::Result<bool>;
|
||||
#[zbus(property)]
|
||||
fn set_enabled(&self, value: bool) -> zbus::Result<()>;
|
||||
|
||||
/// Mode property
|
||||
#[zbus(property)]
|
||||
fn mode(&self) -> zbus::Result<u32>;
|
||||
#[zbus(property)]
|
||||
fn set_mode(&self, value: u32) -> zbus::Result<()>;
|
||||
|
||||
/// Pitch property
|
||||
#[zbus(property)]
|
||||
fn pitch(&self) -> zbus::Result<f64>;
|
||||
#[zbus(property)]
|
||||
fn set_pitch(&self, value: f64) -> zbus::Result<()>;
|
||||
|
||||
/// Rate property
|
||||
#[zbus(property)]
|
||||
fn rate(&self) -> zbus::Result<f64>;
|
||||
#[zbus(property)]
|
||||
fn set_rate(&self, value: f64) -> zbus::Result<()>;
|
||||
|
||||
/// Voice property
|
||||
#[zbus(property)]
|
||||
fn voice(&self) -> zbus::Result<String>;
|
||||
#[zbus(property)]
|
||||
fn set_voice(&self, value: &str) -> zbus::Result<()>;
|
||||
|
||||
/// VoiceLocales property
|
||||
#[zbus(property)]
|
||||
fn voice_locales(&self) -> zbus::Result<Vec<String>>;
|
||||
|
||||
/// VoicesForLocale property
|
||||
#[zbus(property)]
|
||||
fn voices_for_locale(&self) -> zbus::Result<std::collections::HashMap<String, Vec<String>>>;
|
||||
|
||||
/// Volume property
|
||||
#[zbus(property)]
|
||||
fn volume(&self) -> zbus::Result<f64>;
|
||||
#[zbus(property)]
|
||||
fn set_volume(&self, value: f64) -> zbus::Result<()>;
|
||||
}
|
32
steamos-manager-proxy/src/storage1.rs
Normal file
32
steamos-manager-proxy/src/storage1.rs
Normal file
|
@ -0,0 +1,32 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.Storage1`
|
||||
//!
|
||||
//! 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.Storage1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait Storage1 {
|
||||
/// FormatDevice method
|
||||
fn format_device(
|
||||
&self,
|
||||
device: &str,
|
||||
label: &str,
|
||||
validate: bool,
|
||||
) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
|
||||
|
||||
/// TrimDevices method
|
||||
fn trim_devices(&self) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
|
||||
}
|
35
steamos-manager-proxy/src/tdp_limit1.rs
Normal file
35
steamos-manager-proxy/src/tdp_limit1.rs
Normal file
|
@ -0,0 +1,35 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.TdpLimit1`
|
||||
//!
|
||||
//! 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.TdpLimit1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait TdpLimit1 {
|
||||
/// TdpLimit property
|
||||
#[zbus(property)]
|
||||
fn tdp_limit(&self) -> zbus::Result<u32>;
|
||||
#[zbus(property)]
|
||||
fn set_tdp_limit(&self, value: u32) -> zbus::Result<()>;
|
||||
|
||||
/// TdpLimitMax property
|
||||
#[zbus(property)]
|
||||
fn tdp_limit_max(&self) -> zbus::Result<u32>;
|
||||
|
||||
/// TdpLimitMin property
|
||||
#[zbus(property)]
|
||||
fn tdp_limit_min(&self) -> zbus::Result<u32>;
|
||||
}
|
25
steamos-manager-proxy/src/udev_events1.rs
Normal file
25
steamos-manager-proxy/src/udev_events1.rs
Normal file
|
@ -0,0 +1,25 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.UdevEvents1`
|
||||
//!
|
||||
//! 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.UdevEvents1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait UdevEvents1 {
|
||||
/// UsbOverCurrent signal
|
||||
#[zbus(signal)]
|
||||
fn usb_over_current(&self, devpath: &str, port: &str, count: u64) -> zbus::Result<()>;
|
||||
}
|
24
steamos-manager-proxy/src/update_bios1.rs
Normal file
24
steamos-manager-proxy/src/update_bios1.rs
Normal file
|
@ -0,0 +1,24 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.UpdateBios1`
|
||||
//!
|
||||
//! 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.UpdateBios1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait UpdateBios1 {
|
||||
/// UpdateBios method
|
||||
fn update_bios(&self) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
|
||||
}
|
24
steamos-manager-proxy/src/update_dock1.rs
Normal file
24
steamos-manager-proxy/src/update_dock1.rs
Normal file
|
@ -0,0 +1,24 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.UpdateDock1`
|
||||
//!
|
||||
//! 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.UpdateDock1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait UpdateDock1 {
|
||||
/// UpdateDock method
|
||||
fn update_dock(&self) -> zbus::Result<zbus::zvariant::OwnedObjectPath>;
|
||||
}
|
41
steamos-manager-proxy/src/wifi_debug1.rs
Normal file
41
steamos-manager-proxy/src/wifi_debug1.rs
Normal file
|
@ -0,0 +1,41 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.WifiDebug1`
|
||||
//!
|
||||
//! 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.WifiDebug1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait WifiDebug1 {
|
||||
/// CaptureDebugTraceOutput method
|
||||
fn capture_debug_trace_output(&self) -> zbus::Result<String>;
|
||||
|
||||
/// SetWifiDebugMode method
|
||||
fn set_wifi_debug_mode(
|
||||
&self,
|
||||
mode: u32,
|
||||
options: std::collections::HashMap<&str, &zbus::zvariant::Value<'_>>,
|
||||
) -> zbus::Result<()>;
|
||||
|
||||
/// WifiBackend property
|
||||
#[zbus(property)]
|
||||
fn wifi_backend(&self) -> zbus::Result<String>;
|
||||
#[zbus(property)]
|
||||
fn set_wifi_backend(&self, value: &str) -> zbus::Result<()>;
|
||||
|
||||
/// WifiDebugModeState property
|
||||
#[zbus(property)]
|
||||
fn wifi_debug_mode_state(&self) -> zbus::Result<u32>;
|
||||
}
|
24
steamos-manager-proxy/src/wifi_debug_dump1.rs
Normal file
24
steamos-manager-proxy/src/wifi_debug_dump1.rs
Normal file
|
@ -0,0 +1,24 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.WifiDebugDump1`
|
||||
//!
|
||||
//! 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.WifiDebugDump1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait WifiDebugDump1 {
|
||||
/// GenerateDebugDump method
|
||||
fn generate_debug_dump(&self) -> zbus::Result<String>;
|
||||
}
|
27
steamos-manager-proxy/src/wifi_power_management1.rs
Normal file
27
steamos-manager-proxy/src/wifi_power_management1.rs
Normal file
|
@ -0,0 +1,27 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.WifiPowerManagement1`
|
||||
//!
|
||||
//! 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.WifiPowerManagement1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait WifiPowerManagement1 {
|
||||
/// WifiPowerManagementState property
|
||||
#[zbus(property)]
|
||||
fn wifi_power_management_state(&self) -> zbus::Result<u32>;
|
||||
#[zbus(property)]
|
||||
fn set_wifi_power_management_state(&self, value: u32) -> zbus::Result<()>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue