Expose LogManager in ResourceManager so that plugins can use it

This commit is contained in:
Adam Honse committed 2026-05-07 17:24:45 -05:00
1 parent f24b56b64f
commit f47a22fb2f
3 files changed
+9

No files matched your search

+5
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);
+2
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();
+2
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;