make VirtualNetworkConfig a plain data class
This commit is contained in:
parent
e060ae3176
commit
54fd7c7e9a
5 changed files with 130 additions and 104 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue