mock.c (d0f707ff117b6d1a94ac66ab24fc07f12e77bb02) | mock.c (8f4649e3ba0a9d21085f42b688929492b3ab33b7) |
---|---|
1#include <stdint.h> 2#include <stdio.h> 3#include <stdlib.h> 4#include <string.h> 5 6#include "ble/att_db.h" 7#include "hci.h" 8#include "hci_dump.h" --- 254 unchanged lines hidden (view full) --- 263void l2cap_register_fixed_channel(btstack_packet_handler_t packet_handler, uint16_t channel_id) { 264 le_data_handler = packet_handler; 265} 266 267void hci_add_event_handler(btstack_packet_callback_registration_t * callback_handler){ 268 btstack_linked_list_add(&event_packet_handlers, (btstack_linked_item_t *) callback_handler); 269} 270 | 1#include <stdint.h> 2#include <stdio.h> 3#include <stdlib.h> 4#include <string.h> 5 6#include "ble/att_db.h" 7#include "hci.h" 8#include "hci_dump.h" --- 254 unchanged lines hidden (view full) --- 263void l2cap_register_fixed_channel(btstack_packet_handler_t packet_handler, uint16_t channel_id) { 264 le_data_handler = packet_handler; 265} 266 267void hci_add_event_handler(btstack_packet_callback_registration_t * callback_handler){ 268 btstack_linked_list_add(&event_packet_handlers, (btstack_linked_item_t *) callback_handler); 269} 270 |
271bool l2cap_reserve_packet_buffer(void){ | 271void l2cap_reserve_packet_buffer(void){ |
272 printf("l2cap_reserve_packet_buffer\n"); | 272 printf("l2cap_reserve_packet_buffer\n"); |
273 return true; | |
274} 275 276uint8_t l2cap_send_prepared_connectionless(uint16_t handle, uint16_t cid, uint16_t len){ 277 printf("l2cap_send_prepared_connectionless\n"); 278 return 0; 279} 280 281uint8_t l2cap_send_connectionless(uint16_t handle, uint16_t cid, uint8_t * buffer, uint16_t len){ --- 47 unchanged lines hidden --- | 273} 274 275uint8_t l2cap_send_prepared_connectionless(uint16_t handle, uint16_t cid, uint16_t len){ 276 printf("l2cap_send_prepared_connectionless\n"); 277 return 0; 278} 279 280uint8_t l2cap_send_connectionless(uint16_t handle, uint16_t cid, uint8_t * buffer, uint16_t len){ --- 47 unchanged lines hidden --- |