hfp: emit audio connection event is needed for hfp_hf

This commit is contained in:
Milanka Ringwald 2020-09-09 11:26:33 +02:00
parent a400e7302a
commit f2a3f98417
2 changed files with 3 additions and 1 deletions

View File

@ -345,7 +345,7 @@ void hfp_emit_slc_connection_event(hfp_connection_t * hfp_connection, uint8_t st
hfp_emit_event_for_context(hfp_connection, event, sizeof(event));
}
static void hfp_emit_sco_event(hfp_connection_t * hfp_connection, uint8_t status, hci_con_handle_t con_handle, bd_addr_t addr, uint8_t negotiated_codec){
void hfp_emit_sco_event(hfp_connection_t * hfp_connection, uint8_t status, hci_con_handle_t con_handle, bd_addr_t addr, uint8_t negotiated_codec){
uint8_t event[13];
int pos = 0;
event[pos++] = HCI_EVENT_HFP_META;

View File

@ -650,6 +650,8 @@ int get_bit(uint16_t bitmap, int position);
int store_bit(uint32_t bitmap, int position, uint8_t value);
// UTILS_END
void hfp_emit_sco_event(hfp_connection_t * hfp_connection, uint8_t status, hci_con_handle_t con_handle, bd_addr_t addr, uint8_t negotiated_codec);
void hfp_set_ag_callback(btstack_packet_handler_t callback);
void hfp_set_ag_rfcomm_packet_handler(btstack_packet_handler_t handler);