mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Integration of Android's wake locks
This commit is contained in:
parent
614df3fd3f
commit
4677df1e93
1 changed files with 9 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ extern "C" void libmsbcg729_init();
|
|||
#ifdef HAVE_WEBRTC
|
||||
extern "C" void libmswebrtc_init();
|
||||
#endif
|
||||
#include <belle-sip/wakelock.h>
|
||||
#endif /*ANDROID*/
|
||||
|
||||
|
||||
|
|
@ -3459,6 +3460,14 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setAudioDscp(JNIEnv* env
|
|||
linphone_core_set_audio_dscp((LinphoneCore*)ptr,dscp);
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setAndroidPowerManager(JNIEnv *env, jclass cls, jobject pm) {
|
||||
#ifdef ANDROID
|
||||
JavaVM *jvm;
|
||||
GetJavaVM(env, &jvm);
|
||||
bellesip_wake_lock_init(jvm, pm);
|
||||
#endif
|
||||
}
|
||||
|
||||
extern "C" jint Java_org_linphone_core_LinphoneCoreImpl_getAudioDscp(JNIEnv* env,jobject thiz,jlong ptr){
|
||||
return linphone_core_get_audio_dscp((LinphoneCore*)ptr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue