Re: [systemd-devel] Returning arrays from sd-bus methods

2017-06-27 Thread Lennart Poettering
On Mon, 26.06.17 12:19, guhan balasubramanian (guhan@gmail.com) wrote: > > if you use sd_bus_reply_method_return() (or sd_bus_append()) the > > arguments to pass for an array is the array's size followed by the > > members. Hence, the following should do what you want: > > > >

Re: [systemd-devel] Returning arrays from sd-bus methods

2017-06-26 Thread guhan balasubramanian
Hi Lennart, Thank you for the reply. Please find my comments inline: On Sat, Jun 24, 2017 at 12:55 AM, Lennart Poettering wrote: > On Fri, 23.06.17 20:45, guhan balasubramanian (guhan@gmail.com) wrote: > > > Hi, > > > > I'm currently trying out sd-bus methods for

Re: [systemd-devel] Returning arrays from sd-bus methods

2017-06-24 Thread Lennart Poettering
On Fri, 23.06.17 20:45, guhan balasubramanian (guhan@gmail.com) wrote: > Hi, > > I'm currently trying out sd-bus methods for my application. I am in a > situation where I must accept an input and return a byte array based on the > input. > > In the vtable. the following declaration is

[systemd-devel] Returning arrays from sd-bus methods

2017-06-23 Thread guhan balasubramanian
Hi, I'm currently trying out sd-bus methods for my application. I am in a situation where I must accept an input and return a byte array based on the input. In the vtable. the following declaration is present: SD_BUS_METHOD("method_id", "x", "ay", method_1, 0) And inside the definition for