mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-13 04:38:28 +00:00
make VirtualNetworkConfig a plain data class
This commit is contained in:
@ -124,13 +124,17 @@ namespace {
|
||||
return -101;
|
||||
}
|
||||
|
||||
jobject networkConfigObject = newNetworkConfig(env, *config);
|
||||
if(networkConfigObject == NULL)
|
||||
{
|
||||
LOGE("Error creating VirtualNetworkConfig object");
|
||||
if (config == NULL) {
|
||||
LOGE("Config is NULL");
|
||||
return -102;
|
||||
}
|
||||
|
||||
jobject networkConfigObject = newNetworkConfig(env, *config);
|
||||
if(env->ExceptionCheck() || networkConfigObject == NULL)
|
||||
{
|
||||
return -103;
|
||||
}
|
||||
|
||||
return env->CallIntMethod(
|
||||
ref->configListener,
|
||||
VirtualNetworkConfigListener_onNetworkConfigurationUpdated_method,
|
||||
|
Reference in New Issue
Block a user