Commit 0a0867e4 authored by Benjamin REIS's avatar Benjamin REIS

Merge branch 'feature/bodyless_presence_subscription'

parents 0a8c7836 4e318499
Pipeline #218 failed with stage
in 0 seconds
This diff is collapsed.
......@@ -2173,7 +2173,8 @@ static void linphone_core_internal_notify_received(LinphoneCore *lc, LinphoneEve
for (const bctbx_list_t *it = linphone_core_get_friends_lists(lc); it; it = bctbx_list_next(it)) {
LinphoneFriendList *list = reinterpret_cast<LinphoneFriendList *>(bctbx_list_get_data(it));
ms_message("Notify presence for list %p", list);
linphone_friend_list_notify_presence_received(list, lev, body);
if (list->event == lev)
linphone_friend_list_notify_presence_received(list, lev, body);
}
} else if (strcmp(notified_event, "conference") == 0) {
const LinphoneAddress *resource = linphone_event_get_resource(lev);
......
......@@ -124,7 +124,7 @@ struct _LinphoneProxyConfig
/*use to check if server config has changed between edit() and done()*/
LinphoneAddress *saved_proxy;
LinphoneAddress *saved_identity;
/*---*/
LinphoneAddress *pending_contact; /*use to store previous contact in case of network failure*/
LinphoneEvent *presence_publish_event;
......@@ -221,6 +221,7 @@ struct _LinphoneFriendList {
int revision;
LinphoneFriendListCbs *cbs;
bool_t enable_subscriptions;
bool_t bodyless_subscription;
};
BELLE_SIP_DECLARE_VPTR_NO_EXPORT(LinphoneFriendList);
......
......@@ -187,6 +187,20 @@ LINPHONE_PUBLIC const char * linphone_friend_list_get_uri(const LinphoneFriendLi
**/
LINPHONE_PUBLIC void linphone_friend_list_set_uri(LinphoneFriendList *list, const char *uri);
/**
* Get wheter the subscription of the friend list is bodyless or not.
* @param[in] list #LinphoneFriendList object.
* @return Wheter the subscription of the friend list is bodyless or not.
**/
LINPHONE_PUBLIC bool_t linphone_friend_list_is_subscription_bodyless(LinphoneFriendList *list);
/**
* Set wheter the subscription of the friend list is bodyless or not.
* @param[in] list #LinphoneFriendList object.
* @param[in] a boolean telling if the subscription of the friend list is bodyless or not.
**/
LINPHONE_PUBLIC void linphone_friend_list_set_subscription_bodyless(LinphoneFriendList *list, bool_t bodyless);
/**
* Sets the revision from the last synchronization.
* @param[in] list #LinphoneFriendList object.
......
This diff is collapsed.
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