sound: Convert SndChannelClient to RedChannelClient

Enterprise / Virtualization / SPICE - Christophe Fergeau [redhat.com] - 2 February 2017 10:31 EST

Now that SndChannelClient has switched from using its own code for sending data to using RedChannelClient, it's very close to being an actual RedChannelClient. This commit makes it directly inherit from RedChannelClient rather than having a channel_client field. This allows to get rid of the whole DummyChannel/DummyChannelClient code.

Based on a patch from Frediano Ziglio

d8dc09b sound: Convert SndChannelClient to RedChannelClient
server/Makefile.am | 2 -
server/dummy-channel-client.c | 140 --------------
server/dummy-channel-client.h | 65 -------
server/sound.c | 412 +++++++++++++++++++++++-------------------
4 files changed, 224 insertions(+), 395 deletions(-)

Upstream: cgit.freedesktop.org


  • Share