JNI wrapper for isVCardSupported method

This commit is contained in:
Sylvain Berfini 2016-07-25 13:53:49 +02:00
parent 7bd469baa0
commit c68e1877f2
3 changed files with 16 additions and 1 deletions

View file

@ -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

View file

@ -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.

View file

@ -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));
}