DBusMethodInvocation
Instances of the GDBusMethodInvocation
class are used when handling D-Bus method calls. It provides a way to asynchronously return results and errors.
The normal way to obtain a GDBusMethodInvocation
object is to receive it as an argument to the handle_method_call()
function in a type@Gio.DBusInterfaceVTable that was passed to method@Gio.DBusConnection.register_object.
Since
2.26
Constructors
Functions
Gets the #GDBusConnection the method was invoked on.
Gets the name of the D-Bus interface the method was invoked on.
Gets the #GDBusMessage for the method invocation. This is useful if you need to use low-level protocol features, such as UNIX file descriptor passing, that cannot be properly expressed in the #GVariant API.
Gets information about the method call, if any.
Gets the name of the method that was invoked.
Gets the object path the method was invoked on.
Gets the parameters of the method invocation. If there are no input parameters then this will return a GVariant with 0 children rather than NULL.
Gets information about the property that this method call is for, if any.
Finishes handling a D-Bus method call by returning an error.
Like g_dbus_method_invocation_return_error() but without printf()-style formatting.
Like g_dbus_method_invocation_return_error() but takes a #GError instead of the error domain, error code and message.
Finishes handling a D-Bus method call by returning @parameters. If the @parameters GVariant is floating, it is consumed.
Like g_dbus_method_invocation_return_value() but also takes a #GUnixFDList.