rtpoll: Separate out before/after/work callback userdata
authorArun Raghavan <arun@arunraghavan.net>
Thu, 12 May 2016 12:35:14 +0000 (18:05 +0530)
committerArun Raghavan <arun@arunraghavan.net>
Fri, 8 Nov 2019 12:09:03 +0000 (17:39 +0530)
commiteb912d3605e86509b0e69aa37ba2b3fad805df63
treeb1fb19b891abb256679c999057ca8bf56302b4c7
parentd15291bbbb7675f2b13d7bc8de621e3250d0aba0
rtpoll: Separate out before/after/work callback userdata

It is possible that we might want to have a separate userdata to be used
for these callbacks, so let's split them out.

This is particularly needed when using an pa_rtpoll_item around pa_fdsem
since that uses its own before/after callback but will essentially have
whatever is using the fdsem set up the work callback appropriately (and
thus at least the work callback's userdata needs to be separated from
the before/after callback -- we might as well then just separate all
three).

Signed-off-by: Arun Raghavan <arun@arunraghavan.net>
src/modules/alsa/alsa-mixer.c
src/modules/rtp/module-rtp-recv.c
src/pulsecore/rtpoll.c
src/pulsecore/rtpoll.h
src/tests/rtpoll-test.c