]> code.delx.au - pulseaudio/commit
format: Extend properties to handle lists/ranges
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Wed, 13 Apr 2011 08:35:18 +0000 (14:05 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Sun, 15 May 2011 04:39:35 +0000 (10:09 +0530)
commit8d076d09902fe618e69f3d71e42299bffe2af437
tree6160fab6ebfb646e79988efd729e3aed23a20ad8
parent62f56a9f6b01c277a8c4f15625473df4b73bd208
format: Extend properties to handle lists/ranges

This replaces the simple string used by pa_format_info's proplist with a
JSON string (accessed via new API only). This allows us to express lists
and ranges more cleanly, and embed type information for future
extensibility.

We use json-c for JSON parsing. This is a lightweight depdency (32 KB on
my system) and avoids the hassle of having to reinvent a JSON parser.

Also included is a test which verifies functionality and is
valgrind-clean.
configure.ac
src/Makefile.am
src/map-file
src/pulse/format.c
src/pulse/format.h
src/pulse/internal.h
src/tests/format-test.c [new file with mode: 0644]