add setMtu() getMtu() to java API

This commit is contained in:
Simon Morlat 2014-03-13 17:42:28 +01:00
parent ee970aec3e
commit 815348c25c
2 changed files with 24 additions and 0 deletions

View file

@ -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

View file

@ -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);
}
}