Commit c68e1877 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

JNI wrapper for isVCardSupported method

parent 7bd469ba
......@@ -2304,6 +2304,11 @@ extern "C" jboolean Java_org_linphone_core_LinphoneCoreImpl_isVideoSupported(JNI
return (jboolean)linphone_core_video_supported((LinphoneCore*)lc);
}
extern "C" jboolean Java_org_linphone_core_LinphoneCoreImpl_isVCardSupported(JNIEnv* env
,jobject thiz
,jlong lc) {
return (jboolean)linphone_core_vcard_supported((LinphoneCore*)lc);
}
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setPlayFile(JNIEnv* env
,jobject thiz
......
......@@ -1134,10 +1134,16 @@ public interface LinphoneCore {
/**
* Teturns true if the underlying sdk support video
* Returns true if the underlying sdk support video
*
* */
boolean isVideoSupported();
/**
* Returns true if the underlying sdk support vCards
*
* */
boolean isVCardSupported();
/**
* Enables video globally.
......
......@@ -109,6 +109,7 @@ class LinphoneCoreImpl implements LinphoneCore {
private native void enableVideo(long nativePtr,boolean vcap_enabled,boolean display_enabled);
private native boolean isVideoEnabled(long nativePtr);
private native boolean isVideoSupported(long nativePtr);
private native boolean isVCardSupported(long nativePtr);
private native void setFirewallPolicy(long nativePtr, int enum_value);
private native int getFirewallPolicy(long nativePtr);
private native Object createNatPolicy(long nativePtr);
......@@ -524,6 +525,9 @@ class LinphoneCoreImpl implements LinphoneCore {
public synchronized boolean isVideoSupported() {
return isVideoSupported(nativePtr);
}
public synchronized boolean isVCardSupported() {
return isVCardSupported(nativePtr);
}
public synchronized FirewallPolicy getFirewallPolicy() {
return FirewallPolicy.fromInt(getFirewallPolicy(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