chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:59 +0000 (07:49 +0200)
commit15196ff2d3e084b05e60c2ff61f71d1ff40bb3a5
treeeafbf44f9049e6f2ca26170f9d858d7d47e2176d
parent4e6c30f09491bfae763107482d76c4af4f9f6681
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/libelogind/libelogind.sym
src/libelogind/sd-bus/sd-bus.c
src/systemd/sd-bus.h