DBusProxy.newForBus

Like g_dbus_proxy_new() but takes a #GBusType instead of a #GDBusConnection.

#GDBusProxy is used in this example[gdbus-wellknown-proxy].

Parameters

busType GBusType

A #GBusType.

flags GDBusProxyFlags

Flags used when constructing the proxy.

info DBusInterfaceInfo

A #GDBusInterfaceInfo specifying the minimal interface that @proxy conforms to or %NULL.

name string

A bus name (well-known or unique).

objectPath string

An object path.

interfaceName string

A D-Bus interface name.

cancellable Cancellable

A #GCancellable or %NULL.

callback GAsyncReadyCallback

Callback function to invoke when the proxy is ready.

userData void*

User data to pass to @callback.

Meta

Since

2.26