More flexible API handling for mining backends.

This commit is contained in:
XMRig
2019-08-13 02:38:10 +07:00
parent 79315bad8a
commit 8f070d7648
4 changed files with 54 additions and 48 deletions

View File

@@ -46,8 +46,6 @@ public:
CpuBackend(Controller *controller);
~CpuBackend() override;
std::pair<unsigned, unsigned> hugePages() const;
protected:
bool isEnabled() const override;
bool isEnabled(const Algorithm &algorithm) const override;
@@ -63,6 +61,7 @@ protected:
# ifdef XMRIG_FEATURE_API
rapidjson::Value toJSON(rapidjson::Document &doc) const override;
void handleRequest(IApiRequest &request) override;
# endif
private: