cecd_proxy/
cec_device1.rs1use zbus::proxy;
15#[proxy(
16 interface = "com.steampowered.CecDaemon1.CecDevice1",
17 default_service = "com.steampowered.CecDaemon1",
18 assume_defaults = true
19)]
20pub trait CecDevice1 {
21 fn get_audio_status(&self, target: u8) -> zbus::Result<(u8, bool)>;
23
24 fn mute(&self, target: u8) -> zbus::Result<()>;
26
27 fn poll(&self, target: u8) -> zbus::Result<()>;
29
30 fn press_once_user_control(&self, button: &[u8], target: u8) -> zbus::Result<()>;
32
33 fn press_user_control(&self, button: &[u8], target: u8) -> zbus::Result<()>;
35
36 fn release_user_control(&self, target: u8) -> zbus::Result<()>;
38
39 fn send_raw_message(&self, raw_message: &[u8], target: u8) -> zbus::Result<u32>;
41
42 fn send_receive_raw_message(
44 &self,
45 raw_message: &[u8],
46 target: u8,
47 opcode: u8,
48 timeout: u16,
49 ) -> zbus::Result<Vec<u8>>;
50
51 fn set_active_source(&self, phys_addr: i32) -> zbus::Result<()>;
53
54 fn set_osd_name(&self, name: &str) -> zbus::Result<()>;
56
57 fn standby(&self, target: u8) -> zbus::Result<()>;
59
60 fn volume_down(&self, target: u8) -> zbus::Result<()>;
62
63 fn volume_up(&self, target: u8) -> zbus::Result<()>;
65
66 fn wake(&self) -> zbus::Result<()>;
68
69 #[zbus(signal)]
71 fn received_message(
72 &self,
73 initiator: u8,
74 destination: u8,
75 timestamp: u64,
76 message: Vec<u8>,
77 ) -> zbus::Result<()>;
78
79 #[zbus(signal)]
81 fn user_control_pressed(&self, button: Vec<u8>, initiator: u8) -> zbus::Result<()>;
82
83 #[zbus(signal)]
85 fn user_control_released(&self, initiator: u8) -> zbus::Result<()>;
86
87 #[zbus(property)]
89 fn active(&self) -> zbus::Result<bool>;
90
91 #[zbus(property)]
93 fn logical_addresses(&self) -> zbus::Result<Vec<u8>>;
94
95 #[zbus(property)]
97 fn physical_address(&self) -> zbus::Result<u16>;
98
99 #[zbus(property)]
101 fn vendor_id(&self) -> zbus::Result<i32>;
102}