How to send Vala ArrayList through D-Bus?

317 Views Asked by At

Trying to send data from server to client and getting this error:

error: GVariant serialization of type `Gee.ArrayList' is not supported
public abstract ArrayList<EventData?> get_event_list () throws IOError;
1

There are 1 best solutions below

0
On BEST ANSWER

You need to use a plain array. A good resource for showing D-Bus types mapped to Vala types is the Type Table in Vala D-Bus Examples.

For EventData you should consider a Variant, struct or ObjectPath.