summaryrefslogtreecommitdiffstats
path: root/server/red_client_shared_cache.h
Commit message (Collapse)AuthorAgeFilesLines
* Use the spice-common logging functionsMarc-André Lureau2012-03-251-4/+4
| | | | | It will abort by default for critical level messages. That behaviour can be tuned at runtime.
* Remove trailing whitespace from end of linesDaniel P. Berrange2012-01-131-1/+1
|
* server/red_worker: multiple client support - base splitAlon Levy2011-08-231-26/+24
| | | | | | | | | | | | | | | | | | This patch compiles but breaks spice. Split both display and cursor channels to a client part and channel part. Introduce DisplayChannelClient, CursorChannelClient, CommonChannelClient. don't disconnect channel on client disconnect. Move all caches to the ChannelClient's. Remove reference counting of the channel. No new functionality introduced. NOTE: Introduces a crash in disconnections, a regression, resulting from incorrect thread access, that is fixed in the patch titled: "server: registering RedChannel in reds, instead of Channel"
* server: move pipe from RedChannel to RedChannelClientAlon Levy2011-08-231-2/+1
| | | | | | | | | | | | | | | | | | | | | | | Another cleanup patch, no change to behavior (still one client, and it disconnects previous client if any). The implementation for multiple client is straightforward: the pipe remains per (channel,client) pair, so it needs to move from the RedChannel that to RedChannelClient. Implementation using a single pipe with multiple consumers (to reflect different latencies) doesn't fit well with pipe rewriting that is used by the display channel. Additionally this approach is much simpler to verify. Lastly it doesn't add considerable overhead (but see the display channel changes in a later patch for a real place to rethink). This patch is just technical, changing signatures to reflect the first argument (oop style) so red_channel becomes red_channel_client. Some places may seem odd but they should be fixed with later comits where the channels grow to support multiple clients. Sound (playback/record) channels are the only ones not touched - this is consistent with previous patches, since they have been left out of the RedChannel refactoring. That is left as future work. (note that they don't use a pipe, which was the reason for not refactoring).
* server/red_channel (all): introduce RedChannelClientAlon Levy2011-08-231-6/+11
| | | | | | | | | | | | | | | | | | | | | This commit adds a RedChannelClient that now owns the stream connection, but still doesn't own the pipe. There is only a single RCC per RC right now (and RC still means RedChannel, RedClient will be introduced later). All internal api changes are in server/red_channel.h, hence the need to update all channels. red_worker.c is affected the most because it makes use of direct access to some of RedChannel still. API changes: 1. red_channel_client_create added. rec_channel_create -> (red_channel_create, red_channel_client_create) 2. two way connection: rcc->channel, channel->rcc (later channel will hold a list, and there will be a RedClient to hold the list of channels per client) 3. seperation of channel disconnect and channel_client_disconnect TODO: usbredir added untested.
* server: use red_channel_get_message_serialAlon Levy2011-03-021-3/+3
|
* server/red_worker: red_channel renamesAlon Levy2011-03-021-1/+1
| | | | | | | | | | | | | The renames are part of refactoring red_worker's RedChannel to reuse red_channel.h's RedChannel at the end. s/red_send_data/red_channel_send/ s/red_pipe_get/red_channel_pipe_get/ s/recive_data/incoming/ s/red_receive/red_channel_receive/ s/channel_handle_message/red_channel_handle_message/ s/channel_is_connected/red_channel_is_connected/ s/red_pipe_add_type/red_channel_pipe_add_type/
* server/red_worker: introduce CommonChannelAlon Levy2011-02-111-10/+10
| | | | | | | with everything (almost) not in red_channel's RedChannel As a result of CommonChannel a free cb is added to EventHandler, to take care of non zero offset for embedded EventHandler.
* support for lossy images in the pixmap cache and fill bitsYonit Halperin2010-06-091-2/+22
| | | | | | 1) add an option to determine if a bitmap can be sent lossy to the client 2) when required, replacing lossy cache items with their correspending lossless bitmaps
* Relicense everything from GPL to LGPL 2.1+Alexander Larsson2010-04-131-9/+9
|
* Use spice allocator in server/Alexander Larsson2010-03-111-4/+1
|
* Rename symbols that were changed in spice-protocolAlexander Larsson2010-02-041-4/+4
| | | | | | This is an automatic change using: $ find -name "*.[ch]" | xargs ../spice-protocol/rename-identifiers.sh ../spice-protocol/renames $ find -name "*.cpp" | xargs ../spice-protocol/rename-identifiers.sh ../spice-protocol/renames
* fresh startYaniv Kamay2009-10-141-0/+216