mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
remove unused functions
This commit is contained in:
parent
c7b53f7dcd
commit
86bcf286c1
18
src/hfp_ag.c
18
src/hfp_ag.c
@ -1175,24 +1175,6 @@ void hfp_ag_terminate_call(void){
|
||||
hfp_ag_call_sm(HFP_AG_TERMINATE_CALL_BY_AG, NULL);
|
||||
}
|
||||
|
||||
|
||||
void hfp_ag_audio_connection_transfer_towards_ag(bd_addr_t bd_addr){
|
||||
hfp_connection_t * connection = get_hfp_connection_context_for_bd_addr(bd_addr);
|
||||
if (connection->call_state != HFP_CALL_ACTIVE) return;
|
||||
if (connection->state != HFP_AUDIO_CONNECTION_ESTABLISHED) return;
|
||||
hfp_ag_release_audio_connection(bd_addr);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*/
|
||||
void hfp_ag_audio_connection_transfer_towards_hf(bd_addr_t bd_addr){
|
||||
hfp_connection_t * connection = get_hfp_connection_context_for_bd_addr(bd_addr);
|
||||
if (connection->call_state != HFP_CALL_ACTIVE) return;
|
||||
if (connection->state != HFP_AUDIO_CONNECTION_ESTABLISHED) return;
|
||||
hfp_ag_establish_audio_connection(bd_addr);
|
||||
}
|
||||
|
||||
void hfp_ag_place_a_call_with_phone_number(void){
|
||||
// linked_list_iterator_t it;
|
||||
// linked_list_iterator_init(&it, hfp_get_connections());
|
||||
|
10
src/hfp_ag.h
10
src/hfp_ag.h
@ -190,16 +190,6 @@ void hfp_ag_call_dropped(void);
|
||||
*/
|
||||
void hfp_ag_terminate_call(void);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*/
|
||||
void hfp_ag_audio_connection_transfer_towards_hf(bd_addr_t bd_addr);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*/
|
||||
void hfp_ag_audio_connection_transfer_towards_ag(bd_addr_t bd_addr);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*/
|
||||
|
@ -138,8 +138,6 @@ static void show_usage(void){
|
||||
printf("i - Set battery level to 3\n");
|
||||
printf("I - Set battery level to 5\n");
|
||||
|
||||
printf("j - Transfer audio from AG to HF\n");
|
||||
|
||||
printf("t - terminate connection\n");
|
||||
|
||||
printf("---\n");
|
||||
@ -224,9 +222,6 @@ static int stdin_process(struct data_source *ds){
|
||||
printf("Set battery level to 5\n");
|
||||
hfp_ag_set_battery_level(5);
|
||||
break;
|
||||
case 'j':
|
||||
hfp_ag_audio_connection_transfer_towards_hf(device_addr);
|
||||
break;
|
||||
case 'r':
|
||||
printf("Disable in-band ring tone\n");
|
||||
hfp_ag_set_use_in_band_ring_tone(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user