Ferenc Szontágh
2024-06-25 e5f77bce96abea49d65ff25e41c9ce2dae01c8dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef PLUGIN_INTERFACE_H
#define PLUGIN_INTERFACE_H
 
#include "Command.h"
#include <nlohmann/json.hpp>
 
class IPlugin {
public:
    virtual ~IPlugin() = default;
    virtual void handleMessage(const Command& cmd) = 0;
    virtual void updateConfig(const nlohmann::json& config) = 0;
};
 
extern "C" IPlugin* create();
 
#endif // PLUGIN_INTERFACE_H