From 64b7d9ef82d73038509b686a46ce5816847089af Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 1 Jun 2017 07:15:46 -0700 Subject: New clustering work. --- include/ZeroTierOne.h | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) (limited to 'include') diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h index 4709b116..74fa4301 100644 --- a/include/ZeroTierOne.h +++ b/include/ZeroTierOne.h @@ -1089,6 +1089,62 @@ typedef struct unsigned long peerCount; } ZT_PeerList; +/** + * Types of stored objects that the core may wish to save or load + */ +enum ZT_StoredObjectType +{ + /** + * Node status information (reserved, not currently used) + */ + ZT_STORED_OBJECT_STATUS = 0, + + /** + * String serialized public identity + */ + ZT_STORED_OBJECT_IDENTITY_PUBLIC = 1, + + /** + * String serialized secret identity + */ + ZT_STORED_OBJECT_IDENTITY_SECRET = 1, + + /** + * Binary serialized peer state + */ + ZT_STORED_OBJECT_PEER = 3, + + /** + * Identity (other node, not this one) + */ + ZT_STORED_OBJECT_IDENTITY = 4, + + /** + * Network configuration object + */ + ZT_STORED_OBJECT_NETWORK_CONFIG = 5, + + /** + * Planet definition (object ID will be zero and should be ignored since there's only one) + */ + ZT_STORED_OBJECT_PLANET = 6, + + /** + * Moon definition + */ + ZT_STORED_OBJECT_MOON = 7, + + /** + * Multicast membership + */ + ZT_STORED_OBJECT_MULTICAST_MEMBERSHIP = 8, + + /** + * IDs above this are never used by the core and are available for implementation use + */ + ZT_STORED_OBJECT__MAX_TYPE_ID = 255 +}; + /** * An instance of a ZeroTier One node (opaque) */ -- cgit v1.2.3