Skip to content

Commit ac2e0c4

Browse files
committed
tacd: dbus: rauc: re-introspect services
RAUC is in the process of adding native update polling support. Re-introspect the dbus service to add the new APIs. Signed-off-by: Leonard Göhrs <[email protected]>
1 parent 965fdd0 commit ac2e0c4

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

src/dbus/rauc.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ mod installer;
4343
#[cfg(not(feature = "demo_mode"))]
4444
use installer::InstallerProxy;
4545

46+
#[cfg(not(feature = "demo_mode"))]
47+
mod poller;
48+
4649
#[cfg(feature = "demo_mode")]
4750
mod imports {
4851
use std::collections::HashMap;

src/dbus/rauc/installer.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ use zbus::proxy;
1010
default_path = "/"
1111
)]
1212
trait Installer {
13+
/// GetArtifactStatus method
14+
fn get_artifact_status(
15+
&self,
16+
) -> zbus::Result<Vec<std::collections::HashMap<String, zbus::zvariant::OwnedValue>>>;
17+
1318
/// GetPrimary method
1419
fn get_primary(&self) -> zbus::Result<String>;
1520

src/dbus/rauc/poller.rs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//! This code was generated by `zbus-xmlgen` `4.1.0` from DBus introspection data.
2+
//!
3+
//! By running `zbus-xmlgen system de.pengutronix.rauc /` on the LXA TAC.
4+
5+
use zbus::proxy;
6+
7+
#[proxy(
8+
interface = "de.pengutronix.rauc.Poller",
9+
default_service = "de.pengutronix.rauc",
10+
default_path = "/"
11+
)]
12+
trait Poller {
13+
/// Poll method
14+
fn poll(&self) -> zbus::Result<()>;
15+
16+
/// NextPoll property
17+
#[zbus(property)]
18+
fn next_poll(&self) -> zbus::Result<i64>;
19+
20+
/// Status property
21+
#[zbus(property)]
22+
fn status(&self)
23+
-> zbus::Result<std::collections::HashMap<String, zbus::zvariant::OwnedValue>>;
24+
}

0 commit comments

Comments
 (0)