mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
Added missing C API for file transfer file name
This commit is contained in:
parent
79e6d1ca3c
commit
5b0cfaa137
2 changed files with 15 additions and 0 deletions
|
|
@ -375,6 +375,13 @@ LINPHONE_PUBLIC bool_t linphone_chat_message_has_file_transfer_content(const Lin
|
|||
*/
|
||||
LINPHONE_PUBLIC const char* linphone_chat_message_get_text_content(const LinphoneChatMessage *msg);
|
||||
|
||||
/**
|
||||
* Gets the file transfer content if available as a string
|
||||
* @param[in] msg LinphoneChatMessage object
|
||||
* @return the file name if available, null otherwise
|
||||
*/
|
||||
LINPHONE_PUBLIC const char* linphone_chat_message_get_file_transfer_content_file_name(const LinphoneChatMessage *msg);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -321,6 +321,14 @@ const char * linphone_chat_message_get_text_content(const LinphoneChatMessage *m
|
|||
return L_STRING_TO_C(content.getBodyAsString());
|
||||
}
|
||||
|
||||
const char* linphone_chat_message_get_file_transfer_content_file_name(const LinphoneChatMessage *msg) {
|
||||
LinphonePrivate::Content content = L_GET_CPP_PTR_FROM_C_OBJECT(msg)->getFileTransferContent();
|
||||
if (content == LinphonePrivate::Content::Empty) {
|
||||
return NULL;
|
||||
}
|
||||
return L_STRING_TO_C(content.getContentDisposition());
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// Old listener
|
||||
// =============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue