diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-04-23 15:44:31 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-25 14:45:46 -0500 |
commit | 5209089fcd1373c363dc424827593ffaced12203 (patch) | |
tree | fe84ffff6e59236542d668b8cb869f4a397af1d3 /ui/console.c | |
parent | cdd5b9375744130e2f49548a3cac7be176a931ca (diff) | |
download | hqemu-5209089fcd1373c363dc424827593ffaced12203.zip hqemu-5209089fcd1373c363dc424827593ffaced12203.tar.gz |
console: zap ds arg from register_displaychangelistener
We don't have multiple DisplayStates any more,
so passing it in as argument is not needed.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/console.c')
-rw-r--r-- | ui/console.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/console.c b/ui/console.c index 3835316..a13fb64 100644 --- a/ui/console.c +++ b/ui/console.c @@ -178,6 +178,7 @@ static int nb_consoles = 0; static void text_console_do_init(CharDriverState *chr, DisplayState *ds); static void dpy_refresh(DisplayState *s); +static DisplayState *get_alloc_displaystate(void); static void gui_update(void *opaque) { @@ -1309,15 +1310,14 @@ void qemu_free_displaysurface(DisplaySurface *surface) g_free(surface); } -void register_displaychangelistener(DisplayState *ds, - DisplayChangeListener *dcl) +void register_displaychangelistener(DisplayChangeListener *dcl) { QemuConsole *con; trace_displaychangelistener_register(dcl, dcl->ops->dpy_name); - dcl->ds = ds; - QLIST_INSERT_HEAD(&ds->listeners, dcl, next); - gui_setup_refresh(ds); + dcl->ds = get_alloc_displaystate(); + QLIST_INSERT_HEAD(&dcl->ds->listeners, dcl, next); + gui_setup_refresh(dcl->ds); if (dcl->con) { dcl->con->dcls++; con = dcl->con; |