MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / device_for_each_child

Function device_for_each_child

TactilityKernel/source/device.cpp:323–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323void device_for_each_child(Device* device, void* callbackContext, bool(*on_device)(struct Device* device, void* context)) {
324 for (auto* child_device : device->internal->children) {
325 if (!on_device(child_device, callbackContext)) {
326 break;
327 }
328 }
329}
330
331size_t device_get_child_count(Device* device) {
332 return device->internal->children.size();

Callers 1

DeviceTest.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected