DBusObjectManagerClient.sync


Description:

[ CCode ( has_construct_function = false , type = "GDBusObjectManager*" ) ]
public DBusObjectManagerClient.sync (DBusConnection connection, DBusObjectManagerClientFlags flags, string? name, string object_path, owned DBusProxyTypeFunc? get_proxy_type_func, Cancellable? cancellable = null) throws Error

Creates a new DBusObjectManagerClient object.

This is a synchronous failable constructor - the calling thread is blocked until a reply is received. See @new for the asynchronous version.

Parameters:

connection

A DBusConnection.

flags

Zero or more flags from the DBusObjectManagerClientFlags enumeration.

name

The owner of the control object (unique or well-known name), or null when not using a message bus connection.

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 or null.

get_proxy_type_user_data

User data to pass to get_proxy_type_func.

Returns:

A DBusObjectManagerClient object or null if throws is set. Free with unref.