bluez5: telephony: add Address property on the AudioGateway interface

This allows associating the AG with a remote device on higher level
software.
This commit is contained in:
George Kiagiadakis 2024-11-20 12:05:59 +02:00 committed by Wim Taymans
parent a0356cf4ae
commit 7de0419ca3
3 changed files with 90 additions and 36 deletions

View file

@ -2159,6 +2159,7 @@ static bool rfcomm_hfp_hf(struct rfcomm *rfcomm, char* token)
}
rfcomm->telephony_ag = telephony_ag_new(backend->telephony, 0);
rfcomm->telephony_ag->address = strdup(rfcomm->device->address);
telephony_ag_set_callbacks(rfcomm->telephony_ag,
&telephony_ag_callbacks, rfcomm);
if (rfcomm->transport) {