mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 11:27:32 +03:00
ebcf1f97de
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. |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
org.freedesktop.timedate1.conf | ||
org.freedesktop.timedate1.policy.in | ||
org.freedesktop.timedate1.service | ||
timedatectl.c | ||
timedated.c |