DBusSubtreeEnumerateFunc

typealias DBusSubtreeEnumerateFunc = (connection: DBusConnection, sender: String, objectPath: String) -> List<String>

The type of the @enumerate function in #GDBusSubtreeVTable.

This function is called when generating introspection data and also when preparing to dispatch incoming messages in the event that the %G_DBUS_SUBTREE_FLAGS_DISPATCH_TO_UNENUMERATED_NODES flag is not specified (ie: to verify that the object path is valid).

Hierarchies are not supported; the items that you return should not contain the / character.

The return value will be freed with g_strfreev().

  • param connection A #GDBusConnection.

  • param sender The unique bus name of the remote caller.

  • param objectPath The object path that was registered with g_dbus_connection_register_subtree().

  • return A newly allocated array of strings for node names that are children of @object_path.