summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-09-16 00:13:39 +0200
committerFrediano Ziglio <fziglio@redhat.com>2015-11-09 17:03:34 +0000
commit9c57505849c7d17d83ba2cc5a2a0b2b0ccb93897 (patch)
treea6285618cc587aefcee053b67b7c26cb769df658
parent873639abf704f6fc9662a4e3b689b9a9ba50b619 (diff)
downloadspice-9c57505849c7d17d83ba2cc5a2a0b2b0ccb93897.zip
spice-9c57505849c7d17d83ba2cc5a2a0b2b0ccb93897.tar.gz
spice-9c57505849c7d17d83ba2cc5a2a0b2b0ccb93897.tar.xz
worker: group add_memslot
Acked-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r--server/red_worker.c36
1 files changed, 18 insertions, 18 deletions
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;