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

guhan balasubramanian guhan.sac at gmail.com
Thu Oct 25 10:06:32 UTC 2018


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 send the above array, I am trying to right the
property's function handler in the sd_bus_server for the same.

I know the open and close container can be used for simple arrays. I am
finding it hard to make it work for the nested array case. Can some one
please help point me to any example or references for the same?

Thanks,
Guhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20181025/248a96ce/attachment.html>


More information about the systemd-devel mailing list