Free with [gobject.object.ObjectWrap.unref].
DBusProxy.newForBusSync
gio.dbus_proxy.DBusProxy newForBusSync(gio.types.BusType busType, gio.types.DBusProxyFlags flags, gio.dbus_interface_info.DBusInterfaceInfo info, string name, string objectPath, string interfaceName, gio.cancellable.Cancellable cancellable = null)Like [gio.dbus_proxy.DBusProxy.newSync] but takes a #GBusType instead of a #GDBusConnection.
#GDBusProxy is used in this [example][gdbus-wellknown-proxy].
Parameters
busType | A #GBusType. |
flags | Flags used when constructing the proxy. |
info | A #GDBusInterfaceInfo specifying the minimal interface that proxy conforms to or null. |
name | A bus name (well-known or unique). |
objectPath | An object path. |
interfaceName | A D-Bus interface name. |
cancellable | A #GCancellable or null. |
Returns
A #GDBusProxy or null if error is set.
Throws
[ErrorWrap]