[Spice-devel] [PATCH spice-server 2/6] red-qxl: Move QXLInterface wrappers together

Frediano Ziglio fziglio at redhat.com
Thu Sep 7 11:40:22 UTC 2017


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/red-qxl.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/server/red-qxl.c b/server/red-qxl.c
index 54d642ad9..bec063c17 100644
--- a/server/red-qxl.c
+++ b/server/red-qxl.c
@@ -638,18 +638,6 @@ static void qxl_worker_loadvm_commands(QXLWorker *qxl_worker,
     red_qxl_loadvm_commands(qxl_state, ext, count);
 }
 
-void red_qxl_attach_worker(QXLInstance *qxl)
-{
-    QXLInterface *interface = qxl_get_interface(qxl);
-    interface->attache_worker(qxl, &qxl->st->qxl_worker);
-}
-
-void red_qxl_set_compression_level(QXLInstance *qxl, int level)
-{
-    QXLInterface *interface = qxl_get_interface(qxl);
-    interface->set_compression_level(qxl, level);
-}
-
 uint32_t red_qxl_get_ram_size(QXLInstance *qxl)
 {
     QXLDevInitInfo qxl_info;
@@ -1073,6 +1061,18 @@ RedsState* red_qxl_get_server(QXLState *qxl_state)
     return qxl_state->reds;
 }
 
+void red_qxl_attach_worker(QXLInstance *qxl)
+{
+    QXLInterface *interface = qxl_get_interface(qxl);
+    interface->attache_worker(qxl, &qxl->st->qxl_worker);
+}
+
+void red_qxl_set_compression_level(QXLInstance *qxl, int level)
+{
+    QXLInterface *interface = qxl_get_interface(qxl);
+    interface->set_compression_level(qxl, level);
+}
+
 void red_qxl_get_init_info(QXLInstance *qxl, QXLDevInitInfo *info)
 {
     QXLInterface *interface = qxl_get_interface(qxl);
-- 
2.13.5



More information about the Spice-devel mailing list