Gio.DBusSubtreeIntrospectFunc
function onDBusSubtreeIntrospectFunc(connection: Gio.DBusConnection, sender: String, object_path: String, node: String): Gio.DBusInterfaceInfo { }
The type of the @introspect function in Gio.DBusSubtreeVTable.
Subtrees are flat. node, if non-null, is always exactly one segment of the object path (ie: it never contains a slash).
This function should return null to indicate that there is no object at this node.
If this function returns non-null, the return value is expected to be a null-terminated array of pointers to Gio.DBusInterfaceInfo structures describing the interfaces implemented by node. This array will have Gio.DBusInterfaceInfo.prototype.unref called on each item before being freed with GLib.free.
The difference between returning null 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 null case.
Since 2.26
- connection
- sender
The unique bus name of the remote caller.
- object_path
The object path that was registered with Gio.DBusConnection.prototype.register_subtree.
- node
A node that is a child of object_path (relative to object_path) or null for the root of the subtree.
- Returns
A null-terminated array of pointers to Gio.DBusInterfaceInfo, or null.