diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-18 20:10:13 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-05-30 07:49:57 +0200 |
commit | 206dd5fa4a9b73e8a3de2e456ff43fb85bade918 (patch) | |
tree | 9525f85a9fec47c1765860b5f2684623297fa427 /src/libelogind/sd-bus/bus-internal.h | |
parent | d4a1ee667569829a03d2862fbd697e1f1e9afcdf (diff) |
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/libelogind/sd-bus/bus-internal.h')
-rw-r--r-- | src/libelogind/sd-bus/bus-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libelogind/sd-bus/bus-internal.h b/src/libelogind/sd-bus/bus-internal.h index ce4090c43..b0c519cf9 100644 --- a/src/libelogind/sd-bus/bus-internal.h +++ b/src/libelogind/sd-bus/bus-internal.h @@ -413,3 +413,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); |