mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-10 15:44:32 +00:00
hfp_ag: move hfp_ag_set_callsetup_indicator and hfp_ag_set_callheld_indicator up
This commit is contained in:
parent
9f9621cf0f
commit
056efd455f
@ -853,6 +853,24 @@ static void hfp_timeout_stop(hfp_connection_t * hfp_connection){
|
||||
btstack_run_loop_remove_timer(& hfp_connection->hfp_timeout);
|
||||
}
|
||||
|
||||
static void hfp_ag_set_callsetup_indicator(void){
|
||||
hfp_ag_indicator_t * indicator = get_ag_indicator_for_name("callsetup");
|
||||
if (!indicator){
|
||||
log_error("hfp_ag_set_callsetup_indicator: callsetup indicator is missing");
|
||||
return;
|
||||
};
|
||||
indicator->status = hfp_gsm_callsetup_status();
|
||||
}
|
||||
|
||||
static void hfp_ag_set_callheld_indicator(void){
|
||||
hfp_ag_indicator_t * indicator = get_ag_indicator_for_name("callheld");
|
||||
if (!indicator){
|
||||
log_error("hfp_ag_set_callheld_state: callheld indicator is missing");
|
||||
return;
|
||||
};
|
||||
indicator->status = hfp_gsm_callheld_status();
|
||||
}
|
||||
|
||||
//
|
||||
// transitition implementations for hfp_ag_call_state_machine
|
||||
//
|
||||
@ -1015,24 +1033,6 @@ static void hfp_ag_trigger_terminate_call(void){
|
||||
hfp_emit_simple_event(NULL, HFP_SUBEVENT_CALL_TERMINATED);
|
||||
}
|
||||
|
||||
static void hfp_ag_set_callsetup_indicator(void){
|
||||
hfp_ag_indicator_t * indicator = get_ag_indicator_for_name("callsetup");
|
||||
if (!indicator){
|
||||
log_error("hfp_ag_set_callsetup_indicator: callsetup indicator is missing");
|
||||
return;
|
||||
};
|
||||
indicator->status = hfp_gsm_callsetup_status();
|
||||
}
|
||||
|
||||
static void hfp_ag_set_callheld_indicator(void){
|
||||
hfp_ag_indicator_t * indicator = get_ag_indicator_for_name("callheld");
|
||||
if (!indicator){
|
||||
log_error("hfp_ag_set_callheld_state: callheld indicator is missing");
|
||||
return;
|
||||
};
|
||||
indicator->status = hfp_gsm_callheld_status();
|
||||
}
|
||||
|
||||
static void hfp_ag_set_call_indicator(void){
|
||||
hfp_ag_indicator_t * indicator = get_ag_indicator_for_name("call");
|
||||
if (!indicator){
|
||||
|
Loading…
x
Reference in New Issue
Block a user