From 7aedeaacb268e0d2dfb141a2f4709055f9a3d2fd Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Mon, 1 Feb 2016 16:59:46 +0100 Subject: [PATCH] Added missing linphone_friend_list_get_core method --- coreapi/friendlist.c | 4 ++++ coreapi/friendlist.h | 11 +++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/coreapi/friendlist.c b/coreapi/friendlist.c index 24e4cf11b..7aa70ca3d 100644 --- a/coreapi/friendlist.c +++ b/coreapi/friendlist.c @@ -688,3 +688,7 @@ void linphone_friend_list_subscription_state_changed(LinphoneCore *lc, LinphoneE } } } + +LinphoneCore* linphone_friend_list_get_core(LinphoneFriendList *list) { + return list->lc; +} diff --git a/coreapi/friendlist.h b/coreapi/friendlist.h index 1bc643139..21a760edf 100644 --- a/coreapi/friendlist.h +++ b/coreapi/friendlist.h @@ -313,17 +313,24 @@ LINPHONE_PUBLIC LinphoneFriendListContactUpdatedCb linphone_friend_list_cbs_get_ LINPHONE_PUBLIC void linphone_friend_list_cbs_set_contact_updated(LinphoneFriendListCbs *cbs, LinphoneFriendListContactUpdatedCb cb); /** - * + * Starts a CardDAV synchronization using value set using linphone_friend_list_set_uri. * @param[in] list LinphoneFriendList object. */ LINPHONE_PUBLIC void linphone_friend_list_synchronize_friends_from_server(LinphoneFriendList *list); /** - * + * Goes through all the LinphoneFriend that are dirty and does a CardDAV PUT to update the server. * @param[in] list LinphoneFriendList object. */ void linphone_friend_list_update_dirty_friends(LinphoneFriendList *list); +/** + * Returns the LinphoneCore object attached to this LinphoneFriendList. + * @param[in] list LinphoneFriendList object. + * @return a LinphoneCore object + */ +LINPHONE_PUBLIC LinphoneCore* linphone_friend_list_get_core(LinphoneFriendList *list); + /** * @} */