red-channel-client: Make send_item a virtual function

Enterprise / Virtualization / SPICE - Frediano Ziglio [redhat.com] - 1 May 2020 05:58 EDT

The items are send from RedChannelClient so move the callback to a virtual function in RedChannelClient instead of RedChannel.

669df4fb red-channel-client: Make send_item a virtual function
server/cursor-channel-client.h | 4 ++
server/cursor-channel.cpp | 14 ++---
server/dcc-send.cpp | 46 ++++++++--------
server/dcc.h | 5 +-
server/display-channel.cpp | 1 -
server/inputs-channel-client.h | 2 +
server/inputs-channel.cpp | 17 +++---
server/main-channel-client.cpp | 60 +++++++++++----------
server/main-channel-client.h | 2 +-
server/main-channel.cpp | 1 -
server/red-channel-client.cpp | 2 +-
server/red-channel-client.h | 7 +++
server/red-channel.cpp | 8 ---
server/red-channel.h | 9 ----
server/smartcard-channel-client.h | 1 +
server/smartcard.cpp | 21 +++-----
server/sound.cpp | 107 ++++++++++++++++++--------------------
server/spicevmc.cpp | 17 +++---
server/stream-channel.cpp | 48 ++++++++---------
server/tests/test-channel.cpp | 6 ---
20 files changed, 173 insertions(+), 205 deletions(-)

Upstream: cgit.freedesktop.org


  • Share