[pulseaudio-discuss] [PATCH 4/5] core: add message handler
Tanu Kaskinen
tanuk at iki.fi
Sun Jan 14 19:55:49 UTC 2018
On Fri, 2018-01-12 at 19:42 +0100, Georg Chini wrote:
> On 12.01.2018 16:59, Tanu Kaskinen wrote:
> > On Sun, 2017-10-29 at 20:51 +0100, Georg Chini wrote:
> > > +Recipient: /core
> > > +Message: list-handlers
> > > +Parameters: None
> > > +Return value: {{Handler name} {Description}}
> >
> > I now realized that a single-level list isn't sufficient, it has to be
> > a list of lists:
> >
> > { { {/path1} {Description 1} } { {/path2} {Description 2} } }
> >
> > The reason is that the list of attributes should be extensible. When
> > using a single-level list, this would break old clients:
> >
> > { {/path1} {Description 1} {Some new attribute 1} {/path2} {Description 2} {Some new attribute 2} }
> >
>
> It is in fact a list of lists. The outermost brackets are not necessary
> because you
> always pass a list of elements and the elements are of the form {{path}
> {description}}
Ok, I see. There's an issue, though: this scheme prevents adding new
stuff after the outermost list. It's unlikely that such stuff would
ever be needed, though. I would like to keep the parameters and return
values extensible in all messages, but I don't feel particularly
strongly about that.
--
Tanu
https://liberapay.com/tanuk
https://www.patreon.com/tanuk
More information about the pulseaudio-discuss
mailing list