reflect changes to ZT1_PeerRole in JNI

This commit is contained in:
Grant Limberg 2015-06-26 18:26:57 -07:00
parent 9c26d10ea6
commit c9919cc5ba
2 changed files with 8 additions and 8 deletions

View file

@ -171,11 +171,11 @@ jobject createPeerRole(JNIEnv *env, ZT1_PeerRole role)
case ZT1_PEER_ROLE_LEAF: case ZT1_PEER_ROLE_LEAF:
fieldName = "PEER_ROLE_LEAF"; fieldName = "PEER_ROLE_LEAF";
break; break;
case ZT1_PEER_ROLE_HUB: case ZT1_PEER_ROLE_RELAY:
fieldName = "PEER_ROLE_HUB"; fieldName = "PEER_ROLE_RELAY";
break; break;
case ZT1_PEER_ROLE_ROOTSERVER: case ZT1_PEER_ROLE_ROOT:
fieldName = "PEER_ROLE_ROOTSERVER"; fieldName = "PEER_ROLE_ROOT";
break; break;
} }

View file

@ -34,12 +34,12 @@ public enum PeerRole {
PEER_ROLE_LEAF, PEER_ROLE_LEAF,
/** /**
* Locally federated hub * relay node
*/ */
PEER_ROLE_HUB, PEER_ROLE_RELAY,
/** /**
* planetary rootserver * root server
*/ */
PEER_ROLE_ROOTSERVER PEER_ROLE_ROOT
} }