Re: D-Bus signal emission included data (struct, array)

Thiago Macieira <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <1585124.pXAjHs3Ihx@tjmaciei-mobl1>
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



_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.