More flexible API handling for mining backends.

This commit is contained in:
XMRig 2019-08-13 02:38:10 +07:00
parent 36da54b8ce
commit f9f04e4b2e
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: