Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
cb3513fa
Commit
cb3513fa
authored
Aug 01, 2018
by
Benjamin REIS
Browse files
add get/set api to friendlist's bodyless subscrption
parent
22c0c722
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
coreapi/friendlist.c
coreapi/friendlist.c
+8
-0
include/linphone/friendlist.h
include/linphone/friendlist.h
+14
-0
No files found.
coreapi/friendlist.c
View file @
cb3513fa
...
...
@@ -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
);
...
...
include/linphone/friendlist.h
View file @
cb3513fa
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment