[pulseaudio-discuss] [PATCH v0 05/20] bluetooth: Refactor hooks in module-bluetooth-policy

Dalleau, Frederic frederic.dalleau at intel.com
Wed Aug 22 06:09:14 PDT 2012


Hi Mikel,

On Wed, Aug 22, 2012 at 10:08 AM, Mikel Astiz <mikel.astiz.oss at gmail.com> wrote:
> From: Mikel Astiz <mikel.astiz at bmw-carit.de>
>
> Merge hooks into a single callback to avoid duplicated code.

I'm no fan of this one, the idea of parsing a list to know the pointer
type doesn't seem natural to me.
Instead you can keep get_bluetooth_protocol and write a helper to do
the module loading that takes the format string, sink name and role as
input.

Regards,
Frédéric


More information about the pulseaudio-discuss mailing list