mirror of
https://github.com/systemd/systemd.git
synced 2026-11-07 13:57:10 +00:00
Add the asynchronous counterpart of sd_varlink_call_and_upgrade(): the method call is enqueued with the upgrade request, the reply is delivered to the reply callback as usual, and if the server accepted the upgrade the connection's file descriptors are handed to the callback installed with sd_varlink_bind_upgrade(), mirroring how the server side works. If the server replied with an error the connection stays usable. A new client state VARLINK_AWAITING_REPLY_UPGRADE tracks the pending request; no other calls may be pipelined behind it.