mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 12:38:09 +00:00
add LinphoneCore.setUserAgent() java wrapper
This commit is contained in:
parent
b89851b1d3
commit
bdeb9679fe
2 changed files with 10 additions and 0 deletions
|
|
@ -1687,6 +1687,14 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_tunnelEnableLogs(JNIEnv
|
|||
#endif
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setUserAgent(JNIEnv *env,jobject thiz,jlong pCore, jstring name, jstring version){
|
||||
const char* cname=env->GetStringUTFChars(name, NULL);
|
||||
const char* cversion=env->GetStringUTFChars(version, NULL);
|
||||
linphone_core_set_user_agent(cname,cversion);
|
||||
env->ReleaseStringUTFChars(name, cname);
|
||||
env->ReleaseStringUTFChars(version, cversion);
|
||||
}
|
||||
|
||||
extern "C" jboolean Java_org_linphone_core_LinphoneCoreImpl_isTunnelAvailable(JNIEnv *env,jobject thiz){
|
||||
return linphone_core_tunnel_available();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -759,4 +759,6 @@ public interface LinphoneCore {
|
|||
LinphoneProxyConfig[] getProxyConfigList();
|
||||
|
||||
void setVideoPolicy(boolean autoInitiate, boolean autoAccept);
|
||||
|
||||
void setUserAgent(String name, String version);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue