diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-18 20:10:13 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-01-05 13:58:32 +0100 |
commit | 98c5bbc85dc05c9dbccc1d289000dc554892d0d1 (patch) | |
tree | d6dad1f115529f49c81d4c532d8205076e9a742f /src/libsystemd/sd-bus/bus-internal.h | |
parent | bus-control: remove kdbus indirection cruft (diff) | |
download | systemd-98c5bbc85dc05c9dbccc1d289000dc554892d0d1.tar.xz systemd-98c5bbc85dc05c9dbccc1d289000dc554892d0d1.zip |
sd-bus: add APIs to request/release names asynchronously
They do the same thing as their synchronous counterparts, but only
enqueue the operation, thus removing synchronization points during
service initialization.
If the callback function is passed as NULL we'll fallback to generic
implementations of the reply handlers, that terminate the connection if
the requested name cannot be acquired, under the assumption that not
being able to acquire the name is a technical problem.
Diffstat (limited to 'src/libsystemd/sd-bus/bus-internal.h')
-rw-r--r-- | src/libsystemd/sd-bus/bus-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd/sd-bus/bus-internal.h b/src/libsystemd/sd-bus/bus-internal.h index 79012b0ad0..bf395b1f22 100644 --- a/src/libsystemd/sd-bus/bus-internal.h +++ b/src/libsystemd/sd-bus/bus-internal.h @@ -407,3 +407,5 @@ int bus_maybe_reply_error(sd_bus_message *m, int r, sd_bus_error *error); if (!assert_log(expr, #expr)) \ return sd_bus_error_set_errno(error, r); \ } while (false) + +void bus_enter_closing(sd_bus *bus); |