dbus_call
Description:
public async Variant dbus_call (string object_path, string interface_name, string method_name, Variant? parameters, VariantType? reply_type, int timeout_msec, Cancellable? cancellable) throws Error
Call call on the current name owner with the specified arguments.
Most importantly, this invokes call with the client's MainContext, so that the response is always in order with other events D-Bus events. Of course, the call uses Task and will invoke the callback on the current get_thread_default.
This API is merely a convenient wrapper for call. You can also use call directly, with the same effect.
Parameters:
this |
the Client |
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 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 |
timeout_msec |
the timeout in milliseconds, -1 to use the default timeout or g_maxint for no timeout |
cancellable |
a Cancellable or null |
callback |
a TaskReadyCallback to call when the request is satisfied or null if you don't care about the result of the method invocation |
user_data |
the data to pass to |