Commit e82e0029 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Use int instead of LinphoneChatRoomCapabilitiesMask as wrapper currently...

Use int instead of LinphoneChatRoomCapabilitiesMask as wrapper currently translates it wrong (as unsigned int instead of int)
parent eed9ab3c
...@@ -325,7 +325,7 @@ LINPHONE_PUBLIC LinphoneChatRoomCapabilitiesMask linphone_chat_room_get_capabili ...@@ -325,7 +325,7 @@ LINPHONE_PUBLIC LinphoneChatRoomCapabilitiesMask linphone_chat_room_get_capabili
* @param[in] mask A Capabilities mask * @param[in] mask A Capabilities mask
* @return True if the mask matches, false otherwise * @return True if the mask matches, false otherwise
*/ */
LINPHONE_PUBLIC bool_t linphone_chat_room_has_capability(const LinphoneChatRoom *cr, LinphoneChatRoomCapabilitiesMask mask); LINPHONE_PUBLIC bool_t linphone_chat_room_has_capability(const LinphoneChatRoom *cr, int mask);
/** /**
* Get the conference address of the chat room. * Get the conference address of the chat room.
......
...@@ -279,7 +279,7 @@ LinphoneChatRoomCapabilitiesMask linphone_chat_room_get_capabilities (const Linp ...@@ -279,7 +279,7 @@ LinphoneChatRoomCapabilitiesMask linphone_chat_room_get_capabilities (const Linp
return L_GET_CPP_PTR_FROM_C_OBJECT(cr)->getCapabilities(); return L_GET_CPP_PTR_FROM_C_OBJECT(cr)->getCapabilities();
} }
bool_t linphone_chat_room_has_capability(const LinphoneChatRoom *cr, LinphoneChatRoomCapabilitiesMask mask) { bool_t linphone_chat_room_has_capability(const LinphoneChatRoom *cr, int mask) {
if (L_GET_CPP_PTR_FROM_C_OBJECT(cr)->getCapabilities() & mask) return true; if (L_GET_CPP_PTR_FROM_C_OBJECT(cr)->getCapabilities() & mask) return true;
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment