6.12 GDBusProxyTypeFunc

Callback: GDBusProxyTypeFunc

A procedure given for it is called as (procedure manager object-path interface-name) ⇒ %return. If the function that it is given to has no user data for it, it is also passed data, last.

Function signature for a function used to determine the GType to use for an interface proxy (if interface-name is not #f) or object proxy (if interface-name is #f).

This function is called in the thread-default main context (see main-context:push-thread-default) that manager was constructed in.

manager

Passed: a <GDBusObjectManagerClient>.

A <GDBusObjectManagerClient>.

object-path

Passed: a string.

The object path of the remote object.

interface-name

Passed: a string, or #f.

The interface name of the remote object or #f if a <GDBusObjectProxy> GType is requested.

%return

Returned: a class, or a GType number.

A GType to use for the remote object. The returned type must be a <GDBusProxy> or <GDBusObjectProxy> -derived type.

data

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

data passed in by the user.