mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-19 12:37:52 -05:00
Move plugin SDK integration from callback into plugin API and PluginManager
This commit is contained in:
@@ -820,6 +820,11 @@ std::vector<NetworkClient*>& ResourceManager::GetClients()
|
||||
return(clients);
|
||||
}
|
||||
|
||||
PluginManagerInterface* ResourceManager::GetPluginManager()
|
||||
{
|
||||
return(plugin_manager);
|
||||
}
|
||||
|
||||
ProfileManager* ResourceManager::GetProfileManager()
|
||||
{
|
||||
return(profile_manager);
|
||||
@@ -1717,6 +1722,12 @@ void ResourceManager::DetectDevicesCoroutine()
|
||||
}
|
||||
}
|
||||
|
||||
void ResourceManager::SetPluginManager(PluginManagerInterface* plugin_manager_ptr)
|
||||
{
|
||||
plugin_manager = plugin_manager_ptr;
|
||||
server->SetPluginManager(plugin_manager);
|
||||
}
|
||||
|
||||
void ResourceManager::StopDeviceDetection()
|
||||
{
|
||||
LOG_INFO("[ResourceManager] Detection abort requested");
|
||||
|
||||
Reference in New Issue
Block a user