MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / UnregisterDetectionStartCallback

Method UnregisterDetectionStartCallback

ResourceManager.cpp:381–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381void ResourceManager::UnregisterDetectionStartCallback(DetectionStartCallback callback, void *callback_arg)
382{
383 for(size_t idx = 0; idx < DetectionStartCallbacks.size(); idx++)
384 {
385 if(DetectionStartCallbacks[idx] == callback && DetectionStartCallbackArgs[idx] == callback_arg)
386 {
387 DetectionStartCallbacks.erase(DetectionStartCallbacks.begin() + idx);
388 DetectionStartCallbackArgs.erase(DetectionStartCallbackArgs.begin() + idx);
389 }
390 }
391}
392
393void ResourceManager::RegisterDetectionEndCallback(DetectionEndCallback new_callback, void *new_callback_arg)
394{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected