mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 13:48:09 +00:00
add setMtu() getMtu() to java API
This commit is contained in:
parent
ee970aec3e
commit
815348c25c
2 changed files with 24 additions and 0 deletions
|
|
@ -1041,6 +1041,20 @@ extern "C" jint Java_org_linphone_core_LinphoneCoreImpl_getNumberOfCallLogs( JNI
|
|||
,jlong lc) {
|
||||
return (jint)ms_list_size(linphone_core_get_call_logs((LinphoneCore*)lc));
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setMtu(JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong lc
|
||||
,jint mtu) {
|
||||
linphone_core_set_mtu((LinphoneCore*)lc,mtu);
|
||||
}
|
||||
|
||||
extern "C" jint Java_org_linphone_core_LinphoneCoreImpl_getMtu(JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong lc) {
|
||||
return linphone_core_get_mtu((LinphoneCore*)lc);
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setNetworkStateReachable( JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong lc
|
||||
|
|
|
|||
|
|
@ -1140,4 +1140,14 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
public void setCallErrorTone(Reason reason, String path) {
|
||||
setCallErrorTone(nativePtr, reason.mValue, path);
|
||||
}
|
||||
private native void setMtu(long nativePtr, int mtu);
|
||||
@Override
|
||||
public void setMtu(int mtu) {
|
||||
setMtu(nativePtr,mtu);
|
||||
}
|
||||
private native int getMtu(long nativePtr);
|
||||
@Override
|
||||
public int getMtu() {
|
||||
return getMtu(nativePtr);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue