Appending arrays of fixed arrays of bytes.

Christian Hammond chipx86 at gmail.com
Tue Aug 2 11:48:47 EST 2005


On 7/28/05, Colin Walters <walters at verbum.org> wrote:
> On Thu, 2005-07-28 at 10:16 -0700, Christian Hammond wrote:
> 
> > Can I please just get some example of the correct way to do this? From
> > what I can gather, nobody has tested this case, and I'm fairly sure
> > it's broken. I need to know one way or another soon.
> 
> I added a test case for it (RecArrays) to the GLib bindings, it seems to
> work.  So I don't think it's a libdbus bug.
> 
> I don't see an obvious bug in your code, but it's hard to tell without
> the full context.
> 
> For reference in the GLib bindings, sending an array of array of strings
> looks like this:

Cool. I'll take a look at what this is doing. Thanks!
> You want to use variants as the values; i.e. type signature a{sv}.  The
> GLib bindings make it easy to send variants; they map to GValue.  See
> ManyStringify in test/glib.

I realized this shortly after sending the e-mail. Very useful, and
solves a number of my current problems. Thanks.

Christian


More information about the dbus mailing list