mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
goep_client: add goep_client_header_add_unicode_prefix
This commit is contained in:
parent
c1dd23560b
commit
fb8282d67f
@ -818,6 +818,16 @@ void goep_client_header_add_name_prefix(uint16_t goep_cid, const char * name, ui
|
||||
obex_message_builder_header_add_name_prefix(buffer, buffer_len, name, name_len);
|
||||
}
|
||||
|
||||
void goep_client_header_add_unicode_prefix(uint16_t goep_cid, uint8_t header_id, const char * name, uint16_t name_len){
|
||||
goep_client_t * goep_client = goep_client_for_cid(goep_cid);
|
||||
if (goep_client == NULL){
|
||||
return;
|
||||
}
|
||||
uint8_t * buffer = goep_client_get_outgoing_buffer(goep_client);
|
||||
uint16_t buffer_len = goep_client_get_outgoing_buffer_len(goep_client);
|
||||
obex_message_builder_header_add_unicode_prefix(buffer, buffer_len, header_id, name, name_len);
|
||||
}
|
||||
|
||||
void goep_client_header_add_type(uint16_t goep_cid, const char * type){
|
||||
goep_client_t * goep_client = goep_client_for_cid(goep_cid);
|
||||
if (goep_client == NULL){
|
||||
|
@ -319,6 +319,14 @@ void goep_client_header_add_name(uint16_t goep_cid, const char * name);
|
||||
*/
|
||||
void goep_client_header_add_name_prefix(uint16_t goep_cid, const char * name, uint16_t name_len);
|
||||
|
||||
/**
|
||||
* @brief Add string encoded as unicode to current request
|
||||
* @param goep_cid
|
||||
* @param name
|
||||
* @param name_len
|
||||
*/
|
||||
void goep_client_header_add_unicode_prefix(uint16_t goep_cid, uint8_t header_id, 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