summaryrefslogtreecommitdiff
path: root/src/shared/bus-util.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/shared/bus-util.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/shared/bus-util.h')
-rw-r--r--src/shared/bus-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/bus-util.h b/src/shared/bus-util.h
index a9f4969d7d..cbd22a6cd6 100644
--- a/src/shared/bus-util.h
+++ b/src/shared/bus-util.h
@@ -162,3 +162,5 @@ int bus_path_decode_unique(const char *path, const char *prefix, char **ret_send
int bus_property_get_rlimit(sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error);
int bus_track_add_name_many(sd_bus_track *t, char **l);
+
+int bus_open_system_watch_bind(sd_bus **ret);