hfp.c (94af8b0e57b661351183827a66b50bb889944b7e) | hfp.c (a54f7443444024f3655e9c8243b7f3a68b9600b8) |
---|---|
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 --- 630 unchanged lines hidden (view full) --- 639 640 hfp_connection->parser_state = HFP_PARSER_CMD_HEADER; 641 642 hfp_connection->acl_handle = HCI_CON_HANDLE_INVALID; 643 hfp_connection->sco_handle = HCI_CON_HANDLE_INVALID; 644 645 hfp_reset_context_flags(hfp_connection); 646 | 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 --- 630 unchanged lines hidden (view full) --- 639 640 hfp_connection->parser_state = HFP_PARSER_CMD_HEADER; 641 642 hfp_connection->acl_handle = HCI_CON_HANDLE_INVALID; 643 hfp_connection->sco_handle = HCI_CON_HANDLE_INVALID; 644 645 hfp_reset_context_flags(hfp_connection); 646 |
647 btstack_linked_list_add(&hfp_connections, (btstack_linked_item_t*)hfp_connection); | 647 btstack_linked_list_add_tail(&hfp_connections, (btstack_linked_item_t*)hfp_connection); |
648 return hfp_connection; 649} 650 651void hfp_finalize_connection_context(hfp_connection_t * hfp_connection){ 652 btstack_linked_list_remove(&hfp_connections, (btstack_linked_item_t*) hfp_connection); 653 btstack_memory_hfp_connection_free(hfp_connection); 654} 655 --- 1817 unchanged lines hidden --- | 648 return hfp_connection; 649} 650 651void hfp_finalize_connection_context(hfp_connection_t * hfp_connection){ 652 btstack_linked_list_remove(&hfp_connections, (btstack_linked_item_t*) hfp_connection); 653 btstack_memory_hfp_connection_free(hfp_connection); 654} 655 --- 1817 unchanged lines hidden --- |