Re: [systemd-devel] sd-bus: process ret_error from callback

2019-06-30 Thread Liam Beguin
Hi Lennart, > -Original Message- > From: Lennart Poettering > Sent: June 28, 2019 9:15 AM > To: Liam Beguin > Cc: [email protected] > Subject: Re: [systemd-devel] sd-bus: process ret_error from callback > > On Do, 27.06.19 18:50, Liam Beguin

Re: [systemd-devel] sd-bus: process ret_error from callback

2019-06-28 Thread Lennart Poettering
On Do, 27.06.19 18:50, Liam Beguin ([email protected]) wrote: > Hi all, > > I'm trying to process the `sd_bus_error` set in a > `sd_bus_message_handler_t` callback in my main loop but I can't seem > to be able to do it properly... What have you bound that handler to? If you bound it to a method vta

[systemd-devel] sd-bus: process ret_error from callback

2019-06-27 Thread Liam Beguin
Hi all, I'm trying to process the `sd_bus_error` set in a `sd_bus_message_handler_t` callback in my main loop but I can't seem to be able to do it properly... Here is what I tried: - In the callback I tried setting the error using `sd_bus_reply_method_error` and `sd_bus_error_set` - In the ma