Commit cb3513fa authored by Benjamin REIS's avatar Benjamin REIS

add get/set api to friendlist's bodyless subscrption

parent 22c0c722
......@@ -1056,6 +1056,14 @@ void linphone_friend_list_set_uri(LinphoneFriendList *list, const char *uri) {
}
}
bool_t linphone_friend_list_is_subscription_bodyless(LinphoneFriendList *list) {
return list->bodyless_subscription;
}
void linphone_friend_list_set_subscription_bodyless(LinphoneFriendList *list, bool_t bodyless) {
list->bodyless_subscription = bodyless;
}
void linphone_friend_list_update_revision(LinphoneFriendList *list, int rev) {
list->revision = rev;
linphone_core_store_friends_list_in_db(list->lc, list);
......
......@@ -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.
......
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