summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-26 12:49:17 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-26 12:49:17 -0700
commit5ff7733f84302bbd0ce0a578b3040122d1140f0f (patch)
tree9f69d55734bf783e4cd0ecce57556af82eb8d9ba /include
parent865acfa40f65626f41bbd718b645f57c7d6db9b2 (diff)
downloadinfinitytier-5ff7733f84302bbd0ce0a578b3040122d1140f0f.tar.gz
infinitytier-5ff7733f84302bbd0ce0a578b3040122d1140f0f.zip
More plumbing of cluster status.
Diffstat (limited to 'include')
-rw-r--r--include/ZeroTierOne.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h
index 86bffcdf..68c1e4d7 100644
--- a/include/ZeroTierOne.h
+++ b/include/ZeroTierOne.h
@@ -1517,6 +1517,17 @@ void ZT_Node_clusterRemoveMember(ZT_Node *node,unsigned int memberId);
void ZT_Node_clusterHandleIncomingMessage(ZT_Node *node,const void *msg,unsigned int len);
/**
+ * Get the current status of the cluster from this node's point of view
+ *
+ * Calling this without clusterInit() or without cluster support will just
+ * zero out the structure and show a cluster size of zero.
+ *
+ * @param node Node instance
+ * @param cs Cluster status structure to fill with data
+ */
+void ZT_Node_clusterStatus(ZT_Node *node,ZT_ClusterStatus *cs);
+
+/**
* Get ZeroTier One version
*
* @param major Result: major version