summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-01-27 15:27:26 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-01-27 15:27:26 -0800
commit9f7919f71f6b4326e73759923d2cf747affc0244 (patch)
tree934294697a07df005e3f0df56a085f3eeb292b38 /include
parent0b3b994241161c996c8432a2fb25e47b0f84c359 (diff)
downloadinfinitytier-9f7919f71f6b4326e73759923d2cf747affc0244.tar.gz
infinitytier-9f7919f71f6b4326e73759923d2cf747affc0244.zip
Add comments to join ("orbit") moons.
Diffstat (limited to 'include')
-rw-r--r--include/ZeroTierOne.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h
index f75638f8..6c50a0a6 100644
--- a/include/ZeroTierOne.h
+++ b/include/ZeroTierOne.h
@@ -1780,6 +1780,28 @@ enum ZT_ResultCode ZT_Node_multicastSubscribe(ZT_Node *node,uint64_t nwid,uint64
enum ZT_ResultCode ZT_Node_multicastUnsubscribe(ZT_Node *node,uint64_t nwid,uint64_t multicastGroup,unsigned long multicastAdi);
/**
+ * Add or update a moon
+ *
+ * Moons are persisted in the data store in moons.d/, so this can persist
+ * across invocations if the contents of moon.d are scanned and orbit is
+ * called for each on startup.
+ *
+ * @param moonWorldId Moon's world ID
+ * @param len Length of moonWorld in bytes
+ * @return Error if moon was invalid or failed to be added
+ */
+enum ZT_ResultCode ZT_Node_orbit(ZT_Node *node,uint64_t moonWorldId);
+
+/**
+ * Remove a moon (does nothing if not present)
+ *
+ * @param node Node instance
+ * @param moonWorldId World ID of moon to remove
+ * @return Error if anything bad happened
+ */
+ZT_ResultCode ZT_Node_deorbit(ZT_Node *node,uint64_t moonWorldId);
+
+/**
* Get this node's 40-bit ZeroTier address
*
* @param node Node instance