mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-22 21:12:43 -05:00
Move network classes into xmrig namespace.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user