updates for origin/edge
This commit is contained in:
parent
179b064b05
commit
b7df177f33
6 changed files with 15 additions and 111 deletions
|
@ -133,15 +133,6 @@ jobject createEvent(JNIEnv *env, ZT_Event event)
|
|||
case ZT_EVENT_FATAL_ERROR_IDENTITY_COLLISION:
|
||||
fieldName = "EVENT_FATAL_ERROR_IDENTITY_COLLISION";
|
||||
break;
|
||||
case ZT_EVENT_SAW_MORE_RECENT_VERSION:
|
||||
fieldName = "EVENT_SAW_MORE_RECENT_VERSION";
|
||||
break;
|
||||
case ZT_EVENT_AUTHENTICATION_FAILURE:
|
||||
fieldName = "EVENT_AUTHENTICATION_FAILURE";
|
||||
break;
|
||||
case ZT_EVENT_INVALID_PACKET:
|
||||
fieldName = "EVENT_INVALID_PACKET";
|
||||
break;
|
||||
case ZT_EVENT_TRACE:
|
||||
fieldName = "EVENT_TRACE";
|
||||
break;
|
||||
|
@ -425,7 +416,6 @@ jobject newPeerPhysicalPath(JNIEnv *env, const ZT_PeerPhysicalPath &ppp)
|
|||
jfieldID addressField = NULL;
|
||||
jfieldID lastSendField = NULL;
|
||||
jfieldID lastReceiveField = NULL;
|
||||
jfieldID fixedField = NULL;
|
||||
jfieldID activeField = NULL;
|
||||
jfieldID preferredField = NULL;
|
||||
|
||||
|
@ -459,13 +449,6 @@ jobject newPeerPhysicalPath(JNIEnv *env, const ZT_PeerPhysicalPath &ppp)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
fixedField = lookup.findField(pppClass, "fixed", "Z");
|
||||
if(env->ExceptionCheck() || fixedField == NULL)
|
||||
{
|
||||
LOGE("Error finding fixed field");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
activeField = lookup.findField(pppClass, "active", "Z");
|
||||
if(env->ExceptionCheck() || activeField == NULL)
|
||||
{
|
||||
|
@ -503,7 +486,6 @@ jobject newPeerPhysicalPath(JNIEnv *env, const ZT_PeerPhysicalPath &ppp)
|
|||
env->SetObjectField(pppObject, addressField, addressObject);
|
||||
env->SetLongField(pppObject, lastSendField, ppp.lastSend);
|
||||
env->SetLongField(pppObject, lastReceiveField, ppp.lastReceive);
|
||||
env->SetBooleanField(pppObject, fixedField, ppp.fixed);
|
||||
env->SetBooleanField(pppObject, activeField, ppp.active);
|
||||
env->SetBooleanField(pppObject, preferredField, ppp.preferred);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue