diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-06-01 07:15:46 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-06-01 07:15:46 -0700 |
commit | 64b7d9ef82d73038509b686a46ce5816847089af (patch) | |
tree | 92c72f7a7a9b1a13cb46ed4369ebc95fdc19d3b7 /include | |
parent | 2a4a50b1daaec74d7a4d08869ead31ff1f966fa1 (diff) | |
download | infinitytier-64b7d9ef82d73038509b686a46ce5816847089af.tar.gz infinitytier-64b7d9ef82d73038509b686a46ce5816847089af.zip |
New clustering work.
Diffstat (limited to 'include')
-rw-r--r-- | include/ZeroTierOne.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h index 4709b116..74fa4301 100644 --- a/include/ZeroTierOne.h +++ b/include/ZeroTierOne.h @@ -1090,6 +1090,62 @@ typedef struct } 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) */ typedef void ZT_Node; |