Fixes to allow usage of ZeroTierOne.h with a C compiler

This commit is contained in:
Grant Limberg 2016-11-22 13:18:52 -08:00
parent 3c5e28a27d
commit c6c578ce1d

View File

@ -443,7 +443,7 @@ typedef struct
/** /**
* Node relay policy * Node relay policy
*/ */
ZT_RelayPolicy relayPolicy; enum ZT_RelayPolicy relayPolicy;
/** /**
* True if some kind of connectivity appears available * True if some kind of connectivity appears available
@ -1862,7 +1862,7 @@ void ZT_Node_clearLocalInterfaceAddresses(ZT_Node *node);
* @param ztAddress ZeroTier address (least significant 40 bits) * @param ztAddress ZeroTier address (least significant 40 bits)
* @param role New peer role (LEAF or UPSTREAM) * @param role New peer role (LEAF or UPSTREAM)
*/ */
void ZT_Node_setRole(ZT_Node *node,uint64_t ztAddress,ZT_PeerRole role); void ZT_Node_setRole(ZT_Node *node,uint64_t ztAddress,enum ZT_PeerRole role);
/** /**
* Set a network configuration master instance for this node * Set a network configuration master instance for this node