mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-06 11:12:40 +00:00
IP/Top: Add Android network interface
This commit is contained in:
parent
26302c2257
commit
20ebed51bb
7 changed files with 204 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue