Provide a way to instantiate a GDBusProxy-derived class from a GDBusConnection and a object path without blocking
Submitted by Emanuele Aina
Assigned to David Zeuthen
Sometimes I happen to have a GDBusConnection and an object path handy and I would like to call a method generated by gdbus-codegen on it, but to do so I would need to instantiate the GDBusProxy-derived object which requires an additional callback step.
To simplify the code flow I often resort to g_dbus_connection_call() which allows me to side-step the issue, but requires manual GVariant unpacking, thus trading off code flow complexity for some added verbosity.
It would be great if we can add a flag to instantiate the GDBusProxy with just the information already available which should be enough to call its methods, giving us the best of both.