[pulseaudio-discuss] [PATCH 1/4] stream-restore: add volume_is_absolute bool in client side

Lennart Poettering lennart at poettering.net
Fri May 8 16:23:45 PDT 2009


On Sat, 09.05.09 01:15, Lennart Poettering (lennart at poettering.net) wrote:

> 00:47 < mezcalero> finally, as last step
> 00:47 < mezcalero> move the negotiation of extensions into connection setup
> 00:48 < mezcalero> i.e. in the response to AUTH we get a list of supported extensions
> 00:48 < mezcalero> plus their versions
> 00:48 < mezcalero> and then keep that around forever

Of course this nego would need to be both ways. So the client sends a
list of extensions it knows during auth. And the server responds back
with the subset of those extensions it supports.

It would probably make sense to add two new API functions then:

    int pa_context_negotiate_extension(c, const char *name);

Which you could call between pa_context_new() and pa_context_connect()
if you want to negotiate some extension that isn't negotiated
automatically anyway.

And then of course:

    int pa_context_is_extension_negotiated(c, const char *name);

Which could then be used after the connection is established to check
whether a specific extension is supported.

That would of course make the _test() call of the m-s-r extension
mostly useless, but so be it.

The extension strings should be versioned in
itself. I.e. "volume-restore2", "volume-restore3" and so on.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4



More information about the pulseaudio-discuss mailing list