Skip to main content

cecd_proxy/
config1.rs

1//! # D-Bus interface proxy for: `com.steampowered.CecDaemon1.Config1`
2//!
3//! This code was generated by `zbus-xmlgen` `5.1.0` from D-Bus introspection data.
4//! Source: `Interface '/com/steampowered/CecDaemon1/Daemon' from service 'com.steampowered.CecDaemon1' on system bus`.
5//!
6//! You may prefer to adapt it, instead of using it verbatim.
7//!
8//! More information can be found in the [Writing a client proxy] section of the zbus
9//! documentation.
10//!
11//! This type implements the [D-Bus standard interfaces], (`org.freedesktop.DBus.*`) for which the
12//! following zbus API can be used:
13//!
14//! * [`zbus::fdo::PeerProxy`]
15//! * [`zbus::fdo::IntrospectableProxy`]
16//! * [`zbus::fdo::PropertiesProxy`]
17//!
18//! Consequently `zbus-xmlgen` did not generate code for the above interfaces.
19//!
20//! [Writing a client proxy]: https://dbus2.github.io/zbus/client.html
21//! [D-Bus standard interfaces]: https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces,
22use zbus::proxy;
23#[proxy(
24    interface = "com.steampowered.CecDaemon1.Config1",
25    default_service = "com.steampowered.CecDaemon1",
26    default_path = "/com/steampowered/CecDaemon1/Daemon"
27)]
28pub trait Config1 {
29    /// Reload method
30    fn reload(&self) -> zbus::Result<()>;
31
32    /// AllowStandby property
33    #[zbus(property)]
34    fn allow_standby(&self) -> zbus::Result<bool>;
35
36    /// Uinput property
37    #[zbus(property)]
38    fn uinput(&self) -> zbus::Result<bool>;
39
40    /// LogicalAddress property
41    #[zbus(property)]
42    fn logical_address(&self) -> zbus::Result<u8>;
43
44    /// Mappings property
45    #[zbus(property)]
46    fn mappings(&self) -> zbus::Result<Vec<(Vec<u8>, u16)>>;
47
48    /// OsdName property
49    #[zbus(property)]
50    fn osd_name(&self) -> zbus::Result<String>;
51
52    /// SuspendTv property
53    #[zbus(property)]
54    fn suspend_tv(&self) -> zbus::Result<bool>;
55
56    /// VendorId property
57    #[zbus(property)]
58    fn vendor_id(&self) -> zbus::Result<i32>;
59
60    /// WakeTv property
61    #[zbus(property)]
62    fn wake_tv(&self) -> zbus::Result<bool>;
63}