From 1a47f80bef0892ee6f95649bcb3cf9710e6df32a Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 18 Nov 2021 21:01:41 +0100 Subject: [PATCH] test: fix build --- test/gatt_server/mock.c | 12 ++++++++---- test/mock/mock_att_server.c | 4 ++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/test/gatt_server/mock.c b/test/gatt_server/mock.c index 9c4bfc408..de73ed4ba 100644 --- a/test/gatt_server/mock.c +++ b/test/gatt_server/mock.c @@ -70,6 +70,10 @@ static void att_init_connection(att_connection_t * att_connection){ att_connection->authorized = 0; } +void hci_add_event_handler(btstack_packet_callback_registration_t * callback_handler){ + registered_hci_event_handler = callback_handler->callback; +} + bool hci_can_send_acl_le_packet_now(void){ return true; } @@ -94,6 +98,10 @@ bool l2cap_can_send_connectionless_packet_now(void){ return 1; } +void l2cap_add_event_handler(btstack_packet_callback_registration_t * callback_handler){ + UNUSED(callback_handler); +} + uint8_t *l2cap_get_outgoing_buffer(void){ // printf("l2cap_get_outgoing_buffer\n"); return (uint8_t *)&l2cap_stack_buffer; // 8 bytes @@ -115,10 +123,6 @@ void l2cap_register_fixed_channel(btstack_packet_handler_t packet_handler, uint1 att_packet_handler = packet_handler; } -void hci_add_event_handler(btstack_packet_callback_registration_t * callback_handler){ - registered_hci_event_handler = callback_handler->callback; -} - bool l2cap_reserve_packet_buffer(void){ return true; } diff --git a/test/mock/mock_att_server.c b/test/mock/mock_att_server.c index 55209af5f..b70fdfea7 100644 --- a/test/mock/mock_att_server.c +++ b/test/mock/mock_att_server.c @@ -93,6 +93,10 @@ void hci_add_event_handler(btstack_packet_callback_registration_t * callback_han UNUSED(callback_handler); } +void l2cap_add_event_handler(btstack_packet_callback_registration_t * callback_handler){ + UNUSED(callback_handler); +} + uint16_t l2cap_max_mtu(void){ return HCI_ACL_PAYLOAD_SIZE - L2CAP_HEADER_SIZE; }