obex_message_builder: rename function

This commit is contained in:
Milanka Ringwald 2019-03-27 11:38:55 +01:00
parent c446645633
commit 948b36425d
3 changed files with 5 additions and 4 deletions

View File

@ -559,8 +559,9 @@ void goep_client_add_body_static(uint16_t goep_cid, uint32_t length, const uint
uint8_t * buffer = goep_client_get_outgoing_buffer(context);
uint16_t buffer_len = goep_client_get_outgoing_buffer_len(context);
obex_message_builder_static_add_body(buffer, buffer_len, data, length);
obex_message_builder_body_add_static(buffer, buffer_len, data, length);
}
void goep_client_add_header_name(uint16_t goep_cid, const char * name){
UNUSED(goep_cid);
goep_client_t * context = goep_client;

View File

@ -158,7 +158,7 @@ uint8_t obex_message_builder_header_add_challenge_response(uint8_t * buffer, uin
return obex_message_builder_header_add_variable(buffer, buffer_len, OBEX_HEADER_AUTHENTICATION_RESPONSE, data, length);
}
uint8_t obex_message_builder_static_add_body(uint8_t * buffer, uint16_t buffer_len, const uint8_t * data, uint32_t length){
uint8_t obex_message_builder_body_add_static(uint8_t * buffer, uint16_t buffer_len, const uint8_t * data, uint32_t length){
return obex_message_builder_header_add_variable(buffer, buffer_len, OBEX_HEADER_END_OF_BODY, data, length);
}

View File

@ -218,11 +218,11 @@ uint8_t obex_message_builder_header_add_challenge_response(uint8_t * buffer, uin
* @param lenght
* @return status
*/
uint8_t obex_message_builder_static_add_body(uint8_t * buffer, uint16_t buffer_len, const uint8_t * data, uint32_t length);
uint8_t obex_message_builder_body_add_static(uint8_t * buffer, uint16_t buffer_len, const uint8_t * data, uint32_t length);
/* API_END */
// int obex_message_builder_add_body_dynamic(uint8_t * buffer, uint16_t buffer_len, uint32_t length, void (*data_callback)(uint32_t offset, uint8_t * buffer, uint32_t len));
// int obex_message_builder_body_add_dynamic(uint8_t * buffer, uint16_t buffer_len, uint32_t length, void (*data_callback)(uint32_t offset, uint8_t * buffer, uint32_t len));
#if defined __cplusplus
}