diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-08-26 23:39:14 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2010-08-26 23:39:14 +0200 |
commit | 465ecbb818bd62fce26a7ad01c355dde7da22214 (patch) | |
tree | a3e3210a8b63d891f6d2821f962f86e4d74148c8 | |
parent | a05741ce1b9099c3a3df3865e4d0563eec46e2f8 (diff) |
zap dead qxl chunk code
-rw-r--r-- | server/red_worker.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/server/red_worker.c b/server/red_worker.c index f525f17..17bbf6f 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -222,7 +222,6 @@ struct EventListener { enum { BUF_TYPE_RAW = 1, - BUF_TYPE_CHUNK, }; typedef struct BufDescriptor { @@ -4517,41 +4516,13 @@ static void marshaller_add_compressed(RedWorker *worker, SpiceMarshaller *m, } -static void marshaller_add_chunk(RedWorker *worker, SpiceMarshaller *m, QXLDataChunk *chunk, size_t size, - int memslot_id, uint32_t group_id) -{ - while (chunk != NULL && size > 0) { - int data_size = chunk->data_size; - - if (data_size > size) - data_size = size; - size -= data_size; - - if (data_size) { - validate_virt(&worker->mem_slots, (unsigned long)chunk->data, memslot_id, data_size, group_id); - spice_marshaller_add_ref(m, (uint8_t *)chunk->data, data_size); - } - chunk = chunk->next_chunk ? - (QXLDataChunk *)get_virt(&worker->mem_slots, chunk->next_chunk, sizeof(QXLDataChunk), - group_id) : - NULL; - } -} - static void add_buf_from_info(RedChannel *channel, SpiceMarshaller *m, AddBufInfo *info) { - QXLDataChunk *chunk; - if (info->data) { switch (info->type) { case BUF_TYPE_RAW: spice_marshaller_add_ref(m, info->data, info->size); break; - case BUF_TYPE_CHUNK: - chunk = (QXLDataChunk *)info->data; - marshaller_add_chunk(channel->worker, m, chunk, - info->size, info->slot_id, info->group_id); - break; } } } |