[pulseaudio-discuss] [PATCH v4 2/2] bluetooth: module-bluetooth-policy initial commit

Tanu Kaskinen tanuk at iki.fi
Wed Jul 4 06:22:40 PDT 2012


On Wed, 2012-06-20 at 17:33 +0200, Frédéric Dalleau wrote:
> +int pa__init(pa_module*m) {
> +    struct userdata *u;
> +
> +    pa_assert(m);
> +
> +    m->userdata = u = pa_xnew(struct userdata, 1);
> +
> +    u->source_put_slot = pa_hook_connect(&m->core->hooks[PA_CORE_HOOK_SOURCE_PUT], PA_HOOK_LATE+20, (pa_hook_cb_t) source_put_hook_callback, u);

If you use something else than PA_HOOK_NORMAL for the slot priority, you
should have some reason for that and document it with a comment.

-- 
Tanu



More information about the pulseaudio-discuss mailing list