Re: [systemd-devel] sd_bus_process semantics

2022-07-25 Thread Lennart Poettering
On Mo, 25.07.22 12:21, Mathis MARION (mamari...@silabs.com) wrote: > I looked a bit into the source code: > > This part is responsible for storing the message processed in *ret: > > static int process_running(sd_bus *bus, sd_bus_message **ret) { > [...] > r = process_message(bus, m); >

Re: [systemd-devel] sd_bus_process semantics

2022-07-25 Thread Mathis MARION
I looked a bit into the source code: This part is responsible for storing the message processed in *ret: static int process_running(sd_bus *bus, sd_bus_message **ret) { [...] r = process_message(bus, m); if (r != 0) goto null_message; if (ret) {

[systemd-devel] sd_bus_process semantics

2022-07-22 Thread Mathis MARION
Hello, I am trying to retrieve an sd_bus_message using the 'ret' argument of sd_bus_process(). The documentation says the following: sd_bus_process() processes at most one incoming message per call. If the parameter ret is not NULL and the call processed a message, *ret is set to this mes