DBusObjectManagerClient.for_bus_sync
Description:
[ CCode ( has_construct_function = false , type = "GDBusObjectManager*" ) ]
public DBusObjectManagerClient.for_bus_sync (BusType bus_type, DBusObjectManagerClientFlags flags, string name, string object_path, owned DBusProxyTypeFunc? get_proxy_type_func, Cancellable? cancellable = null) throws Error
public DBusObjectManagerClient.for_bus_sync (BusType bus_type, DBusObjectManagerClientFlags flags, string name, string object_path, owned DBusProxyTypeFunc? get_proxy_type_func, Cancellable? cancellable = null) throws Error
Like DBusObjectManagerClient.sync but takes a BusType instead of a DBusConnection.
This is a synchronous failable constructor - the calling thread is blocked until a reply is received. See new_for_bus for the asynchronous version.
Parameters:
bus_type |
A BusType. |
flags |
Zero or more flags from the DBusObjectManagerClientFlags enumeration. |
name |
The owner of the control object (unique or well-known name). |
object_path |
The object path of the control object. |
get_proxy_type_func |
A DBusProxyTypeFunc function or null to always construct DBusProxy proxies. |
cancellable |
A Cancellable or null |
get_proxy_type_destroy_notify |
Free function for |
get_proxy_type_user_data |
User data to pass to |
Returns:
A DBusObjectManagerClient object or null if throws is set. Free with unref. |