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.
This commit is contained in:
Arun Raghavan 2012-02-06 17:17:34 +05:30
parent 8f850403c0
commit 8baf8e90c2
4 changed files with 104 additions and 0 deletions

View file

@ -168,6 +168,7 @@ pa_format_info_free;
pa_format_info_free2;
pa_format_info_from_string;
pa_format_info_from_sample_spec;
pa_format_info_get_prop_type;
pa_format_info_get_prop_int;
pa_format_info_get_prop_int_range;
pa_format_info_get_prop_int_array;