Skip to main content

cecd_proxy/
daemon1.rs

1//! # D-Bus interface proxy for: `com.steampowered.CecDaemon1.Daemon1`
2//!
3//! This code was generated by `zbus-xmlgen` `5.2.0` from D-Bus introspection data.
4//! Source: `com.steampowered.CecDaemon1.Daemon1.xml`.
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//!
12//! [Writing a client proxy]: https://z-galaxy.github.io/zbus/client.html
13//! [D-Bus standard interfaces]: https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces,
14use zbus::proxy;
15#[proxy(
16    interface = "com.steampowered.CecDaemon1.Daemon1",
17    default_service = "com.steampowered.CecDaemon1",
18    default_path = "/com/steampowered/CecDaemon1/Daemon"
19)]
20pub trait Daemon1 {
21    /// RegisterMessageHandler method
22    fn register_message_handler(
23        &self,
24        opcode: u8,
25        path: &zbus::zvariant::ObjectPath<'_>,
26        ok: bool,
27    ) -> zbus::Result<()>;
28
29    /// Standby method
30    fn standby(&self, force: bool) -> zbus::Result<()>;
31
32    /// UnregisterMessageHandler method
33    fn unregister_message_handler(&self, opcode: u8, ok: bool) -> zbus::Result<()>;
34
35    /// Wake method
36    fn wake(&self) -> zbus::Result<()>;
37
38    /// HandledMessages property
39    #[zbus(property)]
40    fn handled_messages(&self) -> zbus::Result<Vec<u8>>;
41}