mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 05:38:14 +00:00
Exposed setContactParameters method in JNI
This commit is contained in:
parent
febe300c38
commit
62ce92ff69
2 changed files with 11 additions and 0 deletions
|
|
@ -955,6 +955,11 @@ extern "C" jstring Java_org_linphone_core_LinphoneProxyConfigImpl_getProxy(JNIEn
|
|||
return NULL;
|
||||
}
|
||||
}
|
||||
extern "C" void Java_org_linphone_core_LinphoneProxyConfigImpl_setContactParameters(JNIEnv* env,jobject thiz,jlong proxyCfg,jstring jparams) {
|
||||
const char* params = env->GetStringUTFChars(jparams, NULL);
|
||||
linphone_proxy_config_set_contact_parameters((LinphoneProxyConfig*)proxyCfg, params);
|
||||
env->ReleaseStringUTFChars(jparams, params);
|
||||
}
|
||||
extern "C" int Java_org_linphone_core_LinphoneProxyConfigImpl_setRoute(JNIEnv* env,jobject thiz,jlong proxyCfg,jstring jroute) {
|
||||
if (jroute != NULL) {
|
||||
const char* route = env->GetStringUTFChars(jroute, NULL);
|
||||
|
|
|
|||
|
|
@ -133,4 +133,10 @@ public interface LinphoneProxyConfig {
|
|||
* @param delay expiration time in seconds
|
||||
*/
|
||||
void setExpires(int delay);
|
||||
|
||||
/**
|
||||
* Sets parameters for the contact
|
||||
* @param parameters to add
|
||||
*/
|
||||
public void setContactParameters(String params);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue