mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
IP/Top: Add Android network interface
This commit is contained in:
@ -65,3 +65,24 @@ bool DeleteAndroidContent(const std::string& uri)
|
||||
return env->CallStaticBooleanMethod(IDCache::GetContentHandlerClass(),
|
||||
IDCache::GetContentHandlerDelete(), ToJString(env, uri));
|
||||
}
|
||||
|
||||
int GetNetworkIpAddress()
|
||||
{
|
||||
JNIEnv* env = IDCache::GetEnvForThread();
|
||||
return env->CallStaticIntMethod(IDCache::GetNetworkHelperClass(),
|
||||
IDCache::GetNetworkHelperGetNetworkIpAddress());
|
||||
}
|
||||
|
||||
int GetNetworkPrefixLength()
|
||||
{
|
||||
JNIEnv* env = IDCache::GetEnvForThread();
|
||||
return env->CallStaticIntMethod(IDCache::GetNetworkHelperClass(),
|
||||
IDCache::GetNetworkHelperGetNetworkPrefixLength());
|
||||
}
|
||||
|
||||
int GetNetworkGateway()
|
||||
{
|
||||
JNIEnv* env = IDCache::GetEnvForThread();
|
||||
return env->CallStaticIntMethod(IDCache::GetNetworkHelperClass(),
|
||||
IDCache::GetNetworkHelperGetNetworkGateway());
|
||||
}
|
||||
|
Reference in New Issue
Block a user