mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-04 10:14:18 +00:00
goep_client: add goep_client_header_add_name_prefix
This commit is contained in:
parent
2946c1e37e
commit
5eb339855d
@ -579,6 +579,15 @@ void goep_client_header_add_name(uint16_t goep_cid, const char * name){
|
||||
obex_message_builder_header_add_name(buffer, buffer_len, name);
|
||||
}
|
||||
|
||||
void goep_client_header_add_name_prefix(uint16_t goep_cid, const char * name, uint16_t name_len){
|
||||
UNUSED(goep_cid);
|
||||
goep_client_t * context = goep_client;
|
||||
|
||||
uint8_t * buffer = goep_client_get_outgoing_buffer(context);
|
||||
uint16_t buffer_len = goep_client_get_outgoing_buffer_len(context);
|
||||
obex_message_builder_header_add_name_prefix(buffer, buffer_len, name, name_len);
|
||||
}
|
||||
|
||||
void goep_client_header_add_type(uint16_t goep_cid, const char * type){
|
||||
UNUSED(goep_cid);
|
||||
goep_client_t * context = goep_client;
|
||||
|
@ -184,6 +184,14 @@ void goep_client_header_add_variable(uint16_t goep_cid, uint8_t header_type, con
|
||||
*/
|
||||
void goep_client_header_add_name(uint16_t goep_cid, const char * name);
|
||||
|
||||
/**
|
||||
* @brief Add name header to current request
|
||||
* @param goep_cid
|
||||
* @param name
|
||||
* @param name_len
|
||||
*/
|
||||
void goep_client_header_add_name_prefix(uint16_t goep_cid, const char * name, uint16_t name_len);
|
||||
|
||||
/**
|
||||
* @brief Add target header to current request
|
||||
* @param goep_cid
|
||||
|
Loading…
x
Reference in New Issue
Block a user