Commit 61652e08 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Added missing extern C in Java's JNI

parent 38f8ef44
...@@ -123,7 +123,7 @@ static void linphone_android_ortp_log_handler(const char *domain, OrtpLogLevel l ...@@ -123,7 +123,7 @@ static void linphone_android_ortp_log_handler(const char *domain, OrtpLogLevel l
bctbx_free(str); bctbx_free(str);
} }
void Java_org_linphone_core_FactoryImpl_setDebugMode(JNIEnv* env, jobject thiz, jboolean isDebug, jstring jdebugTag) { extern "C" void Java_org_linphone_core_FactoryImpl_setDebugMode(JNIEnv* env, jobject thiz, jboolean isDebug, jstring jdebugTag) {
if (isDebug) { if (isDebug) {
LogDomain = GetStringUTFChars(env, jdebugTag); LogDomain = GetStringUTFChars(env, jdebugTag);
linphone_core_enable_logs_with_cb(linphone_android_ortp_log_handler); linphone_core_enable_logs_with_cb(linphone_android_ortp_log_handler);
...@@ -306,6 +306,10 @@ static {{return}} {{callbackName}}({{params}}) { ...@@ -306,6 +306,10 @@ static {{return}} {{callbackName}}({{params}}) {
{{/callbacks}} {{/callbacks}}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#ifdef __cplusplus
extern "C" {
#endif
{{#interfaces}} {{#interfaces}}
{{#isSingleListener}} {{#isSingleListener}}
void {{jniPackage}}{{className}}Impl_setListener(JNIEnv* env, jobject thiz, jlong ptr, jobject jlistener) { void {{jniPackage}}{{className}}Impl_setListener(JNIEnv* env, jobject thiz, jlong ptr, jobject jlistener) {
...@@ -422,3 +426,7 @@ jobject {{jni_package}}CoreImpl_getMediastreamerFactory(JNIEnv *env, jobject thi ...@@ -422,3 +426,7 @@ jobject {{jni_package}}CoreImpl_getMediastreamerFactory(JNIEnv *env, jobject thi
} }
{{/methods}} {{/methods}}
#ifdef __cplusplus
}
#endif
\ No newline at end of file
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