From cb9232b3ab413fae7bcc2b94abd70f18ca02b263 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期二, 03 十二月 2024 11:20:32 +0800 Subject: [PATCH] 增加铃声;增加TCP/UDP连接选择 --- HDLLinPhoneSDK(OC)/HDLLinPhoneSDK/linphone-sdk/apple-darwin/Frameworks/belle-sip.framework/Headers/bodyhandler.h | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git "a/HDLLinPhoneSDK\357\274\210OC\357\274\211/HDLLinPhoneSDK/linphone-sdk/apple-darwin/Frameworks/belle-sip.framework/Headers/bodyhandler.h" "b/HDLLinPhoneSDK\357\274\210OC\357\274\211/HDLLinPhoneSDK/linphone-sdk/apple-darwin/Frameworks/belle-sip.framework/Headers/bodyhandler.h" index 3a64eef..7a7f705 100755 --- "a/HDLLinPhoneSDK\357\274\210OC\357\274\211/HDLLinPhoneSDK/linphone-sdk/apple-darwin/Frameworks/belle-sip.framework/Headers/bodyhandler.h" +++ "b/HDLLinPhoneSDK\357\274\210OC\357\274\211/HDLLinPhoneSDK/linphone-sdk/apple-darwin/Frameworks/belle-sip.framework/Headers/bodyhandler.h" @@ -77,6 +77,22 @@ belle_sip_user_body_handler_stop_callback_t stop_cb, void *data); +/** + * @brief Buffering user body handler creation + * Buffering file bodyhandler will buffer the received chunks to deliver only modulo(buffer_size) chunks. + * The bufferized part, if any, is prepended to the next chunk, + * what remains in buffer when the end function is called is delivered through a last call to rcv_chunk + * The original purpose of this is to be able to deliver modulo(16) size chunks to the file transfer decryption function + */ +BELLESIP_EXPORT belle_sip_user_body_handler_t *belle_sip_buffering_user_body_handler_new( + size_t total_size, + size_t buffer_size, + belle_sip_body_handler_progress_callback_t progress_cb, + belle_sip_user_body_handler_start_callback_t start_cb, + belle_sip_user_body_handler_recv_callback_t recv_cb, + belle_sip_user_body_handler_send_callback_t send_cb, + belle_sip_user_body_handler_stop_callback_t stop_cb, + void *data); /** * Body handler that gets/puts data from/to a file. @@ -85,6 +101,15 @@ #define BELLE_SIP_FILE_BODY_HANDLER(obj) BELLE_SIP_CAST(obj, belle_sip_file_body_handler_t) BELLESIP_EXPORT belle_sip_file_body_handler_t *belle_sip_file_body_handler_new(const char *filepath, belle_sip_body_handler_progress_callback_t progress_cb, void *data); + +/** + * @brief Buffering file body handler creation + * Buffering file bodyhandler will buffer the received chunks to deliver only modulo(buffer_size) chunks. + * The bufferized part, if any, is prepended to the next chunk, + * what remains in buffer when the end function is called is delivered through a last call to rcv_chunk + * The original purpose of this is to be able to deliver modulo(16) size chunks to the file transfer decryption function + */ +BELLESIP_EXPORT belle_sip_file_body_handler_t *belle_sip_buffering_file_body_handler_new(const char *filepath, const size_t buffer_size, belle_sip_body_handler_progress_callback_t progress_cb, void *data); BELLESIP_EXPORT size_t belle_sip_file_body_handler_get_file_size(belle_sip_file_body_handler_t *file_bh); BELLESIP_EXPORT void belle_sip_file_body_handler_set_user_body_handler(belle_sip_file_body_handler_t *file_bh, belle_sip_user_body_handler_t *user_bh); -- Gitblit v1.8.0