summaryrefslogtreecommitdiff
path: root/node/RuntimeEnvironment.hpp
diff options
context:
space:
mode:
authorGrant Limberg <glimberg@gmail.com>2015-10-21 17:35:38 -0700
committerGrant Limberg <glimberg@gmail.com>2015-10-21 17:35:38 -0700
commit6471c1f4e26c0230b40bf0102a52493aa78236b9 (patch)
treeb8791931f4d4f6becbbab794f2a0d95d9363054d /node/RuntimeEnvironment.hpp
parent21ae423feb0e63cdbdd47be921e257c1d59de27a (diff)
parenta46514b397acdf42451d41398ef77eec60744256 (diff)
downloadinfinitytier-6471c1f4e26c0230b40bf0102a52493aa78236b9.tar.gz
infinitytier-6471c1f4e26c0230b40bf0102a52493aa78236b9.zip
Merge branch 'adamierymenko-dev' into windows-ui
Diffstat (limited to 'node/RuntimeEnvironment.hpp')
-rw-r--r--node/RuntimeEnvironment.hpp24
1 files changed, 16 insertions, 8 deletions
diff --git a/node/RuntimeEnvironment.hpp b/node/RuntimeEnvironment.hpp
index e5d1f446..2ec88f72 100644
--- a/node/RuntimeEnvironment.hpp
+++ b/node/RuntimeEnvironment.hpp
@@ -43,6 +43,7 @@ class Multicaster;
class AntiRecursion;
class NetworkController;
class SelfAwareness;
+class Cluster;
/**
* Holds global state for an instance of ZeroTier::Node
@@ -51,14 +52,17 @@ class RuntimeEnvironment
{
public:
RuntimeEnvironment(Node *n) :
- node(n),
- identity(),
- localNetworkController((NetworkController *)0),
- sw((Switch *)0),
- mc((Multicaster *)0),
- antiRec((AntiRecursion *)0),
- topology((Topology *)0),
- sa((SelfAwareness *)0)
+ node(n)
+ ,identity()
+ ,localNetworkController((NetworkController *)0)
+ ,sw((Switch *)0)
+ ,mc((Multicaster *)0)
+ ,antiRec((AntiRecursion *)0)
+ ,topology((Topology *)0)
+ ,sa((SelfAwareness *)0)
+#ifdef ZT_ENABLE_CLUSTER
+ ,cluster((Cluster *)0)
+#endif
{
}
@@ -86,6 +90,10 @@ public:
AntiRecursion *antiRec;
Topology *topology;
SelfAwareness *sa;
+
+#ifdef ZT_ENABLE_CLUSTER
+ Cluster *cluster;
+#endif
};
} // namespace ZeroTier