mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-24 06:25:01 -04:00
Add RescanDevices to plugin API
This commit is contained in:
@@ -154,6 +154,11 @@ std::string OpenRGBPluginAPI::GetDetectionString()
|
||||
return(resource_manager->GetDetectionString());
|
||||
}
|
||||
|
||||
void OpenRGBPluginAPI::RescanDevices()
|
||||
{
|
||||
resource_manager->RescanDevices();
|
||||
}
|
||||
|
||||
void OpenRGBPluginAPI::WaitForDetection()
|
||||
{
|
||||
resource_manager->WaitForDetection();
|
||||
|
||||
@@ -50,6 +50,7 @@ public:
|
||||
bool GetDetectionEnabled();
|
||||
unsigned int GetDetectionPercent();
|
||||
std::string GetDetectionString();
|
||||
void RescanDevices();
|
||||
void WaitForDetection();
|
||||
std::vector<RGBController*> & GetRGBControllers();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user