mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
goep_client: fix build without goep over l2cap
This commit is contained in:
parent
646b1bd263
commit
bf300db89c
@ -538,8 +538,14 @@ uint8_t goep_client_create_connection(btstack_packet_handler_t handler, bd_addr_
|
|||||||
if (goep_client->state != GOEP_CLIENT_INIT) {
|
if (goep_client->state != GOEP_CLIENT_INIT) {
|
||||||
return BTSTACK_MEMORY_ALLOC_FAILED;
|
return BTSTACK_MEMORY_ALLOC_FAILED;
|
||||||
}
|
}
|
||||||
|
#ifdef ENABLE_GOEP_L2CAP
|
||||||
return goep_client_connect(goep_client, &goep_client_singleton_ertm_config, goep_client_singleton_ertm_buffer,
|
return goep_client_connect(goep_client, &goep_client_singleton_ertm_config, goep_client_singleton_ertm_buffer,
|
||||||
sizeof(goep_client_singleton_ertm_buffer), handler, addr, uuid, 0, out_cid);
|
sizeof(goep_client_singleton_ertm_buffer), handler, addr, uuid, 0, out_cid);
|
||||||
|
#else
|
||||||
|
return goep_client_connect(goep_client, NULL, NULL,
|
||||||
|
0, handler, addr, uuid, 0, out_cid);
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t goep_client_get_pbap_supported_features(uint16_t goep_cid){
|
uint32_t goep_client_get_pbap_supported_features(uint16_t goep_cid){
|
||||||
|
@ -78,6 +78,7 @@ typedef struct {
|
|||||||
btstack_context_callback_registration_t sdp_query_request;
|
btstack_context_callback_registration_t sdp_query_request;
|
||||||
|
|
||||||
uint8_t rfcomm_port;
|
uint8_t rfcomm_port;
|
||||||
|
uint16_t l2cap_psm;
|
||||||
uint16_t bearer_cid;
|
uint16_t bearer_cid;
|
||||||
uint16_t bearer_mtu;
|
uint16_t bearer_mtu;
|
||||||
|
|
||||||
@ -104,7 +105,6 @@ typedef struct {
|
|||||||
int obex_connection_id_set;
|
int obex_connection_id_set;
|
||||||
|
|
||||||
#ifdef ENABLE_GOEP_L2CAP
|
#ifdef ENABLE_GOEP_L2CAP
|
||||||
uint16_t l2cap_psm;
|
|
||||||
l2cap_ertm_config_t ertm_config;
|
l2cap_ertm_config_t ertm_config;
|
||||||
uint16_t ertm_buffer_size;
|
uint16_t ertm_buffer_size;
|
||||||
uint8_t * ertm_buffer;
|
uint8_t * ertm_buffer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user