mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-26 07:38:09 +00:00
Added hasCapability method on C ChatRoom
This commit is contained in:
parent
d5347f4bca
commit
eed9ab3c83
2 changed files with 13 additions and 0 deletions
|
|
@ -319,6 +319,14 @@ LINPHONE_PUBLIC LinphoneParticipant *linphone_chat_room_find_participant (const
|
|||
*/
|
||||
LINPHONE_PUBLIC LinphoneChatRoomCapabilitiesMask linphone_chat_room_get_capabilities (const LinphoneChatRoom *cr);
|
||||
|
||||
/**
|
||||
* Check if a chat room has given capabilities.
|
||||
* @param[in] cr A LinphoneChatRoom object
|
||||
* @param[in] mask A Capabilities mask
|
||||
* @return True if the mask matches, false otherwise
|
||||
*/
|
||||
LINPHONE_PUBLIC bool_t linphone_chat_room_has_capability(const LinphoneChatRoom *cr, LinphoneChatRoomCapabilitiesMask mask);
|
||||
|
||||
/**
|
||||
* Get the conference address of the chat room.
|
||||
* @param[in] cr A LinphoneChatRoom object
|
||||
|
|
|
|||
|
|
@ -279,6 +279,11 @@ LinphoneChatRoomCapabilitiesMask linphone_chat_room_get_capabilities (const Linp
|
|||
return L_GET_CPP_PTR_FROM_C_OBJECT(cr)->getCapabilities();
|
||||
}
|
||||
|
||||
bool_t linphone_chat_room_has_capability(const LinphoneChatRoom *cr, LinphoneChatRoomCapabilitiesMask mask) {
|
||||
if (L_GET_CPP_PTR_FROM_C_OBJECT(cr)->getCapabilities() & mask) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
const LinphoneAddress *linphone_chat_room_get_conference_address (const LinphoneChatRoom *cr) {
|
||||
if (cr->conferenceAddressCache)
|
||||
linphone_address_unref(cr->conferenceAddressCache);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue