[systemd-devel] Reasoning behind sd_bus_error argument to sd_bus_call?

Daan De Meyer daan.j.demeyer at gmail.com
Tue Mar 17 19:17:05 UTC 2020


Hi,

I'm documenting sd_bus_call and its async variant and I was wondering about
the sd_bus_error output parameter that's passed to it. Is it specifically
meant for use cases where we're doing a nested D-Bus method call from a
service so we have an error object to send back from the initial D-Bus
method call? I don't see immediately see the benefit of the sd_bus_error
parameter in a D-Bus client since I can simply check the return value
instead which seems to contain the same information looking at the
implementation.

Regards,

Daan De Meyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20200317/27955e1d/attachment.htm>


More information about the systemd-devel mailing list