From 931a13df6c53a8a2cbc1f6cccdeb2510a38bc375 Mon Sep 17 00:00:00 2001 From: Sandrine Avakian Date: Thu, 23 Mar 2017 11:26:44 +0100 Subject: [PATCH] Modifying linphone_core_notify_notify_presence_received and linphone_core_notify_notify_presence_received_for_uri_or_tel to be public. Declaring them into core.h . --- coreapi/private.h | 2 -- include/linphone/core.h | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/coreapi/private.h b/coreapi/private.h index ee49296f8..f4550b6f9 100644 --- a/coreapi/private.h +++ b/coreapi/private.h @@ -1625,8 +1625,6 @@ void linphone_core_notify_display_status(LinphoneCore *lc, const char *message); void linphone_core_notify_display_message(LinphoneCore *lc, const char *message); void linphone_core_notify_display_warning(LinphoneCore *lc, const char *message); void linphone_core_notify_display_url(LinphoneCore *lc, const char *message, const char *url); -void linphone_core_notify_notify_presence_received(LinphoneCore *lc, LinphoneFriend * lf); -void linphone_core_notify_notify_presence_received_for_uri_or_tel(LinphoneCore *lc, LinphoneFriend *lf, const char *uri_or_tel, const LinphonePresenceModel *presence_model); void linphone_core_notify_new_subscription_requested(LinphoneCore *lc, LinphoneFriend *lf, const char *url); void linphone_core_notify_auth_info_requested(LinphoneCore *lc, const char *realm, const char *username, const char *domain); void linphone_core_notify_authentication_requested(LinphoneCore *lc, LinphoneAuthInfo *auth_info, LinphoneAuthMethod method); diff --git a/include/linphone/core.h b/include/linphone/core.h index 568a17672..31dea093e 100644 --- a/include/linphone/core.h +++ b/include/linphone/core.h @@ -5008,6 +5008,28 @@ LINPHONE_PUBLIC LinphonePresencePerson * linphone_core_create_presence_person(Li * @return The created #LinphonePresenceService object. */ LINPHONE_PUBLIC LinphonePresenceService * linphone_core_create_presence_service(LinphoneCore *lc, const char *id, LinphonePresenceBasicStatus basic_status, const char *contact); + + +/** + * Notifies the upper layer that a presence status has been received by calling the appropriate + * callback if one has been set. + * @param[in] lc the #LinphoneCore object. + * @param[in] lf the #LinphoneFriend whose presence information has been received. + */ +LINPHONE_PUBLIC void linphone_core_notify_notify_presence_received(LinphoneCore *lc, LinphoneFriend *lf); + + +/** + * Notifies the upper layer that a presence model change has been received for the uri or + * telephone number given as a parameter, by calling the appropriate callback if one has been set. + * @param[in] lc the #LinphoneCore object. + * @param[in] lf the #LinphoneFriend whose presence information has been received. + * @param[in] uri_or_tel telephone number or sip uri + * @param[in] presence_model the #LinphonePresenceModel that has been modified + */ +LINPHONE_PUBLIC void linphone_core_notify_notify_presence_received_for_uri_or_tel(LinphoneCore *lc, LinphoneFriend *lf, const char *uri_or_tel, const LinphonePresenceModel *presence_model); + + /** * @}