summaryrefslogtreecommitdiffstats
path: root/server/display-channel.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2014-02-13 16:56:59 +0100
committerFrediano Ziglio <fziglio@redhat.com>2015-11-18 14:30:32 +0000
commit92d9b782bd0754083f79a04a9e9edc38339c0cc4 (patch)
treede74e3ef17f7785afb09e1bd5e0aaa82afc5ff12 /server/display-channel.h
parent3941d03d116df8213836719dce179d40bf55a6ca (diff)
downloadspice-92d9b782bd0754083f79a04a9e9edc38339c0cc4.tar.gz
spice-92d9b782bd0754083f79a04a9e9edc38339c0cc4.tar.xz
spice-92d9b782bd0754083f79a04a9e9edc38339c0cc4.zip
worker: simplify RedCompressBuf
Make sure an allocated buffer is correctly referenced by the marshaller, and can't be free and reused by mistake. Simplify the code by using GSlice Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
Diffstat (limited to 'server/display-channel.h')
-rw-r--r--server/display-channel.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/server/display-channel.h b/server/display-channel.h
index b207e245..5e11d0e3 100644
--- a/server/display-channel.h
+++ b/server/display-channel.h
@@ -81,7 +81,6 @@ struct RedCompressBuf {
uint8_t bytes[RED_COMPRESS_BUF_SIZE];
uint32_t words[RED_COMPRESS_BUF_SIZE / 4];
} buf;
- RedCompressBuf *next;
RedCompressBuf *send_next;
};
@@ -189,8 +188,6 @@ struct DisplayChannelClient {
uint32_t stream_outbuf_size;
uint8_t *stream_outbuf; // caution stream buffer is also used as compress bufs!!!
- RedCompressBuf *used_compress_bufs;
-
FreeList free_list;
uint64_t pixmap_cache_items[MAX_DRAWABLE_PIXMAP_CACHE_ITEMS];
int num_pixmap_cache_items;