6.15 GDBusSubtreeIntrospectFunc

Callback: GDBusSubtreeIntrospectFunc

A procedure given for it is called as (procedure connection sender object-path node) ⇒ %return.

The type of the introspect function in GDBusSubtreeVTable.

Subtrees are flat. node, if non-#f, is always exactly one segment of the object path (ie: it never contains a slash).

This function should return #f to indicate that there is no object at this node.

If this function returns non-#f, the return value is expected to be a #f-terminated array of pointers to <GDBusInterfaceInfo> structures describing the interfaces implemented by node. This array will have dbus-interface-info:unref called on each item before being freed with byte-array:free.

The difference between returning #f and an array containing zero items is that the standard DBus interfaces will returned to the remote introspector in the empty array case, but not in the #f case.

connection

Passed: a <GDBusConnection>.

A <GDBusConnection>.

sender

Passed: a string.

The unique bus name of the remote caller.

object-path

Passed: a string.

The object path that was registered with g_dbus_connection_register_subtree().

node

Passed: a string.

A node that is a child of object-path (relative to object-path) or #f for the root of the subtree.

%return

Returned: a list or vector, each a <GDBusInterfaceInfo>, or #f.

A #f-terminated array of pointers to <GDBusInterfaceInfo>, or #f.

user-data

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

The user-data gpointer passed to g_dbus_connection_register_subtree().