Move network classes into xmrig namespace.

This commit is contained in:
XMRig 2019-02-17 06:59:19 +07:00
parent dbdcc14672
commit ee667144e8
42 changed files with 481 additions and 332 deletions

View file

@ -292,6 +292,8 @@ bool xmrig::Config::parseUint64(int key, uint64_t arg)
void xmrig::Config::parseJSON(const rapidjson::Document &doc)
{
CommonConfig::parseJSON(doc);
const rapidjson::Value &threads = doc["threads"];
if (threads.IsArray()) {

View file

@ -62,8 +62,8 @@ public:
Network *network;
Process *process;
std::vector<xmrig::IControllerListener *> listeners;
xmrig::Config *config;
std::vector<IControllerListener *> listeners;
Config *config;
};
@ -127,7 +127,7 @@ int xmrig::Controller::init()
}
Network *xmrig::Controller::network() const
xmrig::Network *xmrig::Controller::network() const
{
assert(d_ptr->network != nullptr);

View file

@ -29,7 +29,6 @@
#include "base/kernel/interfaces/IConfigListener.h"
class Network;
class StatsData;
@ -39,6 +38,7 @@ namespace xmrig {
class Config;
class ControllerPrivate;
class IControllerListener;
class Network;
class Process;
@ -62,6 +62,8 @@ private:
ControllerPrivate *d_ptr;
};
} /* namespace xmrig */
#endif /* XMRIG_CONTROLLER_H */