Refactoring... lalalala...

This commit is contained in:
Adam Ierymenko 2015-03-31 18:17:11 -07:00
parent 36eab4f1a9
commit b723855751
4 changed files with 145 additions and 25 deletions

View file

@ -60,7 +60,8 @@ class NetworkConfigMaster;
class RuntimeEnvironment
{
public:
RuntimeEnvironment() :
RuntimeEnvironment(Node *n) :
node(n),
identity(),
netconfMaster((NetworkConfigMaster *)0),
log((Logger *)0),
@ -68,12 +69,13 @@ public:
sw((Switch *)0),
mc((Multicaster *)0),
antiRec((AntiRecursion *)0),
topology((Topology *)0),
nc((NodeConfig *)0),
node((Node *)0)
topology((Topology *)0)
{
}
// Node instance that owns this RuntimeEnvironment
Node *const node;
// This node's identity
Identity identity;
@ -94,8 +96,6 @@ public:
Multicaster *mc;
AntiRecursion *antiRec;
Topology *topology;
NodeConfig *nc;
Node *node;
};
} // namespace ZeroTier