goep_client: add goep_client_body_get_outgoing_buffer_len

This commit is contained in:
Matthias Ringwald 2023-02-06 13:48:03 +01:00
parent 8eaca3329c
commit 8441d53da4
2 changed files with 14 additions and 0 deletions

View File

@ -580,6 +580,13 @@ void goep_client_body_add_static(uint16_t goep_cid, const uint8_t * data, uint32
obex_message_builder_body_add_static(buffer, buffer_len, data, length);
}
uint16_t goep_client_body_get_outgoing_buffer_len(uint16_t goep_cid) {
UNUSED(goep_cid);
goep_client_t * context = goep_client;
return goep_client_get_outgoing_buffer_len(context);
};
void goep_client_body_fillup_static(uint16_t goep_cid, const uint8_t * data, uint32_t length, uint32_t * ret_length){
UNUSED(goep_cid);
goep_client_t * context = goep_client;

View File

@ -260,6 +260,13 @@ void goep_client_header_add_challenge_response(uint16_t goep_cid, const uint8_t
*/
void goep_client_body_add_static(uint16_t goep_cid, const uint8_t * data, uint32_t length);
/**
* @brief Query remaining buffer size
* @param goep_cid
* @return size
*/
uint16_t goep_client_body_get_outgoing_buffer_len(uint16_t goep_cid);
/**
* @brief Add body
* @param goep_cid