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>
Tue, 4 Feb 2020 17:47:31 +0000 (18:47 +0100)
commit1068447e6954dc6ce52f099ed174c442cb89ed54
treebdf880bbe5ad32c6673889e6707f249c47a4cf3b
parentf4425c72c7395ec93ae00052916a66e2f60f200b
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.
src/libsystemd/libsystemd.sym
src/libsystemd/sd-bus/sd-bus.c
src/systemd/sd-bus.h