diff --git a/coreapi/chat.c b/coreapi/chat.c index 11c63af6d..45e1fc1ce 100644 --- a/coreapi/chat.c +++ b/coreapi/chat.c @@ -1381,6 +1381,15 @@ void linphone_chat_message_set_file_transfer_filepath(LinphoneChatMessage *msg, msg->file_transfer_filepath = ms_strdup(filepath); } +/** + * Get the path to the file to read from or write to during the file transfer. + * @param[in] msg LinphoneChatMessage object + * @return The path to the file to use for the file transfer. + */ +const char * linphone_chat_message_get_file_transfer_filepath(LinphoneChatMessage *msg) { + return msg->file_transfer_filepath; +} + /** * Create a message attached to a dedicated chat room with a particular content. Use #linphone_chat_room_send_message2 to initiate the transfer diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index 9ed211fae..a9ca88ddf 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -1451,6 +1451,7 @@ LINPHONE_PUBLIC unsigned int linphone_chat_message_get_storage_id(LinphoneChatMe LINPHONE_PUBLIC LinphoneReason linphone_chat_message_get_reason(LinphoneChatMessage* msg); LINPHONE_PUBLIC const LinphoneErrorInfo *linphone_chat_message_get_error_info(const LinphoneChatMessage *msg); LINPHONE_PUBLIC void linphone_chat_message_set_file_transfer_filepath(LinphoneChatMessage *msg, const char *filepath); +LINPHONE_PUBLIC const char * linphone_chat_message_get_file_transfer_filepath(LinphoneChatMessage *msg); /** * @} */