DBusObjectManagerClient.newForBusSync

gio.dbus_object_manager_client.DBusObjectManagerClient newForBusSync(gio.types.BusType busType, gio.types.DBusObjectManagerClientFlags flags, string name, string objectPath, gio.types.DBusProxyTypeFunc getProxyTypeFunc = null, gio.cancellable.Cancellable cancellable = null)

Like [gio.dbus_object_manager_client.DBusObjectManagerClient.newSync] but takes a #GBusType instead of a #GDBusConnection.

This is a synchronous failable constructor - the calling thread is blocked until a reply is received. See [gio.dbus_object_manager_client.DBusObjectManagerClient.newForBus] for the asynchronous version.

Parameters

busTypeA #GBusType.
flagsZero or more flags from the #GDBusObjectManagerClientFlags enumeration.
nameThe owner of the control object (unique or well-known name).
objectPathThe object path of the control object.
getProxyTypeFuncA #GDBusProxyTypeFunc function or null to always construct #GDBusProxy proxies.
cancellableA #GCancellable or null

Returns

A

#GDBusObjectManagerClient object or null if error is set. Free with [gobject.object.ObjectWrap.unref].

Throws

[ErrorWrap]