bluez5: support and use old api.bluez5.a2dp.* factory names for A2DP

For backward compatibility with old Wireplumber releases, support the
old api.bluez5.a2dp.sink/source names, and use them in object events
instead of the media.sink/source names.
This commit is contained in:
Pauli Virtanen 2022-09-15 23:02:51 +03:00
parent 101287159e
commit 8de03f5c29
5 changed files with 36 additions and 6 deletions

View file

@ -1651,3 +1651,13 @@ const struct spa_handle_factory spa_media_source_factory = {
impl_init,
impl_enum_interface_info,
};
/* Retained for backward compatibility */
const struct spa_handle_factory spa_a2dp_source_factory = {
SPA_VERSION_HANDLE_FACTORY,
SPA_NAME_API_BLUEZ5_A2DP_SOURCE,
&info,
impl_get_size,
impl_init,
impl_enum_interface_info,
};