hci.c (d54424c330322a8e7f3a82c3c9246a5a85391f73) hci.c (67f708e073a3b5c01fde35c3f01722ed61d4b6a3)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 3382 unchanged lines hidden (view full) ---

3391
3392/**
3393 * @brief Add event packet handler.
3394 */
3395void hci_add_event_handler(btstack_packet_callback_registration_t * callback_handler){
3396 btstack_linked_list_add_tail(&hci_stack->event_handlers, (btstack_linked_item_t*) callback_handler);
3397}
3398
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 3382 unchanged lines hidden (view full) ---

3391
3392/**
3393 * @brief Add event packet handler.
3394 */
3395void hci_add_event_handler(btstack_packet_callback_registration_t * callback_handler){
3396 btstack_linked_list_add_tail(&hci_stack->event_handlers, (btstack_linked_item_t*) callback_handler);
3397}
3398
3399/**
3400 * @brief Remove event packet handler.
3401 */
3402void hci_remove_event_handler(btstack_packet_callback_registration_t * callback_handler){
3403 btstack_linked_list_remove(&hci_stack->event_handlers, (btstack_linked_item_t*) callback_handler);
3404}
3399
3400/** Register HCI packet handlers */
3401void hci_register_acl_packet_handler(btstack_packet_handler_t handler){
3402 hci_stack->acl_packet_handler = handler;
3403}
3404
3405#ifdef ENABLE_CLASSIC
3406/**

--- 3538 unchanged lines hidden ---
3405
3406/** Register HCI packet handlers */
3407void hci_register_acl_packet_handler(btstack_packet_handler_t handler){
3408 hci_stack->acl_packet_handler = handler;
3409}
3410
3411#ifdef ENABLE_CLASSIC
3412/**

--- 3538 unchanged lines hidden ---