goep_client: add goep_client_create_abort_request

This commit is contained in:
Matthias Ringwald 2018-10-09 17:27:18 +02:00
parent c518a7a9c7
commit f68f852875
2 changed files with 12 additions and 1 deletions

View File

@ -60,7 +60,7 @@
// goep_client.c
//
// #define ENABLE_GOEP_L2CAP
#define ENABLE_GOEP_L2CAP
typedef enum {
GOEP_INIT,
@ -481,6 +481,11 @@ void goep_client_create_get_request(uint16_t goep_cid){
goep_client_packet_add_connection_id(goep_cid);
}
void goep_client_create_abort_request(uint16_t goep_cid){
goep_client_packet_init(goep_cid, OBEX_OPCODE_ABORT);
goep_client_packet_add_connection_id(goep_cid);
}
void goep_client_add_header_srm_enable(uint16_t goep_cid){
goep_client_t * context = goep_client;
if (!context->l2cap_psm) return;

View File

@ -128,6 +128,12 @@ void goep_client_create_disconnect_request(uint16_t goep_cid);
*/
void goep_client_create_get_request(uint16_t goep_cid);
/**
* @brief Create Abort request
* @param gope_cid
*/
void goep_client_create_abort_request(uint16_t goep_cid);
/**
* @brief Add SRM Enable
* @param gope_cid