Add RescanDevices to plugin API

This commit is contained in:
Adam Honse
2026-04-09 23:19:19 -05:00
parent 0ba254e38f
commit e22e88d97d
3 changed files with 7 additions and 0 deletions

View File

@@ -154,6 +154,11 @@ std::string OpenRGBPluginAPI::GetDetectionString()
return(resource_manager->GetDetectionString());
}
void OpenRGBPluginAPI::RescanDevices()
{
resource_manager->RescanDevices();
}
void OpenRGBPluginAPI::WaitForDetection()
{
resource_manager->WaitForDetection();

View File

@@ -50,6 +50,7 @@ public:
bool GetDetectionEnabled();
unsigned int GetDetectionPercent();
std::string GetDetectionString();
void RescanDevices();
void WaitForDetection();
std::vector<RGBController*> & GetRGBControllers();

View File

@@ -101,6 +101,7 @@ public:
virtual bool GetDetectionEnabled() = 0;
virtual unsigned int GetDetectionPercent() = 0;
virtual std::string GetDetectionString() = 0;
virtual void RescanDevices() = 0;
virtual void WaitForDetection() = 0;
virtual std::vector<RGBController*> & GetRGBControllers() = 0;