Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
4677df1e
Commit
4677df1e
authored
Aug 25, 2014
by
François Grisez
Browse files
Integration of Android's wake locks
parent
614df3fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
coreapi/linphonecore_jni.cc
coreapi/linphonecore_jni.cc
+9
-0
No files found.
coreapi/linphonecore_jni.cc
View file @
4677df1e
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment