sd-bus: add APIs to request/release names asynchronously
authorLennart Poettering <lennart@poettering.net>
Mon, 18 Dec 2017 19:10:13 +0000 (20:10 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 5 Jan 2018 12:58:32 +0000 (13:58 +0100)
commit98c5bbc85dc05c9dbccc1d289000dc554892d0d1
treed6dad1f115529f49c81d4c532d8205076e9a742f
parente8bd7b092f3f442ea238008b6508f75357e092f4
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.
src/libsystemd/libsystemd.sym
src/libsystemd/sd-bus/bus-control.c
src/libsystemd/sd-bus/bus-internal.h
src/libsystemd/sd-bus/sd-bus.c
src/systemd/sd-bus.h