sm.c (f5217d52cd2b3346f53646c88f44355f28725517) sm.c (9da9850b83fde69f1dc00ad3fb029803b8844b54)
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

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

554 }
555 return false;
556}
557
558static void sm_dispatch_event(uint8_t packet_type, uint16_t channel, uint8_t * packet, uint16_t size){
559 UNUSED(channel);
560
561 // log event
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

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

554 }
555 return false;
556}
557
558static void sm_dispatch_event(uint8_t packet_type, uint16_t channel, uint8_t * packet, uint16_t size){
559 UNUSED(channel);
560
561 // log event
562 hci_dump_packet(packet_type, 1, packet, size);
562 hci_dump_btstack_event(packet, size);
563 // dispatch to all event handlers
564 btstack_linked_list_iterator_t it;
565 btstack_linked_list_iterator_init(&it, &sm_event_handlers);
566 while (btstack_linked_list_iterator_has_next(&it)){
567 btstack_packet_callback_registration_t * entry = (btstack_packet_callback_registration_t*) btstack_linked_list_iterator_next(&it);
568 entry->callback(packet_type, 0, packet, size);
569 }
570}

--- 5032 unchanged lines hidden ---
563 // dispatch to all event handlers
564 btstack_linked_list_iterator_t it;
565 btstack_linked_list_iterator_init(&it, &sm_event_handlers);
566 while (btstack_linked_list_iterator_has_next(&it)){
567 btstack_packet_callback_registration_t * entry = (btstack_packet_callback_registration_t*) btstack_linked_list_iterator_next(&it);
568 entry->callback(packet_type, 0, packet, size);
569 }
570}

--- 5032 unchanged lines hidden ---