diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-08-06 11:25:31 +0300 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-08-06 11:25:31 +0300 |
commit | a6b095186891e9c0fa61a191126977c5eea6f111 (patch) | |
tree | d667bb2afaaef914cbc262e3b6e4220325722bbf /src/core/unit.h | |
parent | d5972272d2b725ab6a2789899f8b6c1d2a8113e3 (diff) | |
parent | bbc2908635ca3ded9162504683fa126809f0ec14 (diff) |
Merge pull request #894 from zonque/name-owner-changed-v2
core: dbus: track bus names per unit (v2)
Diffstat (limited to 'src/core/unit.h')
-rw-r--r-- | src/core/unit.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/unit.h b/src/core/unit.h index e60168267f..9df5a7e6fb 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -115,6 +115,9 @@ struct Unit { /* JOB_NOP jobs are special and can be installed without disturbing the real job. */ Job *nop_job; + /* The slot used for watching NameOwnerChanged signals */ + sd_bus_slot *match_bus_slot; + /* Job timeout and action to take */ usec_t job_timeout; FailureAction job_timeout_action; @@ -522,6 +525,7 @@ void unit_unwatch_all_pids(Unit *u); void unit_tidy_watch_pids(Unit *u, pid_t except1, pid_t except2); +int unit_install_bus_match(sd_bus *bus, Unit *u, const char *name); int unit_watch_bus_name(Unit *u, const char *name); void unit_unwatch_bus_name(Unit *u, const char *name); |