[RFE] Support for using GDBus objects as type signature o
Submitted by bob..@..131.so
Link to original bug (#772632)
Description
At the moment, the only way for Vala DBus objects to refer to each other is by path. The following is not possible:
[DBus (name = "org.example.one")]
public class One : Object {}
[DBus (name = "org.example.two")]
public interface Two : Object {
public abstract void do_action (One argument) throws IOError;
}
// ... init one, register on the bus, get two proxy etc ...
two.do_action (one);
Everything has to be marshaled to and from ObjectPath manually, which is the sort of tedium that language-level DBus support is meant to avert.
It would be great if valac could do what it does for structs where the compiler figures it out and generates all the code for you instead of having to type the same handful of lines ad nauseum.
Edited by Corentin Noël