diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-03-07 17:08:29 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-04-16 09:03:47 +0200 |
commit | 64840c66b702cc4c809c72d8ad5d26861dd7fd8d (patch) | |
tree | f566c08b0f58ef7f9ad5a4d78d17b1499388a0be /include | |
parent | 437fe1061be3da49b0b05ed2f0c9c50e2255c3fe (diff) |
console: displaystate init revamp
We have only one DisplayState, so there is no need for the "next"
linking, rip it. Also consolidate all displaystate initialization
into init_displaystate(). This function is called by vl.c after
creating the devices (and thus all QemuConsoles) and before
initializing DisplayChangeListensers (aka gtk/sdl/vnc/spice ui).
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/ui/console.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/ui/console.h b/include/ui/console.h index a234c72d2e..3725daef5d 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -189,12 +189,9 @@ struct DisplayState { bool have_text; QLIST_HEAD(, DisplayChangeListener) listeners; - - struct DisplayState *next; }; -void register_displaystate(DisplayState *ds); -DisplayState *get_displaystate(void); +DisplayState *init_displaystate(void); DisplaySurface* qemu_create_displaysurface_from(int width, int height, int bpp, int linesize, uint8_t *data, bool byteswap); |