[RFC] Property getter API for pa_format_info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2012-02-07 at 10:30 +0100, David Henningsson wrote:
> On 02/07/2012 09:20 AM, Arun Raghavan wrote:
> > Hi folks,
> > Embarassingly enough, I missed out adding getters for pa_format_info properties
> > when introducing them. Here comes a patch series for adding these.
> >
> > In order to not completely disrupt how we use properties for formats, we're
> > currently them in a proplist as (key, value) pairs as with normal proplists,
> > with the exception that values are actually parseable as JSON objects.
> >
> > In the nebulous future, we would likely want to move our internal
> > representation over to be completely JSON-ified, rather than piecemeal as it is
> > now.
> 
> This sounds scary... :-/ I'd rather wish we went the other way and made 
> the JSON dependency optional for those who didn't want it.

This was my initial reaction to using JSON in lower level softwareas
well, but I've come around to the view that it's a fairly decent way to
serialize the kind of data we're dealing with in proplists.

> Apart from that, I had a look at the patches, and nothing bumped out as 
> buggy (except the comment just sent). So I guess it's okay, that said I 
> haven't looked much into that part of PulseAudio.

Thanks for the review -- I've fixed the copy-pasto.

Cheers,
Arun



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux