OSDN Git Service

console: kill DisplayState->opaque
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 28 Feb 2013 10:34:31 +0000 (11:34 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 18 Mar 2013 09:21:58 +0000 (10:21 +0100)
commit21ef45d71221b4577330fe3aacfb06afad91ad46
tree80e7115e65cce66068a720a1247ad2939066bf57
parent7c20b4a374d0016e3fce005690fb428354a56621
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 <kraxel@redhat.com>
include/ui/console.h
ui/gtk.c
ui/vnc.c
ui/vnc.h