mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-29 17:29:20 +00:00
Added setDomain to Java LinphoneAddress
This commit is contained in:
parent
2cc6903827
commit
7435941031
2 changed files with 10 additions and 2 deletions
|
|
@ -1387,7 +1387,14 @@ extern "C" jstring Java_org_linphone_core_LinphoneAddressImpl_getDomain(JNIEnv*
|
|||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneAddressImpl_setDomain(JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong ptr
|
||||
,jstring jdomain) {
|
||||
const char* domain = env->GetStringUTFChars(jdomain, NULL);
|
||||
linphone_address_set_domain((LinphoneAddress*)ptr, domain);
|
||||
env->ReleaseStringUTFChars(jdomain, domain);
|
||||
}
|
||||
extern "C" jstring Java_org_linphone_core_LinphoneAddressImpl_toString(JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong ptr) {
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ public class LinphoneAddressImpl implements LinphoneAddress {
|
|||
private native String toUri(long ptr);
|
||||
private native void setDisplayName(long ptr,String name);
|
||||
private native String toString(long ptr);
|
||||
private native void setDomain(long ptr, String domain);
|
||||
|
||||
protected LinphoneAddressImpl(String identity) {
|
||||
nativePtr = newLinphoneAddressImpl(identity, null);
|
||||
|
|
@ -85,7 +86,7 @@ public class LinphoneAddressImpl implements LinphoneAddress {
|
|||
return getPortInt();
|
||||
}
|
||||
public void setDomain(String domain) {
|
||||
throw new RuntimeException("Not implemented");
|
||||
setDomain(nativePtr, domain);
|
||||
}
|
||||
public void setPort(String port) {
|
||||
throw new RuntimeException("Not implemented");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue