Make things compile with Android NDK again
This commit is contained in:
parent
6a027c9c0a
commit
71ae678930
3 changed files with 4 additions and 38 deletions
|
@ -32,8 +32,6 @@
|
|||
#include <ZeroTierOne.h>
|
||||
#include "Mutex.hpp"
|
||||
|
||||
#include "PortMapper.hpp"
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <assert.h>
|
||||
|
@ -60,7 +58,6 @@ namespace {
|
|||
, configListener(NULL)
|
||||
, pathChecker(NULL)
|
||||
, callbacks(NULL)
|
||||
, portMapper(NULL)
|
||||
{
|
||||
callbacks = (ZT_Node_Callbacks*)malloc(sizeof(ZT_Node_Callbacks));
|
||||
memset(callbacks, 0, sizeof(ZT_Node_Callbacks));
|
||||
|
@ -81,9 +78,6 @@ namespace {
|
|||
|
||||
free(callbacks);
|
||||
callbacks = NULL;
|
||||
|
||||
delete portMapper;
|
||||
portMapper = NULL;
|
||||
}
|
||||
|
||||
int64_t id;
|
||||
|
@ -101,8 +95,6 @@ namespace {
|
|||
jobject pathChecker;
|
||||
|
||||
ZT_Node_Callbacks *callbacks;
|
||||
|
||||
ZeroTier::PortMapper *portMapper;
|
||||
};
|
||||
|
||||
|
||||
|
@ -881,11 +873,6 @@ JNIEXPORT jobject JNICALL Java_com_zerotier_sdk_Node_node_1init(
|
|||
}
|
||||
|
||||
uint64_t nodeId = ZT_Node_address(node);
|
||||
if (nodeId != 0) {
|
||||
char uniqueName[64];
|
||||
snprintf(uniqueName, sizeof(uniqueName), "ZeroTier Android/%.10llx@%u", (unsigned long long)nodeId, 9993);
|
||||
ref->portMapper = new ZeroTier::PortMapper(9993, uniqueName);
|
||||
}
|
||||
|
||||
ZeroTier::Mutex::Lock lock(nodeMapMutex);
|
||||
ref->node = node;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue