[PATCH 08/15] worker: group add_memslot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Marc-André Lureau <marcandre.lureau@xxxxxxxxx>

---
 server/red_worker.c | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index 0c1a1b1..f70ee9b 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -8701,24 +8701,6 @@ static void handle_dev_update(void *opaque, void *payload)
                            &msg->qxl_dirty_rects, &msg->num_dirty_rects);
 }
 
-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;
@@ -9285,6 +9267,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;
-- 
2.4.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]