mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-18 04:06:47 -04:00
Bump from ScreenReader0 to ScreenReader1.
Change mode from an enumeration/u32 to a string on DBus interface. Change actions on TriggerAction from u32 to strings also on DBus interface.
This commit is contained in:
parent
77f7305dd3
commit
d1ea6b45e9
5 changed files with 50 additions and 50 deletions
|
@ -25,7 +25,7 @@ mod hdmi_cec1;
|
|||
mod low_power_mode1;
|
||||
mod manager2;
|
||||
mod performance_profile1;
|
||||
mod screenreader0;
|
||||
mod screenreader1;
|
||||
mod storage1;
|
||||
mod tdp_limit1;
|
||||
mod update_bios1;
|
||||
|
@ -44,7 +44,7 @@ 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::screenreader1::ScreenReader1Proxy;
|
||||
pub use crate::storage1::Storage1Proxy;
|
||||
pub use crate::tdp_limit1::TdpLimit1Proxy;
|
||||
pub use crate::update_bios1::UpdateBios1Proxy;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.ScreenReader0`
|
||||
//! # D-Bus interface proxy for: `com.steampowered.SteamOSManager1.ScreenReader1`
|
||||
//!
|
||||
//! This code was generated by `zbus-xmlgen` `5.1.0` from D-Bus introspection data.
|
||||
//! Source: `com.steampowered.SteamOSManager1.xml`.
|
||||
|
@ -13,14 +13,14 @@
|
|||
//! [D-Bus standard interfaces]: https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces,
|
||||
use zbus::proxy;
|
||||
#[proxy(
|
||||
interface = "com.steampowered.SteamOSManager1.ScreenReader0",
|
||||
interface = "com.steampowered.SteamOSManager1.ScreenReader1",
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1",
|
||||
assume_defaults = true
|
||||
)]
|
||||
pub trait ScreenReader0 {
|
||||
pub trait ScreenReader1 {
|
||||
/// TriggerAction method
|
||||
fn trigger_action(&self, action: u32, timestamp: u64) -> zbus::Result<()>;
|
||||
fn trigger_action(&self, action: &str, timestamp: u64) -> zbus::Result<()>;
|
||||
|
||||
/// Enabled property
|
||||
#[zbus(property)]
|
||||
|
@ -30,9 +30,9 @@ pub trait ScreenReader0 {
|
|||
|
||||
/// Mode property
|
||||
#[zbus(property)]
|
||||
fn mode(&self) -> zbus::Result<u32>;
|
||||
fn mode(&self) -> zbus::Result<String>;
|
||||
#[zbus(property)]
|
||||
fn set_mode(&self, value: u32) -> zbus::Result<()>;
|
||||
fn set_mode(&self, value: &str) -> zbus::Result<()>;
|
||||
|
||||
/// Pitch property
|
||||
#[zbus(property)]
|
Loading…
Add table
Add a link
Reference in a new issue