mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
console: add GraphicHwOps
Pass a single GraphicHwOps struct pointer to graphic_console_init, instead of a bunch of function pointers. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
27be55872d
commit
380cd056ec
26 changed files with 155 additions and 104 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue