diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-19 15:50:05 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-01-05 13:58:32 +0100 |
commit | b38cc8d5631253738d5474f39b2026eb5524f772 (patch) | |
tree | 69cc94e213d72ea2235c87e94bafb1dee4dbd9bd /src/systemd/sd-bus.h | |
parent | bdbc866914e54189d6f9924349005fa8fa6bf71b (diff) | |
download | systemd-b38cc8d5631253738d5474f39b2026eb5524f772.tar.gz |
sd-bus: add new sd_bus_set_connected_signal() API
With this new API sd-bus can synthesize a local "Connected" signal when
the connection is fully established. It mirrors the local "Disconnected"
signal that is already generated when the connection is terminated. This
is useful to be notified when connection setup is done, in order to
start method calls then, in particular when using "slow" connection
methods (for example slow TCP, or most importantly the "watch_bind"
inotify logic).
Note that one could also use hook into the initial NameAcquired signal
received from the bus broker, but that scheme works only if we actually
connect to a bus. The benefit of "Connected" OTOH is that it works with
any kind of connection.
Ideally, we'd just generate this message unconditionally, but in order
not to break clients that do not expect this message it is opt-in.
Diffstat (limited to 'src/systemd/sd-bus.h')
0 files changed, 0 insertions, 0 deletions