Re: [Vala] Stacked arrays in Vala



I've never tried that, but how about `[DBus (signature="aay")] Variant foo`?

https://wiki.gnome.org/Projects/Vala/Manual/Attributes#DBus_Attribute

Best regards,

Jiri Janousek
On Sun, 6 May 2018 at 20:33, rastersoft <raster rastersoft com> wrote:

An extra tip about the problem: I tried to use

      uint8[,] Property;

and it seems to work as long as the outmost array has zero or one
entries; if there are two or more entries, it gives trash.


El 06/05/18 a las 17:50, rastersoft escribió:
Hi all:

I'm trying to use a DBus interface that returns an array of arrays of
uint8 ("aay" in dbus syntax). The problem is that I don't know how to
create the interface in Vala, because if I try to use:

    uint8[][] Property;

it says "error: Stacked arrays are not supported"

Can someone give me a hint?

Thanks.

_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list

_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]