From 21ef45d71221b4577330fe3aacfb06afad91ad46 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 28 Feb 2013 11:34:31 +0100 Subject: console: kill DisplayState->opaque It's broken by design. There can be multiple DisplayChangeListener instances, so they simply can't store state in the (single) DisplayState struct. Try 'qemu -display gtk -vnc :0', watch it crash & burn. With DisplayChangeListenerOps having a more sane interface now we can simply use the DisplayChangeListener pointer to get access to our private data instead. Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include') diff --git a/include/ui/console.h b/include/ui/console.h index bf54f1ea54..91a1f63e5d 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -193,7 +193,6 @@ struct DisplayChangeListener { struct DisplayState { struct DisplaySurface *surface; - void *opaque; struct QEMUTimer *gui_timer; bool have_gfx; bool have_text; -- cgit v1.2.3