bluez5: implement Bluetooth MIDI device enumeration

Add monitor for enumerating connected Bluetooth MIDI devices.
This commit is contained in:
Pauli Virtanen 2022-10-30 16:51:21 +02:00 committed by Wim Taymans
parent a07dfbbdb9
commit 931e8da3ea
5 changed files with 827 additions and 0 deletions

View file

@ -35,6 +35,7 @@ extern const struct spa_handle_factory spa_sco_sink_factory;
extern const struct spa_handle_factory spa_sco_source_factory;
extern const struct spa_handle_factory spa_a2dp_sink_factory;
extern const struct spa_handle_factory spa_a2dp_source_factory;
extern const struct spa_handle_factory spa_bluez5_midi_enum_factory;
SPA_EXPORT
int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
@ -67,6 +68,9 @@ int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t
case 7:
*factory = &spa_a2dp_source_factory;
break;
case 8:
*factory = &spa_bluez5_midi_enum_factory;
break;
default:
return 0;
}