Files
eUi/include/interface.h
T

18 lines
477 B
C++
Raw Normal View History

2025-06-05 11:30:12 +08:00
#include <nlohmannJson.hpp>
#include <qtBridge.h>
class IBackend {
public:
virtual ~IBackend() = default;
virtual void test() = 0;
2025-06-15 03:06:01 +08:00
virtual void init(qtFuncBridge*,nlohmann::json& json) = 0;
2025-03-28 18:33:43 +08:00
virtual void cleanup() = 0;
};
extern "C" {
__declspec(dllexport) IBackend* CreateBackend();
__declspec(dllexport) void ReleaseBackend(IBackend* backend);
}
typedef IBackend* (*CreateBackendFunc)();
typedef void (*ReleaseBackendFunc)(IBackend*);
#pragma once