Creating proxies for well-known names
dbus-glib lets you create proxy objects for well-known names, like the
following example:
For a DBusGProxy constructed like this, method calls will be sent to
the current owner of the name, and that owner can change over time.
The same can be achieved with GDBusProxy:
For an added layer of safety, you can specify what D-Bus
interface the proxy is expected to conform to by using the
GDBusInterfaceInfo type. Additionally, GDBusProxy loads,
caches and tracks changes to the D-Bus properties on the remote
object. It also sets up match rules so D-Bus signals from the
remote object are delivered locally.
The GDBusProxy type normally isn't used directly - instead
proxies subclassing GDBusProxy generated by gdbus-codegen is used, see the section called “Using gdbus-codegen”