From 15196ff2d3e084b05e60c2ff61f71d1ff40bb3a5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 19 Dec 2017 15:47:09 +0100 Subject: sd-bus: add new sd_bus_is_ready() API This new call is much light sd_bus_is_open(), but returns true only if the connection is fully set up, i.e. after we finished with the authentication and Hello() phase. This API is useful for clients in particular when using the "watch_bind" feature, as that way it can be determined in advance whether it makes sense to sync on some operation. --- src/systemd/sd-bus.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/systemd') diff --git a/src/systemd/sd-bus.h b/src/systemd/sd-bus.h index 60e9d06df..3c40a53dc 100644 --- a/src/systemd/sd-bus.h +++ b/src/systemd/sd-bus.h @@ -165,6 +165,7 @@ sd_bus *sd_bus_flush_close_unref(sd_bus *bus); void sd_bus_default_flush_close(void); int sd_bus_is_open(sd_bus *bus); +int sd_bus_is_ready(sd_bus *bus); int sd_bus_get_bus_id(sd_bus *bus, sd_id128_t *id); int sd_bus_get_scope(sd_bus *bus, const char **scope); -- cgit v1.2.3