Commit 4677df1e authored by François Grisez's avatar François Grisez
Browse files

Integration of Android's wake locks

parent 614df3fd
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment