mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 00:59:20 +00:00
Add get_in_call_timeout to JNI
This commit is contained in:
parent
29f891b821
commit
b21b16a98f
3 changed files with 16 additions and 0 deletions
|
|
@ -5919,6 +5919,10 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setInCallTimeout(JNIEnv
|
|||
linphone_core_set_in_call_timeout((LinphoneCore *)lc, timeout);
|
||||
}
|
||||
|
||||
extern "C" jint Java_org_linphone_core_LinphoneCoreImpl_getInCallTimeout(JNIEnv *env, jobject thiz, jlong lc) {
|
||||
return linphone_core_get_in_call_timeout((LinphoneCore *)lc);
|
||||
}
|
||||
|
||||
extern "C" jstring Java_org_linphone_core_LinphoneCoreImpl_getVersion(JNIEnv* env,jobject thiz,jlong ptr) {
|
||||
jstring jvalue =env->NewStringUTF(linphone_core_get_version());
|
||||
return jvalue;
|
||||
|
|
|
|||
|
|
@ -1931,6 +1931,13 @@ public interface LinphoneCore {
|
|||
* Once this time is elapsed (ringing included), the call is automatically hung up.
|
||||
**/
|
||||
void setInCallTimeout(int timeout);
|
||||
|
||||
/**
|
||||
* Return the call timeout in seconds.
|
||||
* @return the call timeout in seconds.
|
||||
*/
|
||||
int getInCallTimeout();
|
||||
|
||||
/**
|
||||
* Allow to control microphone level:
|
||||
* @param gain in db
|
||||
|
|
|
|||
|
|
@ -1112,6 +1112,11 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
setInCallTimeout(nativePtr, timeout);
|
||||
}
|
||||
|
||||
private native int getInCallTimeout(long ptr);
|
||||
public synchronized int getInCallTimeout() {
|
||||
return getInCallTimeout(nativePtr);
|
||||
}
|
||||
|
||||
private native void setMicrophoneGain(long ptr, float gain);
|
||||
public synchronized void setMicrophoneGain(float gain) {
|
||||
setMicrophoneGain(nativePtr, gain);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue