Backported some patches from refactory branches (23th Oct)

Submitted by Frediano Ziglio on Oct. 23, 2015, 12:13 p.m.

Details

Reviewer None
Submitted Oct. 23, 2015, 12:13 p.m.
Last Updated Oct. 23, 2015, 12:14 p.m.
Revision 1

Cover Letter(s)

Revision 1
      These patches are extracted from a branch intended to refactory
spice-server.

This patchset supersed last patchset.

Changes:
- rebased on upstream master;
- removed merged patches;
- remove "server: dispatcher_init/dispatcher_new" patch;
- split "remove need for WorkerInitData" patch as suggested;
- added more patches;
- move loop patches at the end. Still not clear what to do with
  it. Suggestions to split it.

Alon Levy (1):
  server/red_worker: red_draw_qxl_drawable: protect from NULL
    dereference in case of buggy driver (or recording)

Marc-André Lureau (13):
  worker: access dispatcher pending field using helper functions
  worker: remove need for WorkerInitData
  server: start separate display/cursor channel headers
  server: split cache-item.h
  server: move some cursor code to cursor-channel.c
  server: remove worker->id
  server: group worker channel related stuff
  server: make cursor channel private
  server: make more of cursor private
  server: move display_channel_client_new()
  tree: move that to a seperate unit
  worker: use glib main loop
  channel: do not free rcc->stream in red_channel_client_disconnect

 server/Makefile.am         |    9 +-
 server/cache-item.h        |   39 +
 server/cache_item.tmpl.c   |    4 +-
 server/cursor-channel.c    |  582 ++++++++++++++
 server/cursor-channel.h    |   48 ++
 server/display-channel.c   |   38 +
 server/display-channel.h   |  243 ++++++
 server/red_channel.c       |   51 +-
 server/red_channel.h       |    8 +
 server/red_dispatcher.c    |  104 +--
 server/red_dispatcher.h    |    7 +
 server/red_worker.c        | 1911 ++++++++++----------------------------------
 server/red_worker.h        |  124 ++-
 server/reds.c              |   44 +-
 server/reds.h              |   16 +
 server/spice_timer_queue.c |  273 -------
 server/spice_timer_queue.h |   43 -
 server/tree.c              |  182 +++++
 server/tree.h              |  111 +++
 19 files changed, 1899 insertions(+), 1938 deletions(-)
 create mode 100644 server/cache-item.h
 create mode 100644 server/cursor-channel.c
 create mode 100644 server/cursor-channel.h
 create mode 100644 server/display-channel.c
 create mode 100644 server/display-channel.h
 delete mode 100644 server/spice_timer_queue.c
 delete mode 100644 server/spice_timer_queue.h
 create mode 100644 server/tree.c
 create mode 100644 server/tree.h
    

Revisions