dbus_connection_call


Description:


[ Version ( since = "0.4" ) ]
public Future dbus_connection_call (DBusConnection connection, string? bus_name, string object_path, string interface_name, string method_name, Variant? parameters, VariantType? reply_type, DBusCallFlags flags, int timeout_msec)

Wrapper for [method@Gio.

DBusConnection.call].

Parameters:

connection

a [class@Gio.DBusConnection]

bus_name

a unique or well-known bus name or null if connection is not a message bus connection

object_path

path of remote object

interface_name

D-Bus interface to invoke method on

method_name

the name of the method to invoke

parameters

a [struct@GLib.Variant] tuple with parameters for the method or null if not passing parameters

reply_type

the expected type of the reply (which will be a tuple), or null

flags

flags from the [flags@Gio.DBusCallFlags] enumeration

timeout_msec

the timeout in milliseconds, -1 to use the default timeout or g_maxint for no timeout

Returns:

a [class@Dex.Future] that resolves to a [struct@GLib.Variant] or rejects with error.


Namespace: Dex
Package: libdex-1