pulse: Deal with header consitification in PulseAudio 13.0

The 13.0 release included changes to constify various parameters in the
public headers, which breaks our implementation. This adds an optional
const qualifier based on the version we're compiling against to deal
with that. There are some warnings caused by bad annotations upstream
which should be fixed separately.
This commit is contained in:
Arun Raghavan 2019-09-27 07:45:15 +05:30
parent 2308318b39
commit 8666bcac65
9 changed files with 47 additions and 39 deletions

View file

@ -953,7 +953,7 @@ pa_cvolume* pa_cvolume_set_position(
SPA_EXPORT
pa_volume_t pa_cvolume_get_position(
pa_cvolume *cv,
PA_CONST pa_cvolume *cv,
const pa_channel_map *map,
pa_channel_position_t t) {