mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 03:28:07 +00:00
JNI wrapper for linphone_friend_list_close_subscriptions method
This commit is contained in:
parent
11809fffc8
commit
9efcd5f610
3 changed files with 13 additions and 0 deletions
|
|
@ -3454,6 +3454,10 @@ extern "C" jobjectArray Java_org_linphone_core_LinphoneFriendListImpl_getFriendL
|
|||
return jFriends;
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneFriendListImpl_closeSubscriptions(JNIEnv* env, jobject thiz, jlong friendListptr) {
|
||||
linphone_friend_list_close_subscriptions((LinphoneFriendList*)friendListptr);
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneFriendListImpl_updateSubscriptions(JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong friendListptr
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ public interface LinphoneFriendList {
|
|||
public void addLocalFriend(LinphoneFriend friend);
|
||||
public LinphoneFriend[] getFriendList();
|
||||
public void updateSubscriptions(LinphoneProxyConfig proxyConfig,boolean onlyWhenRegistered);
|
||||
public void closeSubscriptions();
|
||||
public LinphoneFriend findFriendByUri(String uri);
|
||||
public void setUri(String uri);
|
||||
public void synchronizeFriendsFromServer();
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ class LinphoneFriendListImpl implements LinphoneFriendList, Serializable {
|
|||
private native void addLocalFriend(long nativePtr, long friendPtr);
|
||||
private native LinphoneFriend[] getFriendList(long nativePtr);
|
||||
private native void updateSubscriptions(long nativePtr, long proxyConfigPtr, boolean onlyWhenRegistered);
|
||||
private native void closeSubscriptions(long nativePtr);
|
||||
private native Object getCore(long ptr);
|
||||
private native LinphoneFriend findFriendByUri(long nativePtr, String uri);
|
||||
private native void setListener(long ptr, LinphoneFriendListListener listener);
|
||||
|
|
@ -73,6 +74,13 @@ class LinphoneFriendListImpl implements LinphoneFriendList, Serializable {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void closeSubscriptions() {
|
||||
synchronized(getSyncObject()) {
|
||||
closeSubscriptions(nativePtr);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public LinphoneFriend findFriendByUri(String uri) {
|
||||
synchronized(getSyncObject()){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue