JNI for call pause and resume.

This commit is contained in:
Guillaume Beraudo 2011-04-20 15:37:25 +02:00
parent 0601440e03
commit 918759ba07
2 changed files with 13 additions and 0 deletions

View file

@ -1248,3 +1248,12 @@ extern "C" jboolean Java_org_linphone_core_Version_nativeHasNeon(JNIEnv *env){
return 0;
}
extern "C" jint Java_org_linphone_core_LinphoneCoreImpl_pauseCall(JNIEnv *env,jobject thiz,jlong pCore, jlong pCall) {
return linphone_core_pause_call((LinphoneCore *) pCore, (LinphoneCall *) pCall);
}
extern "C" jint Java_org_linphone_core_LinphoneCoreImpl_pauseAllCalls(JNIEnv *env,jobject thiz,jlong pCore) {
return linphone_core_pause_all_calls((LinphoneCore *) pCore);
}
extern "C" jint Java_org_linphone_core_LinphoneCoreImpl_resumeCall(JNIEnv *env,jobject thiz,jlong pCore, jlong pCall) {
return linphone_core_resume_call((LinphoneCore *) pCore, (LinphoneCall *) pCall);
}

View file

@ -565,4 +565,8 @@ public interface LinphoneCore {
void enableIpv6(boolean enable);
void adjustSoftwareVolume(int i);
boolean pauseCall(LinphoneCall call);
boolean resumeCall(LinphoneCall call);
boolean pauseAllCalls();
}