Added JNI method to easily set Android log handler

This commit is contained in:
Sylvain Berfini 2016-11-18 16:27:18 +01:00
parent 2508ed05fe
commit b7289326db

View file

@ -146,6 +146,10 @@ int dumbMethodForAllowingUsageOfCpuFeaturesFromStaticLibMediastream() {
int dumbMethodForAllowingUsageOfMsAudioDiffFromStaticLibMediastream() {
return ms_audio_diff(NULL, NULL, NULL, 0, NULL, NULL);
}
extern "C" void setAndroidLogHandler() {
linphone_core_enable_logs_with_cb(linphone_android_ortp_log_handler);
}
#endif /*ANDROID*/