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

Function device_for_each

TactilityKernel/source/device.cpp:313–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313void device_for_each(void* callback_context, bool(*on_device)(Device* device, void* context)) {
314 ledger_lock();
315 for (auto* device : ledger.devices) {
316 if (!on_device(device, callback_context)) {
317 break;
318 }
319 }
320 ledger_unlock();
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) {

Callers 2

DeviceTest.cppFile · 0.85
getCardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected