Move plugin SDK integration from callback into plugin API and PluginManager

This commit is contained in:
Adam Honse
2025-07-24 12:08:11 -05:00
parent 1f2b00b192
commit 080d22cbd5
10 changed files with 175 additions and 68 deletions

View File

@@ -19,12 +19,12 @@
#include <thread>
#include <string>
#include <vector>
#include <nlohmann/json.hpp>
#include "SPDWrapper.h"
#include "hidapi_wrapper.h"
#include "i2c_smbus.h"
#include "ResourceManagerInterface.h"
#include "filesystem.h"
#include <nlohmann/json.hpp>
using json = nlohmann::json;
@@ -35,6 +35,7 @@ using json = nlohmann::json;
struct hid_device_info;
class NetworkClient;
class NetworkServer;
class PluginManagerInterface;
class ProfileManager;
class RGBController;
class SettingsManager;
@@ -167,6 +168,7 @@ public:
std::vector<NetworkClient*>& GetClients();
NetworkServer* GetServer();
PluginManagerInterface* GetPluginManager();
ProfileManager* GetProfileManager();
SettingsManager* GetSettingsManager();
@@ -190,6 +192,8 @@ public:
void RescanDevices();
void SetPluginManager(PluginManagerInterface* plugin_manager_ptr);
void StopDeviceDetection();
void WaitForInitialization();
@@ -259,6 +263,11 @@ private:
\*-----------------------------------------------------*/
bool initial_detection;
/*-----------------------------------------------------*\
| Plugin Manager |
\*-----------------------------------------------------*/
PluginManagerInterface* plugin_manager;
/*-----------------------------------------------------*\
| Profile Manager |
\*-----------------------------------------------------*/