Commit 75e34088 authored by Yann Diorcet's avatar Yann Diorcet
Browse files

Merge branch 'master' into belle-sip

parents 92285141 bdf69fd4
......@@ -2299,6 +2299,11 @@ extern "C" jlong Java_org_linphone_core_LpConfigImpl_newLpConfigImpl(JNIEnv *env
return (jlong) lp;
}
extern "C" void Java_org_linphone_core_LpConfigImpl_sync(JNIEnv *env, jobject thiz, jlong lpc) {
LpConfig *lp = (LpConfig *)lpc;
lp_config_sync(lp);
}
extern "C" void Java_org_linphone_core_LpConfigImpl_delete(JNIEnv *env, jobject thiz, jlong lpc) {
LpConfig *lp = (LpConfig *)lpc;
lp_config_destroy(lp);
......
......@@ -45,4 +45,9 @@ public interface LpConfig {
* @param key
*/
void setInt(String section, String key, int value);
/**
* Synchronize LpConfig with file
*/
void sync();
}
......@@ -41,6 +41,11 @@ class LpConfigImpl implements LpConfig {
}
}
private native void sync(long ptr);
public void sync() {
sync(nativePtr);
}
private native void setInt(long ptr, String section, String key, int value);
public void setInt(String section, String key, int value) {
setInt(nativePtr, section, key, value);
......
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