Move network classes into xmrig namespace.
This commit is contained in:
parent
dbdcc14672
commit
ee667144e8
42 changed files with 481 additions and 332 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue