mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-13 18:02:00 -04:00
job: Add JobManagerInterface to emit JobStarted signal
This adds the JobManagerInterface helper object to emit a signal when a job is started. It also renames the job prefix to be its own path so that the JobManagerInterface can claim that as an object.
This commit is contained in:
parent
8412adcd4a
commit
8e3fc1afeb
4 changed files with 100 additions and 9 deletions
11
src/proxy.rs
11
src/proxy.rs
|
@ -176,3 +176,14 @@ trait Job {
|
|||
/// Wait method
|
||||
fn wait(&self) -> zbus::Result<i32>;
|
||||
}
|
||||
|
||||
#[proxy(
|
||||
default_service = "com.steampowered.SteamOSManager1",
|
||||
default_path = "/com/steampowered/SteamOSManager1/Jobs",
|
||||
interface = "com.steampowered.SteamOSManager1.JobManager"
|
||||
)]
|
||||
trait JobManager {
|
||||
/// JobStarted signal
|
||||
#[zbus(signal)]
|
||||
fn job_started(&self, job: zbus::zvariant::ObjectPath<'_>) -> zbus::Result<()>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue