Remove GObject from RedChannel

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

The patch seems pretty huge but mainly are mechanical steps:- remove GObject declarations- do not inherit from GObject- add SPICE_CXX_GLIB_ALLOCATOR to avoid using C++ allocators- CLASS_init and CLASS_constructor code goes into C++ constructor- CLASS_dispose and CLASS_finalize code goes into C++ destructor- g_object_new is replaced by new operator- class members goes into virtual methods- class parameters became argument to constructor- use push-visibility.h and pop-visibility.h to limit visibility- temporary use XXX_CAST for old GObject casts, they will be replaced- g_object_get is replaced by accessors

104aa6e1 Remove GObject from RedChannel
server/common-graphics-channel.cpp | 27 +---
server/common-graphics-channel.h | 34 ++---
server/cursor-channel-client.cpp | 4 +-
server/cursor-channel-client.h | 2 +-
server/cursor-channel.cpp | 87 ++----------
server/cursor-channel.h | 35 ++---
server/dcc-send.cpp | 2 +
server/dcc.cpp | 2 +-
server/display-channel-private.h | 2 +
server/display-channel.cpp | 238 ++++++++-------------------------
server/display-channel.h | 38 +++---
server/inputs-channel-client.cpp | 2 +
server/inputs-channel.cpp | 92 +++----------
server/inputs-channel.h | 33 +++--
server/main-channel-client.cpp | 10 +-
server/main-channel.cpp | 54 +-------
server/main-channel.h | 32 ++---
server/red-channel-client.cpp | 33 ++---
server/red-channel-client.h | 3 -
server/red-channel.cpp | 255 ++++++++----------------------------
server/red-channel.h | 78 ++++++-----
server/red-client.cpp | 8 +-
server/red-stream-device.cpp | 8 +-
server/red-worker.cpp | 18 +--
server/reds.cpp | 40 +++---
server/smartcard.cpp | 67 ++--------
server/sound.cpp | 251 ++++++++++-------------------------
server/spicevmc.cpp | 221 ++++++++-----------------------
server/stream-channel.cpp | 97 +++-----------
server/stream-channel.h | 41 +++---
server/tests/test-channel.cpp | 49 ++-----
server/tests/test-smartcard.cpp | 4 +-
server/tests/test-stream-device.cpp | 34 ++---
33 files changed, 533 insertions(+), 1368 deletions(-)

Upstream: cgit.freedesktop.org


  • Share