提交 27be5587 编写于 作者: G Gerd Hoffmann

console: make DisplayState private to console.c

With gui_* being moved to console.c nobody outside console.c needs
access to DisplayState fields any more.  Make the struct private.
Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 98a9ad90
......@@ -182,14 +182,6 @@ struct DisplayChangeListener {
QLIST_ENTRY(DisplayChangeListener) next;
};
struct DisplayState {
struct QEMUTimer *gui_timer;
bool have_gfx;
bool have_text;
QLIST_HEAD(, DisplayChangeListener) listeners;
};
DisplayState *init_displaystate(void);
DisplaySurface* qemu_create_displaysurface_from(int width, int height, int bpp,
int linesize, uint8_t *data,
......
......@@ -157,6 +157,14 @@ struct QemuConsole {
QEMUTimer *kbd_timer;
};
struct DisplayState {
struct QEMUTimer *gui_timer;
bool have_gfx;
bool have_text;
QLIST_HEAD(, DisplayChangeListener) listeners;
};
static DisplayState *display_state;
static QemuConsole *active_console;
static QemuConsole *consoles[MAX_CONSOLES];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册