Expose LogManager in ResourceManager so that plugins can use it

This commit is contained in:
Adam Honse
2026-01-24 22:33:40 -06:00
parent c662bc50fa
commit a36060f1f7
3 changed files with 9 additions and 0 deletions

View File

@@ -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);

View File

@@ -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();

View File

@@ -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;