mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
goep_server: add goep_server_header_add_application_parameters
This commit is contained in:
parent
b79730d636
commit
2a4ebdf641
@ -645,6 +645,17 @@ uint8_t goep_server_header_add_srm_enable(uint16_t goep_cid){
|
||||
return obex_message_builder_header_add_srm_enable(buffer, buffer_len);
|
||||
}
|
||||
|
||||
uint8_t goep_server_header_add_application_parameters(uint16_t goep_cid, const uint8_t * data, uint16_t length){
|
||||
goep_server_connection_t * connection = goep_server_get_connection_for_goep_cid(goep_cid);
|
||||
if (connection == NULL) {
|
||||
return ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER;
|
||||
}
|
||||
|
||||
uint8_t * buffer = goep_server_get_outgoing_buffer(connection);
|
||||
uint16_t buffer_len = goep_server_get_outgoing_buffer_len(connection);
|
||||
return obex_message_builder_header_add_application_parameters(buffer, buffer_len, data, length);
|
||||
}
|
||||
|
||||
uint8_t goep_server_execute(uint16_t goep_cid){
|
||||
goep_server_connection_t * connection = goep_server_get_connection_for_goep_cid(goep_cid);
|
||||
if (connection == NULL) {
|
||||
|
@ -184,6 +184,16 @@ uint8_t goep_server_header_add_end_of_body(uint16_t goep_cid, const uint8_t * en
|
||||
*/
|
||||
uint8_t goep_server_header_add_srm_enable(uint16_t goep_cid);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Add application parameters header to current request
|
||||
* @param goep_cid
|
||||
* @param data
|
||||
* @param length
|
||||
* @return
|
||||
*/
|
||||
uint8_t goep_server_header_add_application_parameters(uint16_t goep_cid, const uint8_t * data, uint16_t length);
|
||||
|
||||
/**
|
||||
* @brief Execute prepared request
|
||||
* @param goep_cid
|
||||
|
Loading…
x
Reference in New Issue
Block a user