[Spice-devel] [PATCH 00/17] Backported some patches from refactory branches (11th Feb)

Frediano Ziglio fziglio at redhat.com
Thu Feb 11 19:23:59 UTC 2016


Many new patches try to incrementally remove global reds variable so
they add RedsState* as parameter.

Changes:
- merged many patches;
- merged some s -> reds rename to "Remove last usage of global 'reds'
  variable;
- added new patches.

Jonathon Jongsma (17):
  Add RedsState arg to all stat functions
  Add RedsState arg to smartcard_device_connect()
  Store a reference to RedsState in Channel base class
  Add RedsState arg to inputs_channel_new()
  Add RedsState arg to reds_set_migration_dest_info()
  MainChannel: don't use global 'reds' variable
  Remove global 'dispatchers', 'num_active_workers' variables
  CommonChannel -> CommonWorkerChannel
  Store reference to RedsState in RedDispatcher
  Add red_dispatcher_get_server()
  Remove use of global 'reds' within RedWorker
  Add red_channel_get_server()
  Add RedsState reference to RedsStream
  Remove global main_dispatcher variable
  Remove use of global 'reds' from sound.c
  Remove use of global 'reds' from AgentMsgFilter
  Remove last usage of global 'reds' variable

 server/agent-msg-filter.c  |   8 +-
 server/agent-msg-filter.h  |  11 +-
 server/cursor-channel.c    |  26 +--
 server/dcc-send.c          |   6 +-
 server/dcc.c               |   8 +-
 server/dcc.h               |   4 +-
 server/display-channel.c   |  21 ++-
 server/display-channel.h   |   2 +-
 server/inputs-channel.c    |   6 +-
 server/inputs-channel.h    |   2 +-
 server/main-channel.c      |  51 +++---
 server/main-channel.h      |   2 +-
 server/main-dispatcher.c   |  83 +++++----
 server/main-dispatcher.h   |  12 +-
 server/red-channel.c       |  37 ++--
 server/red-channel.h       |  20 ++-
 server/red-dispatcher.c    | 236 ++++++++-----------------
 server/red-dispatcher.h    |  27 +--
 server/red-worker.c        |  67 ++++----
 server/red-worker.h        |  45 ++---
 server/reds-private.h      |   3 +-
 server/reds-stream.c       |  26 +--
 server/reds-stream.h       |   3 +-
 server/reds.c              | 421 +++++++++++++++++++++++++++++----------------
 server/reds.h              |  10 +-
 server/smartcard.c         |  22 +--
 server/smartcard.h         |   2 +-
 server/sound.c             |  24 ++-
 server/sound.h             |   4 +-
 server/spicevmc.c          |   2 +-
 server/stat.h              |  22 +--
 server/stream.c            |   5 +-
 server/tests/stream-test.c |   8 +-
 33 files changed, 672 insertions(+), 554 deletions(-)

-- 
2.5.0



More information about the Spice-devel mailing list