Systemd/src/systemd
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
..
_sd-common.h include: make direct includion of _sd-common.h harder 2013-11-20 19:36:14 +01:00
Makefile build-sys: add stub makefiles to subdirs 2012-01-05 16:29:21 +01:00
sd-bus-protocol.h api: replace manual C++ guards by macros 2013-11-07 16:53:26 +01:00
sd-bus-vtable.h api: replace manual C++ guards by macros 2013-11-07 16:53:26 +01:00
sd-bus.h bus: rework message handlers to always take an error argument 2013-11-21 21:12:36 +01:00
sd-daemon.h Add printf attributes in exported headers 2013-04-25 21:50:48 -04:00
sd-event.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
sd-id128.h id128: introduce SD_ID128_STRING_MAX consant for sizing id128 strings 2013-11-12 00:12:44 +01:00
sd-journal.h api: replace manual C++ guards by macros 2013-11-07 16:53:26 +01:00
sd-login.h api: replace manual C++ guards by macros 2013-11-07 16:53:26 +01:00
sd-memfd.h api: replace manual C++ guards by macros 2013-11-07 16:53:26 +01:00
sd-messages.h api: replace manual C++ guards by macros 2013-11-07 16:53:26 +01:00
sd-readahead.h man: move header file man pages from section 7 to 3 2012-07-13 01:50:05 +02:00
sd-rtnl.h rtnl: add event loop integration 2013-11-14 23:22:58 +01:00
sd-shutdown.h shutdown: as sd-shutdown.h is a drop-in header it should not include any other headers of ours 2013-11-07 16:53:26 +01:00
sd-utf8.h bus: export utf8 validator calls as pure functions 2013-11-12 00:12:44 +01:00