[Spice-commits] server/red_worker.c
Frediano Ziglio
fziglio at kemper.freedesktop.org
Mon Nov 9 09:04:07 PST 2015
server/red_worker.c | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
New commits:
commit 9c57505849c7d17d83ba2cc5a2a0b2b0ccb93897
Author: Marc-André Lureau <marcandre.lureau at gmail.com>
Date: Mon Sep 16 00:13:39 2013 +0200
worker: group add_memslot
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/server/red_worker.c b/server/red_worker.c
index 6ea57d9..d6e921a 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -9273,24 +9273,6 @@ static void handle_dev_update(void *opaque, void *payload)
clear_dirty_region);
}
-static void dev_add_memslot(RedWorker *worker, QXLDevMemSlot mem_slot)
-{
- red_memslot_info_add_slot(&worker->mem_slots, mem_slot.slot_group_id, mem_slot.slot_id,
- mem_slot.addr_delta, mem_slot.virt_start, mem_slot.virt_end,
- mem_slot.generation);
-}
-
-static void handle_dev_add_memslot(void *opaque, void *payload)
-{
- RedWorker *worker = opaque;
- RedWorkerMessageAddMemslot *msg = payload;
- QXLDevMemSlot mem_slot = msg->mem_slot;
-
- red_memslot_info_add_slot(&worker->mem_slots, mem_slot.slot_group_id, mem_slot.slot_id,
- mem_slot.addr_delta, mem_slot.virt_start, mem_slot.virt_end,
- mem_slot.generation);
-}
-
static void handle_dev_del_memslot(void *opaque, void *payload)
{
RedWorker *worker = opaque;
@@ -9877,6 +9859,24 @@ static void handle_dev_set_mouse_mode(void *opaque, void *payload)
cursor_channel_set_mouse_mode(worker->cursor_channel, msg->mode);
}
+static void dev_add_memslot(RedWorker *worker, QXLDevMemSlot mem_slot)
+{
+ red_memslot_info_add_slot(&worker->mem_slots, mem_slot.slot_group_id, mem_slot.slot_id,
+ mem_slot.addr_delta, mem_slot.virt_start, mem_slot.virt_end,
+ mem_slot.generation);
+}
+
+static void handle_dev_add_memslot(void *opaque, void *payload)
+{
+ RedWorker *worker = opaque;
+ RedWorkerMessageAddMemslot *msg = payload;
+ QXLDevMemSlot mem_slot = msg->mem_slot;
+
+ red_memslot_info_add_slot(&worker->mem_slots, mem_slot.slot_group_id, mem_slot.slot_id,
+ mem_slot.addr_delta, mem_slot.virt_start, mem_slot.virt_end,
+ mem_slot.generation);
+}
+
static void handle_dev_add_memslot_async(void *opaque, void *payload)
{
RedWorkerMessageAddMemslotAsync *msg = payload;
More information about the Spice-commits
mailing list