Commit 40cb573e authored by Simon Morlat's avatar Simon Morlat
Browse files

add LinphoneProxyConfig.getError() java/jni

parent 255eaef3
......@@ -1430,6 +1430,10 @@ extern "C" jboolean Java_org_linphone_core_LinphoneProxyConfigImpl_publishEnable
return (jboolean)linphone_proxy_config_publish_enabled((LinphoneProxyConfig*)proxyCfg);
}
extern "C" jint Java_org_linphone_core_LinphoneProxyConfigImpl_getError(JNIEnv* env,jobject thiz,jlong ptr) {
return linphone_proxy_config_get_error((LinphoneProxyConfig *) ptr);
}
//Auth Info
extern "C" jlong Java_org_linphone_core_LinphoneAuthInfoImpl_newLinphoneAuthInfo(JNIEnv* env
......
......@@ -151,4 +151,10 @@ public interface LinphoneProxyConfig {
* @param e164 phone number
*/
public int lookupCCCFromE164(String e164);
/**
* Return reason error code.
* @return reason code.
*/
public Reason getError();
}
......@@ -158,4 +158,9 @@ class LinphoneProxyConfigImpl implements LinphoneProxyConfig {
public int lookupCCCFromE164(String e164) {
return lookupCCCFromE164(nativePtr, e164);
}
private native int getReason(long nativeptr);
@Override
public Reason getError() {
return Reason.fromInt(getReason(nativePtr));
}
}
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