]> Git Repo - qemu.git/blobdiff - hw/display/xenfb.c
console: add GraphicHwOps
[qemu.git] / hw / display / xenfb.c
index 80cc9e832015308fddabf9fb4faf26cddc993cb5..8d327f138ea681b63066387fb65d1f496d46eefd 100644 (file)
@@ -977,6 +977,11 @@ struct XenDevOps xen_framebuffer_ops = {
     .frontend_changed = fb_frontend_changed,
 };
 
+static const GraphicHwOps xenfb_ops = {
+    .invalidate  = xenfb_invalidate,
+    .gfx_update  = xenfb_update,
+};
+
 /*
  * FIXME/TODO: Kill this.
  * Temporary needed while DisplayState reorganization is in flight.
@@ -1004,10 +1009,7 @@ wait_more:
 
     /* vfb */
     fb = container_of(xfb, struct XenFB, c.xendev);
-    fb->c.con = graphic_console_init(xenfb_update,
-                                     xenfb_invalidate,
-                                     NULL,
-                                     fb);
+    fb->c.con = graphic_console_init(&xenfb_ops, fb);
     fb->have_console = 1;
 
     /* vkbd */
This page took 0.031498 seconds and 4 git commands to generate.