Re: [systemd-devel] sd-bus delayed reply

2019-01-28 Thread Jean Valjean
I feel like Tom Hanks in the Cast Away when he made fire. Thank you. Boris On Mon, 28 Jan 2019 at 14:07, Lennart Poettering wrote: > > On Mo, 28.01.19 14:00, Jean Valjean (valjean.jean1...@gmail.com) wrote: > 65;5403;1c > > Can I, in principle, register objects

Re: [systemd-devel] sd-bus delayed reply

2019-01-28 Thread Jean Valjean
-feet(GUI introspecting d-bus service), to view what objects service provides and signatures for interfaces, like was explained in a blog post I referenced above. Boris On Mon, 28 Jan 2019 at 12:54, Lennart Poettering wrote: > > On Mo, 28.01.19 12:25, Jean Valjean (valjean.jean1...@gma

[systemd-devel] sd-bus delayed reply

2019-01-28 Thread Jean Valjean
Is there a possibility to send a delayed response to a method call? The scenario is 1. Message A with input data is received by a service and placed into a list. This message will be used to reply later. 2. A routine is invoked that might take a long time to prepare a reply on a background thread

Re: [systemd-devel] Calling sd_bus_reply_method_return outside method handler

2019-01-24 Thread Jean Valjean
around this one has to process messages with sd_bus_process(bus_, ). And scan msg for path and other information. Unfortunately with this approach introspection is not automatic. On Tue, 15 Jan 2019 at 19:06, Jean Valjean wrote: > > Thank you for your explanation, Lenart. I tried different ap

Re: [systemd-devel] Calling sd_bus_reply_method_return outside method handler

2019-01-15 Thread Jean Valjean
rn an error but it doesn't. I'm using mailinglist for the first time so I'm not sure it that OK to post code here. Hope it will show correctly in your email client. On Tue, 15 Jan 2019 at 15:05, Lennart Poettering wrote: > > On Mo, 14.01.19 21:07, Jean Valjean (valjean.

[systemd-devel] Calling sd_bus_reply_method_return outside method handler

2019-01-14 Thread Jean Valjean
I want to send a reply to a method call outside method_handler. Is it possible? In the method_handler I increase reference count of sd_bus_message and send it to the other thread. From there I want to call sd_bus_reply_method_return to send a reply but get Unknown method or interface error when I