Systemd/src/machine
Lennart Poettering ebcf1f97de bus: rework message handlers to always take an error argument
Message handler callbacks can be simplified drastically if the
dispatcher automatically replies to method calls if errors are returned.

Thus: add an sd_bus_error argument to all message handlers. When we
dispatch a message handler and it returns negative or a set sd_bus_error
we send this as message error back to the client. This means errors
returned by handlers by default are given back to clients instead of
rippling all the way up to the event loop, which is desirable to make
things robust.

As a side-effect we can now easily turn the SELinux checks into normal
function calls, since the method call dispatcher will generate the right
error replies automatically now.

Also, make sure we always pass the error structure to all property and
method handlers as last argument to follow the usual style of passing
variables for return values as last argument.
2013-11-21 21:12:36 +01:00
..
machine-dbus.c bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
machine.c machined: keep track of the initial leader PID of a machine 2013-11-06 02:31:35 +01:00
machine.h machined: simplifications 2013-11-05 01:13:05 +01:00
machinectl.c machinectl: close bus to container early 2013-11-08 14:07:26 +01:00
machined-dbus.c bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
machined.c bus: introduce concept of a default bus for each thread and make use of it everywhere 2013-11-12 00:12:43 +01:00
machined.h bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
Makefile machined: split out machine registration stuff from logind 2013-07-02 03:47:23 +02:00
org.freedesktop.machine1.conf machined: relax access to GetMachine() 2013-07-02 15:03:09 +02:00
org.freedesktop.machine1.service machined: split out machine registration stuff from logind 2013-07-02 03:47:23 +02:00
test-machine-tables.c tests: add tests for string lookup tables 2013-07-05 01:36:16 -04:00