Commit d899d4ce authored by Ghislain MARY's avatar Ghislain MARY

Add setter for body handler size.

parent d2069152
......@@ -32,6 +32,7 @@ typedef void (*belle_sip_body_handler_progress_callback_t)(belle_sip_body_handle
BELLESIP_EXPORT void belle_sip_body_handler_add_header(belle_sip_body_handler_t *obj, belle_sip_header_t *header);
BELLESIP_EXPORT size_t belle_sip_body_handler_get_size(const belle_sip_body_handler_t *obj);
BELLESIP_EXPORT void belle_sip_body_handler_set_size(belle_sip_body_handler_t *obj, size_t size);
BELLESIP_EXPORT size_t belle_sip_body_handler_get_transfered_size(const belle_sip_body_handler_t *obj);
......
......@@ -78,6 +78,10 @@ size_t belle_sip_body_handler_get_size(const belle_sip_body_handler_t *obj){
return obj->expected_size;
}
void belle_sip_body_handler_set_size(belle_sip_body_handler_t *obj, size_t size){
obj->expected_size=size;
}
size_t belle_sip_body_handler_get_transfered_size(const belle_sip_body_handler_t *obj){
return obj->transfered_size;
}
......
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