add c-wrapping of ConferenceNotifiedEvent::isFullState

This commit is contained in:
Benjamin Reis 2017-11-06 14:04:53 +01:00
parent bea9b7f3d9
commit a4a221dc06
2 changed files with 16 additions and 0 deletions

View file

@ -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.
// -----------------------------------------------------------------------------

View file

@ -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<const LinphonePrivate::ConferenceNotifiedEvent>(
L_GET_CPP_PTR_FROM_C_OBJECT(event_log)
)->isFullState();
}
// -----------------------------------------------------------------------------
// ConferenceCallEvent.
// -----------------------------------------------------------------------------