diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2011-08-03 18:36:04 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-08-23 18:27:46 +0300 |
commit | f84dfeb0aac4b6b49bc447a2140cbc7c2882de51 (patch) | |
tree | 67797cd53349553b101bf1f9c5ea4057b123bacb /server/red_dispatcher.h | |
parent | 1db936e64cfe955a757d9d77302f104f68a58bfd (diff) | |
download | spice-f84dfeb0aac4b6b49bc447a2140cbc7c2882de51.tar.gz spice-f84dfeb0aac4b6b49bc447a2140cbc7c2882de51.tar.xz spice-f84dfeb0aac4b6b49bc447a2140cbc7c2882de51.zip |
server: registering RedChannel in reds, instead of Channel
Merging the functionality of reds::channel, into RedChannel.
In addition, cleanup and fix disconnection code: before this patch,
red_dispatcher_disconnect_display_client
could have been called from the red_worker thread
(and it must be called only from the io thread).
RedChannel holds only connected channel clients. RedClient holds all the
channel clients that were created till it is destroyed
(and then it destroys them as well).
Note: snd_channel still doesn't use red_channel, however it
creates dummy channel and channel clients, in order to register itself
in reds.
server/red_channel.c: a channel is connected if it holds at least one channel client
Previously I changed RedChannel to hold only connected channel clients and
RedClient, to hold all the channel clients as long as it is not destroyed.
usbredir: multichannel has not been tested, it just compiles.
Diffstat (limited to 'server/red_dispatcher.h')
-rw-r--r-- | server/red_dispatcher.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/server/red_dispatcher.h b/server/red_dispatcher.h index 07a95aec..144a40e2 100644 --- a/server/red_dispatcher.h +++ b/server/red_dispatcher.h @@ -32,9 +32,4 @@ uint32_t red_dispatcher_qxl_ram_size(void); int red_dispatcher_qxl_count(void); void red_dispatcher_async_complete(struct RedDispatcher*, uint64_t); -void red_dispatcher_disconnect_display_client(struct RedDispatcher *dispatcher, - struct RedChannelClient *rcc); -void red_dispatcher_disconnect_cursor_client(struct RedDispatcher *dispatcher, - struct RedChannelClient *rcc); - #endif |