mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-22 06:41:17 +00:00
goep_client: drop special code for singleton instance
This commit is contained in:
parent
d2e34ffbec
commit
8955f6de72
@ -167,9 +167,6 @@ static goep_client_t * goep_client_for_cid(uint16_t cid){
|
||||
}
|
||||
|
||||
static goep_client_t * goep_client_for_bearer_cid(uint16_t bearer_cid){
|
||||
if (bearer_cid == goep_client_singleton.bearer_cid){
|
||||
return &goep_client_singleton;
|
||||
} else {
|
||||
btstack_linked_list_iterator_t it;
|
||||
btstack_linked_list_iterator_init(&it, &goep_clients);
|
||||
while (btstack_linked_list_iterator_has_next(&it)){
|
||||
@ -180,7 +177,6 @@ static goep_client_t * goep_client_for_bearer_cid(uint16_t bearer_cid){
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static void goep_client_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
|
||||
UNUSED(channel);
|
||||
@ -443,9 +439,7 @@ static void goep_client_packet_init(goep_client_t *goep_client, uint8_t opcode)
|
||||
}
|
||||
|
||||
void goep_client_init(void){
|
||||
goep_client_t * goep_client = &goep_client_singleton;
|
||||
memset(goep_client, 0, sizeof(goep_client_t));
|
||||
goep_client->state = GOEP_CLIENT_INIT;
|
||||
goep_client_singleton.state = GOEP_CLIENT_INIT;
|
||||
}
|
||||
|
||||
void goep_client_deinit(void){
|
||||
|
Loading…
x
Reference in New Issue
Block a user