format: Add API to query a property's type
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 6 Feb 2012 11:47:34 +0000 (17:17 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 5 Mar 2012 14:30:31 +0000 (20:00 +0530)
commit8baf8e90c2c6b8b1cb63658e7d46d770bb86560b
tree88f018c234c7f2a022756eaacd1ae328c0c2f0f7
parent8f850403c0a1184fd0c77166172ec02b565bb58e
format: Add API to query a property's type

Since a given property can be single-valued, an array or (in the case of
ints) a range, clients need an API to figure out what type of value a
property holds. This adds such an API. The actual property type
enumeration is kept in the PA_PROP_* namespace and not the
PA_FORMAT_INFO* namespace so that it can later be reused for properties
generically if required.
src/map-file
src/pulse/format.c
src/pulse/format.h
src/tests/format-test.c