From a4a221dc0602d8ce170dbd3ffac75b72395a41fc Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Mon, 6 Nov 2017 14:04:53 +0100 Subject: [PATCH] add c-wrapping of ConferenceNotifiedEvent::isFullState --- include/linphone/api/c-event-log.h | 7 +++++++ src/c-wrapper/api/c-event-log.cpp | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/include/linphone/api/c-event-log.h b/include/linphone/api/c-event-log.h index c3f9e67c6..4a13f21d6 100644 --- a/include/linphone/api/c-event-log.h +++ b/include/linphone/api/c-event-log.h @@ -83,6 +83,13 @@ LINPHONE_PUBLIC const LinphoneAddress *linphone_event_log_get_conference_address */ LINPHONE_PUBLIC unsigned int linphone_event_log_get_notify_id (const LinphoneEventLog *event_log); +/** + * Returns whether or not the event comes from a full state notify. + * @param[in] event_log A #LinphoneEventLog object. + * @return whether or not the event comes from a full state notify. + */ +LINPHONE_PUBLIC bool_t linphone_event_log_is_full_state (const LinphoneEventLog *event_log); + // ----------------------------------------------------------------------------- // ConferenceCallEvent. // ----------------------------------------------------------------------------- diff --git a/src/c-wrapper/api/c-event-log.cpp b/src/c-wrapper/api/c-event-log.cpp index 132982327..a9514ee67 100644 --- a/src/c-wrapper/api/c-event-log.cpp +++ b/src/c-wrapper/api/c-event-log.cpp @@ -193,6 +193,15 @@ unsigned int linphone_event_log_get_notify_id (const LinphoneEventLog *event_log )->getNotifyId(); } +bool_t linphone_event_log_is_full_state (const LinphoneEventLog *event_log) { + if (!isConferenceNotifiedType(linphone_event_log_get_type(event_log))) + return FALSE; + + return static_pointer_cast( + L_GET_CPP_PTR_FROM_C_OBJECT(event_log) + )->isFullState(); +} + // ----------------------------------------------------------------------------- // ConferenceCallEvent. // -----------------------------------------------------------------------------