D-Bus signal emission included data (struct, array)
Thiago Macieira
thiago at kde.org
Mon Aug 27 15:36:27 UTC 2018
On Monday, 27 August 2018 00:14:00 PDT dtdang wrote:
> Hello all,
>
> Could anyone help me how to init and append data in a signal emission as
> attached ?
> I am understanding that I need to use some dbus API like:
> dbus_message_iter_open_container, dbus_message_iter_append_basic. However,
> is there any optimistic way to implement signal emission included data as
> attached ?
There's no difference in adding data to a message. The same code that sends
arrays and structs for a method call will work for sending a signal.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
More information about the dbus
mailing list