From: Mikel Astiz <mikel.astiz@xxxxxxxxxxxx> v1 proposal with the changes suggested by Tanu, most significantly: - Assertions used to detect duplicated card profiles instead of errors. - Hashmap memory freed in callers-side after pa_card_add_ports(). - Added core hooks to report added profiles and ports. - Subscription mechanism used to report card changes. - New UUID hook renamed to _HOOK_UUID_ADDED. - D-Bus API extended with signal NewProfile (patch v1 4/6). >From original cover-letter: PulseAudio does not currently support creating card profiles dynamically. This patchset proposes such feature in order to be used by the Bluetooth modules. Mikel Astiz (6): card: Support adding profiles dynamically card: Support adding ports dynamically dbus: Support dynamically created card profiles dbus: Add signal org.PulseAudio.Core1.Card.NewProfile bluetooth: Add hook to announce late UUIDs bluetooth: Handle UUIDs announced later src/modules/bluetooth/bluetooth-util.c | 8 ++++ src/modules/bluetooth/bluetooth-util.h | 1 + src/modules/bluetooth/module-bluetooth-device.c | 39 +++++++++++++++++++ src/modules/dbus/iface-card.c | 52 +++++++++++++++++++++++++ src/pulsecore/card.c | 29 ++++++++++++++ src/pulsecore/card.h | 3 ++ src/pulsecore/core.h | 2 + 7 files changed, 134 insertions(+) -- 1.7.11.7