summaryrefslogtreecommitdiff
path: root/src/systemd/sd-bus.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-19 15:54:30 +0100
committerLennart Poettering <lennart@poettering.net>2018-01-05 13:58:32 +0100
commitd7afd945b5aad5b262a3de97614f486d63d94612 (patch)
tree43ffeba1b997d2b9e99dab4b5ece7b9ae5b54ce2 /src/systemd/sd-bus.h
parentb38cc8d5631253738d5474f39b2026eb5524f772 (diff)
downloadsystemd-d7afd945b5aad5b262a3de97614f486d63d94612.tar.gz
networkd,resolved: make use of watch_bind feature to connect to the bus
The changes both networkd and resolved to make use of the watch_bind feature of sd-bus to connect to the system bus. This way, both daemons can be started during early boot, and automatically and instantly connect to the system bus as it becomes available. This replaces prior code that used a time-based retry logic to connect to the bus.
Diffstat (limited to 'src/systemd/sd-bus.h')
-rw-r--r--src/systemd/sd-bus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemd/sd-bus.h b/src/systemd/sd-bus.h
index 76bd5eff95..df21b3f30e 100644
--- a/src/systemd/sd-bus.h
+++ b/src/systemd/sd-bus.h
@@ -152,6 +152,8 @@ int sd_bus_set_exit_on_disconnect(sd_bus *bus, int b);
int sd_bus_get_exit_on_disconnect(sd_bus *bus);
int sd_bus_set_watch_bind(sd_bus *bus, int b);
int sd_bus_get_watch_bind(sd_bus *bus);
+int sd_bus_set_connected_signal(sd_bus *bus, int b);
+int sd_bus_get_connected_signal(sd_bus *bus);
int sd_bus_start(sd_bus *bus);