[D-BUS] How append array of struct

Havoc Pennington hp at redhat.com
Fri Jul 29 05:30:06 EST 2005


On Thu, 2005-07-28 at 16:26 -0300, Claudio Takahasi wrote:
> Hi folks,
> 
> Is it possible append array of struct?
> 
> When I tried, the following message appeared:
> "arrays of struct can't be appended with
> dbus_message_append_args_valist for now"
> 
> Is there a workaround for it?
> 

You have to do a separate function call for each level of recursion.

So, open_container(array of struct), open_container(struct),
append(string),append(string),append(byte), close_container(struct),
open_container(struct) ...

append_args_valist is just a convenience function.

> I want to create a message like this: ya(ssy)(ssy)...

Havoc




More information about the dbus mailing list