Function uacpi_namespace_for_each_child
uacpi_status uacpi_namespace_for_each_child(uacpi_namespace_node* parent, uacpi_iteration_callback descending_callback, uacpi_iteration_callback ascending_callback, uacpi_object_type_bits type_mask, uacpi_u32 max_depth, void * user)
Description
Depth-first iterate the namespace starting at the first child of 'parent'.
'descending_callback' is invoked the first time a node is visited when walking down. 'ascending_callback' is invoked the second time a node is visited after we reach the leaf node without children and start walking up. Either of the callbacks may be NULL, but not both at the same time. Only nodes matching 'type_mask' are passed to the callbacks. 'max_depth' is used to limit the maximum reachable depth from 'parent', where 1 is only direct children of 'parent', 2 is children of first-level children etc. Use UACPI_MAX_DEPTH_ANY or -1 to specify infinite depth.