bluez5: backend-native: add CLCC support

Start call id at 1 as for the index calls in HFP, and move this id
to spa_bt_telephony_[ag|call] so they can be used by CLCC to retrieve
the related call.

if enhanced call status is supported, send AT+CLCC on +CIEV events to
get the calls information.
This commit is contained in:
Frédéric Danis 2024-10-15 12:21:27 +02:00 committed by Wim Taymans
parent a8363ff92b
commit f5e08677a2
3 changed files with 84 additions and 10 deletions

View file

@ -32,12 +32,16 @@ struct spa_bt_telephony {
struct spa_bt_telephony_ag {
struct spa_bt_telephony *telephony;
struct spa_list call_list;
int id;
};
struct spa_bt_telephony_call {
struct spa_bt_telephony_ag *ag;
struct spa_list link; /* link in ag->call_list */
int id;
/* D-Bus properties */
char *line_identification;
char *incoming_line;