Commit 1a761ebe authored by Erwan Croze's avatar Erwan Croze 👋🏻

Fix loadXmlFile in Linphone JNI

parent c9ada30c
...@@ -6022,7 +6022,7 @@ extern "C" void Java_org_linphone_core_LpConfigImpl_sync(JNIEnv *env, jobject th ...@@ -6022,7 +6022,7 @@ extern "C" void Java_org_linphone_core_LpConfigImpl_sync(JNIEnv *env, jobject th
extern "C" void Java_org_linphone_core_LpConfigImpl_loadXmlFile(JNIEnv *env, jobject thiz, jlong lpc, jstring jfilename) { extern "C" void Java_org_linphone_core_LpConfigImpl_loadXmlFile(JNIEnv *env, jobject thiz, jlong lpc, jstring jfilename) {
const char *filename = GetStringUTFChars(env, jfilename); const char *filename = GetStringUTFChars(env, jfilename);
LpConfig *lp = (LpConfig *)lpc; LpConfig *lp = (LpConfig *)lpc;
linphone_config_load_from_xml_file(lp, filename, NULL, NULL); linphone_config_load_from_xml_file(lp, filename);
ReleaseStringUTFChars(env, jfilename, filename); ReleaseStringUTFChars(env, jfilename, filename);
} }
......
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