mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-02-15 09:41:17 -05:00
Expose LogManager in ResourceManager so that plugins can use it
This commit is contained in:
@@ -221,6 +221,11 @@ std::vector<i2c_smbus_interface*> & ResourceManager::GetI2CBusses()
|
||||
return DetectionManager::get()->GetI2CBuses();
|
||||
}
|
||||
|
||||
LogManager* ResourceManager::GetLogManager()
|
||||
{
|
||||
return LogManager::get();
|
||||
}
|
||||
|
||||
PluginManagerInterface* ResourceManager::GetPluginManager()
|
||||
{
|
||||
return(plugin_manager);
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
using json = nlohmann::json;
|
||||
|
||||
class LogManager;
|
||||
class NetworkClient;
|
||||
class NetworkServer;
|
||||
class PluginManagerInterface;
|
||||
@@ -51,6 +52,7 @@ public:
|
||||
\*-----------------------------------------------------*/
|
||||
std::vector<NetworkClient*>& GetClients();
|
||||
filesystem::path GetConfigurationDirectory();
|
||||
LogManager* GetLogManager();
|
||||
std::vector<i2c_smbus_interface*>& GetI2CBusses();
|
||||
PluginManagerInterface* GetPluginManager();
|
||||
ProfileManager* GetProfileManager();
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "i2c_smbus.h"
|
||||
#include "filesystem.h"
|
||||
|
||||
class LogManager;
|
||||
class PluginManagerInterface;
|
||||
class ProfileManager;
|
||||
class RGBController;
|
||||
@@ -45,6 +46,7 @@ public:
|
||||
| Resource Accessors |
|
||||
\*-----------------------------------------------------*/
|
||||
virtual filesystem::path GetConfigurationDirectory() = 0;
|
||||
virtual LogManager* GetLogManager() = 0;
|
||||
virtual std::vector<i2c_smbus_interface*> & GetI2CBusses() = 0;
|
||||
virtual PluginManagerInterface* GetPluginManager() = 0;
|
||||
virtual ProfileManager* GetProfileManager() = 0;
|
||||
|
||||
Reference in New Issue
Block a user