6.9 GDBusInterfaceMethodCallFunc

Callback: GDBusInterfaceMethodCallFunc

A procedure given for it is called as (procedure connection sender object-path interface-name method-name parameters invocation).

The type of the method-call function in GDBusInterfaceVTable.

interface-name may be NULL if not specified by the sender, although it’s encouraged for the sender to set it. If unset, and the object has only one method (across all interfaces) matching method-name, that method is invoked. Otherwise, behaviour is implementation defined. See the D-Bus specification. It is recommended to return Gio.DBusError.UNKNOWN_METHOD.

connection

Passed: a <GDBusConnection>.

A <GDBusConnection>.

sender

Passed: a string, or #f.

The unique bus name of the remote caller, or NULL if not specified by the caller, e.g. on peer-to-peer connections.

object-path

Passed: a string.

The object path that the method was invoked on.

interface-name

Passed: a string, or #f.

The D-Bus interface name the method was invoked on, or NULL if not specified by the sender.

method-name

Passed: a string.

The name of the method that was invoked.

parameters

Passed: a <GVariant>.

A <GVariant> tuple with parameters.

invocation

Passed: a <GDBusMethodInvocation>.

A <GDBusMethodInvocation> object that must be used to return a value or error.

user-data

Not passed: it is the user data that guile-gi supplied.

The user-data gpointer passed to dbus-connection:register-object.