mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-02-27 19:56:06 -05:00
Initial fan controller API and Thermaltake Riing controller implementation
This commit is contained in:
@@ -191,6 +191,11 @@ std::vector<i2c_smbus_interface*> & ResourceManager::GetI2CBusses()
|
||||
return busses;
|
||||
}
|
||||
|
||||
void ResourceManager::RegisterFanController(FanController *fan_controller)
|
||||
{
|
||||
fan_controllers.push_back(fan_controller);
|
||||
}
|
||||
|
||||
void ResourceManager::RegisterRGBController(RGBController *rgb_controller)
|
||||
{
|
||||
LOG_INFO("[%s] Registering RGB controller", rgb_controller->name.c_str());
|
||||
@@ -254,6 +259,11 @@ void ResourceManager::UnregisterRGBController(RGBController* rgb_controller)
|
||||
UpdateDeviceList();
|
||||
}
|
||||
|
||||
std::vector<FanController*> & ResourceManager::GetFanControllers()
|
||||
{
|
||||
return fan_controllers;
|
||||
}
|
||||
|
||||
std::vector<RGBController*> & ResourceManager::GetRGBControllers()
|
||||
{
|
||||
return rgb_controllers;
|
||||
|
||||
Reference in New Issue
Block a user