DBusProxy.for_bus_sync


Description:

[ CCode ( has_construct_function = false ) ]
public DBusProxy.for_bus_sync (BusType bus_type, DBusProxyFlags flags, DBusInterfaceInfo? info, string name, string object_path, string interface_name, Cancellable? cancellable = null) throws Error

Like DBusProxy.sync but takes a BusType instead of a DBusConnection.

DBusProxy is used in this example.

Parameters:

bus_type

A BusType.

flags

Flags used when constructing the proxy.

info

A DBusInterfaceInfo specifying the minimal interface that proxy conforms to or null.

name

A bus name (well-known or unique).

object_path

An object path.

interface_name

A D-Bus interface name.

cancellable

A Cancellable or null.

Returns:

A DBusProxy or null if error is set. Free with unref.