summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2015-10-26 16:41:19 +0000
committerFrediano Ziglio <fziglio@redhat.com>2015-10-28 15:31:48 +0000
commit788c9d47907e33238350e837aadb12e5d7f608a0 (patch)
tree9119ec4ba5ccf337a78e5b4928c9fbcaf0049d37
parent0b386603cbcd14bcbd0eb8faec2015c437f7a2a8 (diff)
downloadspice-788c9d47907e33238350e837aadb12e5d7f608a0.tar.gz
spice-788c9d47907e33238350e837aadb12e5d7f608a0.tar.xz
spice-788c9d47907e33238350e837aadb12e5d7f608a0.zip
worker: remove unused type field from AddBufInfo
value was always BUF_TYPE_RAW Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Uri Lublin <ulublin@redhat.com>
-rw-r--r--server/red_worker.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index 965a14d4..a55e57a9 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -266,10 +266,6 @@ struct SpiceWatch {
};
enum {
- BUF_TYPE_RAW = 1,
-};
-
-enum {
PIPE_ITEM_TYPE_DRAW = PIPE_ITEM_TYPE_CHANNEL_BASE,
PIPE_ITEM_TYPE_INVAL_ONE,
PIPE_ITEM_TYPE_CURSOR,
@@ -4688,7 +4684,6 @@ static void red_push_surface_image(DisplayChannelClient *dcc, int surface_id)
}
typedef struct {
- uint32_t type;
void *data;
uint32_t size;
} AddBufInfo;
@@ -4711,11 +4706,7 @@ static void marshaller_add_compressed(SpiceMarshaller *m,
static void add_buf_from_info(SpiceMarshaller *m, AddBufInfo *info)
{
if (info->data) {
- switch (info->type) {
- case BUF_TYPE_RAW:
- spice_marshaller_add_ref(m, info->data, info->size);
- break;
- }
+ spice_marshaller_add_ref(m, info->data, info->size);
}
}
@@ -6435,7 +6426,6 @@ static void fill_cursor(CursorChannelClient *ccc, SpiceCursor *red_cursor,
}
if (red_cursor->data_size) {
- addbuf->type = BUF_TYPE_RAW;
addbuf->data = red_cursor->data;
addbuf->size = red_cursor->data_size;
}