hfp: renamed emit_event

This commit is contained in:
Milanka Ringwald 2015-07-10 17:24:30 +02:00
parent b8aaad02eb
commit 966654b8b0
2 changed files with 2 additions and 3 deletions

View File

@ -88,7 +88,7 @@ void join(char * buffer, int buffer_size, int buffer_offset, uint8_t * values, i
buffer[pos] = '\0';
}
void emit_event(hfp_callback_t callback, uint8_t event_subtype, uint8_t value){
static void hfp_emit_event(hfp_callback_t callback, uint8_t event_subtype, uint8_t value){
if (!callback) return;
uint8_t event[4];
event[0] = HCI_EVENT_HFP_META;
@ -334,7 +334,7 @@ hfp_connection_t * hfp_handle_hci_event(uint8_t packet_type, uint8_t *packet, ui
if (packet[2]) {
hfp_reset_state(context);
emit_event(context->callback, HFP_SUBEVENT_AUDIO_CONNECTION_COMPLETE, packet[2]);
hfp_emit_event(context->callback, HFP_SUBEVENT_AUDIO_CONNECTION_COMPLETE, packet[2]);
} else {
context->con_handle = READ_BT_16(packet, 9);
context->rfcomm_cid = READ_BT_16(packet, 12);

View File

@ -145,7 +145,6 @@ hfp_connection_t * get_hfp_connection_context_for_rfcomm_cid(uint16_t cid);
// TODO: move to utils
int send_str_over_rfcomm(uint16_t cid, char * command);
void join(char * buffer, int buffer_size, int buffer_offset, uint8_t * values, int values_nr);
void emit_event(hfp_callback_t callback, uint8_t event_subtype, uint8_t value);
#if defined __cplusplus
}