[systemd-devel] Dynamically add and remove sd-bus paths in a process

2018-11-02 Thread guhan balasubramanian
Hi, I have a question regarding manipulating sd-bus paths during run time. Let us assume the calculator example from: http://0pointer.net/blog/the-new-sd-bus-api-of-systemd.html We host the object /net/poettering/Calculator through net.poettering.Calculator. I am looking for ways to add/remove

[systemd-devel] Sending complex structures over sd-bus

2018-10-25 Thread guhan balasubramanian
Hi, I am trying to use the sd-bus to send structures that are a bit complex in nature. For example, consider the following: struct complex_struct { int some_integers[10]; char *str; } cs; cs property_to_send[10]; This d-bus property would be something like "a(ais)". Assuming I want to

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

[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 metho

[systemd-devel] Storing Data on systemd bus

2017-02-06 Thread guhan balasubramanian
Hi, I've followed the tutorial on the 0pointer blog [1] for creating a 'system' service. I am currently held up with two questions which would help me come up with a better design for my "inventory" program. 1. Is it possible to use sd-bus API as an inventory to store and retrieve data? Whe