sd-bus: process ret_error from callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 main loop, I tried accessing `reply` from `r = sd_bus_process(bus, &reply)` right after checking that `r > 0`.
- reply seems to always be null.

Is this the right way to do process the `sd_bus_error`?
Thanks, 

--
Liam Beguin
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux