sd-bus: introduce API for re-enqueuing incoming messages
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Jan 2020 16:05:17 +0000 (17:05 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Feb 2020 16:12:11 +0000 (17:12 +0100)
commit83bfc0d8dd026814d23e3fdfa46806394f775526
tree2647832be24db5ea4977caf9a29d42189af489eb
parent5926f9f1723fd753a0c524ed96a13538c851395e
sd-bus: introduce API for re-enqueuing incoming messages

When authorizing via PolicyKit we want to process incoming method calls
twice: once to process and figure out that we need PK authentication,
and a second time after we aquired PK authentication to actually execute
the operation. With this new call sd_bus_enqueue_for_read() we have a
way to put an incoming message back into the read queue for this
purpose.

This might have other uses too, for example debugging.

(cherry picked from commit 1068447e6954dc6ce52f099ed174c442cb89ed54)

zjs: patch modified to not make the function public
src/libsystemd/sd-bus/bus-message.h
src/libsystemd/sd-bus/sd-bus.c