summaryrefslogtreecommitdiff
path: root/src/core/scope.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-11-23 20:15:48 +0100
committerLennart Poettering <lennart@poettering.net>2017-11-23 21:47:48 +0100
commit371c0b794e8e677bf792db392991ade30c48245c (patch)
treeff7ce29cb0f6d60e4dec65ef331b9721c75d1086 /src/core/scope.h
parentf2c49c86582300e5fadc0297b29230d4caa1d8fa (diff)
downloadsystemd-371c0b794e8e677bf792db392991ade30c48245c.tar.gz
core: track scope controllers on the bus
This watches controllers on the bus, and unsets them automatically when they disappear. Note that this is primarily a cosmetical fix. Since unique bus names are not recycled, there's strictly no need to forget about them, but it's a lot nicer to do so.
Diffstat (limited to 'src/core/scope.h')
-rw-r--r--src/core/scope.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/scope.h b/src/core/scope.h
index 7e8c47dd42..ca7c6c868f 100644
--- a/src/core/scope.h
+++ b/src/core/scope.h
@@ -46,6 +46,8 @@ struct Scope {
usec_t timeout_stop_usec;
char *controller;
+ sd_bus_track *controller_track;
+
bool was_abandoned;
sd_event_source *timer_event_source;