summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/bus-internal.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-19 15:50:05 +0100
committerLennart Poettering <lennart@poettering.net>2018-01-05 13:58:32 +0100
commitb38cc8d5631253738d5474f39b2026eb5524f772 (patch)
tree69cc94e213d72ea2235c87e94bafb1dee4dbd9bd /src/libsystemd/sd-bus/bus-internal.h
parentbdbc866914e54189d6f9924349005fa8fa6bf71b (diff)
downloadsystemd-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/libsystemd/sd-bus/bus-internal.h')
-rw-r--r--src/libsystemd/sd-bus/bus-internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd/sd-bus/bus-internal.h b/src/libsystemd/sd-bus/bus-internal.h
index 29366c4c56..abda27fd56 100644
--- a/src/libsystemd/sd-bus/bus-internal.h
+++ b/src/libsystemd/sd-bus/bus-internal.h
@@ -219,6 +219,7 @@ struct sd_bus {
bool is_monitor:1;
bool accept_fd:1;
bool attach_timestamp:1;
+ bool connected_signal:1;
int use_memfd;