diff options
author | Luca Boccassi <bluca@debian.org> | 2022-08-02 19:49:20 +0100 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2022-08-23 20:38:08 +0100 |
commit | 48b92b37acbd2bf9c36ac5e67961b15723243cda (patch) | |
tree | c9264b37c5d949b8e35d8219fb3eac426cf16f54 /src/core/dbus-job.c | |
parent | f52faaf923acfe6fe3f0955d1ad66840b13babfc (diff) | |
download | systemd-48b92b37acbd2bf9c36ac5e67961b15723243cda.tar.gz |
core: add basic infrastructure to record unit activation information
Not wired in by any unit type yet, just the basic to allocate,
ref, deref and plug in to other unit types.
Includes recording the trigger unit name and passing it to the
triggered unit as TRIGGER_UNIT= env var.
Diffstat (limited to 'src/core/dbus-job.c')
-rw-r--r-- | src/core/dbus-job.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/dbus-job.c b/src/core/dbus-job.c index de474e6d4e..7b1438266b 100644 --- a/src/core/dbus-job.c +++ b/src/core/dbus-job.c @@ -7,6 +7,7 @@ #include "bus-util.h" #include "dbus-job.h" #include "dbus-unit.h" +#include "dbus-util.h" #include "dbus.h" #include "job.h" #include "log.h" @@ -136,6 +137,7 @@ const sd_bus_vtable bus_job_vtable[] = { SD_BUS_PROPERTY("Unit", "(so)", property_get_unit, 0, SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_PROPERTY("JobType", "s", property_get_type, offsetof(Job, type), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_PROPERTY("State", "s", property_get_state, offsetof(Job, state), SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE), + SD_BUS_PROPERTY("ActivationDetails", "a(ss)", bus_property_get_activation_details, offsetof(Job, activation_details), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_VTABLE_END }; |