sd-bus: add new sd_bus_is_ready() API
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Dec 2017 14:47:09 +0000 (15:47 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 5 Jan 2018 12:58:32 +0000 (13:58 +0100)
commitbdbc866914e54189d6f9924349005fa8fa6bf71b
tree6402a7a8be208d7cffb3aea29be1169e8143a5bb
parentf9d5fcceaf7f0ec56e328f7c8efc96c523fc87c1
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/libsystemd/libsystemd.sym
src/libsystemd/sd-bus/sd-bus.c
src/systemd/sd-bus.h