[Spice-devel] [PATCH 00/23] red channel refactor part 3

Alon Levy alevy at redhat.com
Fri Feb 11 09:22:48 PST 2011


Continue making red_worker.c's internal RedChannel more similar
to RedChannel in red_channel.h, in the next batch it gets used.

The last few patches also start letting red_channel handle ack messages
for all channels (until now each channel had it's own ack mechanism).

Marc-Andre, I know by now you probably rather have all the renames together,
hope you don't mind I send it like this initially.. I'll of course squash them
once you request that ;)

Alon Levy (23):
  server/red_worker: s/red_send_data/red_channel_send/
  server/red_worker: s/red_pipe_get/red_channel_pipe_get/
  server/red_worker: add send_item
  server/red_worker: add red_channel_push
  server/red_worker: s/recive_data/incoming/
  server/red_worker: s/red_receive/red_channel_receive/
  server/red_worker: introduce red_channel_pipe_clear
  server/red_worker: don't push to NULL channel (called from device
    input)
  server/red_worker: line width fix
  server/red_worker:
    s/channel_handle_message/red_channel_handle_message/
  server/red_worker: s/channel_is_connected/red_channel_is_connected/
  server/red_worker: introduce common_channel_config_socket
  server/red_worker: introduce red_peer_handle_outgoing and
    OutgoingHandler
  server/red_channe: make hold_item take a channel arg
  server/red_worker: use red_channel
  server/red_worker: on handle_events do a push, not a send
  server/red_worker: s/red_pipe_add_type/red_channel_pipe_add_type/
  server/red_channel (all): makes red_channel_reset_send_data private
  server: use red_channel_get_message_serial
  server/red_channel: add more ack api
  server: move SET_ACK to red_channel
  server/inputs_channel: s/PIPE_ITEM_INIT/PIPE_ITEM_INPUTS_INIT/
  server/red_worker: use red_channel_destroy

 server/inputs_channel.c          |    9 +-
 server/main_channel.c            |    3 +-
 server/red_channel.c             |   88 +++++-
 server/red_channel.h             |   19 +-
 server/red_client_shared_cache.h |    8 +-
 server/red_tunnel_worker.c       |   27 +--
 server/red_worker.c              |  600 +++++++++-----------------------------
 server/smartcard.c               |    3 +-
 8 files changed, 232 insertions(+), 525 deletions(-)

-- 
1.7.4



More information about the Spice-devel mailing list