mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-27 06:35:20 +00:00
Merge branch 'master' of https://github.com/bluekitchen/btstack
This commit is contained in:
commit
1930a248c9
@ -67,7 +67,7 @@ static uint8_t hfp_codecs_nr = 0;
|
||||
static uint8_t hfp_codecs[HFP_MAX_NUM_CODECS];
|
||||
|
||||
static uint8_t hfp_hf_indicators_nr = 0;
|
||||
static hfp_hf_indicator_t hfp_hf_indicators[HFP_MAX_NUM_HF_INDICATORS];
|
||||
static hfp_generic_status_indicators_t hfp_hf_indicators[HFP_MAX_NUM_HF_INDICATORS];
|
||||
|
||||
static int hfp_ag_indicators_nr = 0;
|
||||
static hfp_ag_indicator_t hfp_ag_indicators[HFP_MAX_NUM_AG_INDICATORS];
|
||||
@ -474,7 +474,7 @@ static void packet_handler(void * connection, uint8_t packet_type, uint16_t chan
|
||||
void hfp_ag_init(uint16_t rfcomm_channel_nr, uint32_t supported_features,
|
||||
uint8_t * codecs, int codecs_nr,
|
||||
hfp_ag_indicator_t * ag_indicators, int ag_indicators_nr,
|
||||
hfp_hf_indicator_t * hf_indicators, int hf_indicators_nr,
|
||||
hfp_generic_status_indicators_t * hf_indicators, int hf_indicators_nr,
|
||||
char *call_hold_services[], int call_hold_services_nr){
|
||||
if (codecs_nr > HFP_MAX_NUM_CODECS){
|
||||
log_error("hfp_init: codecs_nr (%d) > HFP_MAX_NUM_CODECS (%d)", codecs_nr, HFP_MAX_NUM_CODECS);
|
||||
@ -495,7 +495,7 @@ void hfp_ag_init(uint16_t rfcomm_channel_nr, uint32_t supported_features,
|
||||
memcpy(hfp_ag_indicators, ag_indicators, ag_indicators_nr * sizeof(hfp_ag_indicator_t));
|
||||
|
||||
hfp_hf_indicators_nr = hf_indicators_nr;
|
||||
memcpy(hfp_hf_indicators, hf_indicators, hf_indicators_nr * sizeof(hfp_hf_indicator_t));
|
||||
memcpy(hfp_hf_indicators, hf_indicators, hf_indicators_nr * sizeof(hfp_generic_status_indicators_t));
|
||||
|
||||
hfp_ag_call_hold_services_nr = call_hold_services_nr;
|
||||
memcpy(hfp_ag_call_hold_services, call_hold_services, call_hold_services_nr * sizeof(char *));
|
||||
|
@ -67,7 +67,7 @@ void hfp_ag_create_sdp_record(uint8_t * service, int rfcomm_channel_nr, const ch
|
||||
void hfp_ag_init(uint16_t rfcomm_channel_nr, uint32_t supported_features,
|
||||
uint8_t * codecs, int codecs_nr,
|
||||
hfp_ag_indicator_t * ag_indicators, int ag_indicators_nr,
|
||||
hfp_hf_indicator_t * hf_indicators, int hf_indicators_nr,
|
||||
hfp_generic_status_indicators_t * hf_indicators, int hf_indicators_nr,
|
||||
char *call_hold_services[], int call_hold_services_nr);
|
||||
|
||||
/**
|
||||
|
@ -91,7 +91,7 @@ static int call_hold_services_nr = 5;
|
||||
static char* call_hold_services[] = {"1", "1x", "2", "2x", "3"};
|
||||
|
||||
static int hf_indicators_nr = 2;
|
||||
static hfp_hf_indicator_t hf_indicators[] = {
|
||||
static hfp_generic_status_indicators_t hf_indicators[] = {
|
||||
{1, 1, 1},
|
||||
{2, 1, 1},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user