[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 13/15] console: make DisplayState private to console
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 13/15] console: make DisplayState private to console.c |
Date: |
Mon, 18 Mar 2013 13:09:40 +0100 |
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: Gerd Hoffmann <address@hidden>
---
include/ui/console.h | 8 --------
ui/console.c | 8 ++++++++
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/include/ui/console.h b/include/ui/console.h
index d92626b..50cd7b0 100644
--- a/include/ui/console.h
+++ b/include/ui/console.h
@@ -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,
diff --git a/ui/console.c b/ui/console.c
index 8e8f918..c22895f 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -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];
--
1.7.9.7
- [Qemu-devel] [PATCH 00/15] console: overhaul continued., Gerd Hoffmann, 2013/03/18
- [Qemu-devel] [PATCH 07/15] console: displaystate init revamp, Gerd Hoffmann, 2013/03/18
- [Qemu-devel] [PATCH 04/15] console: use pixman for font rendering, Gerd Hoffmann, 2013/03/18
- [Qemu-devel] [PATCH 12/15] console: move gui_update+gui_setup_refresh from vl.c into console.c, Gerd Hoffmann, 2013/03/18
- [Qemu-devel] [PATCH 11/15] console: zap g_width + g_height, Gerd Hoffmann, 2013/03/18
- [Qemu-devel] [PATCH 03/15] console: use pixman for fill+blit, Gerd Hoffmann, 2013/03/18
- [Qemu-devel] [PATCH 09/15] console: give each QemuConsole its own DisplaySurface, Gerd Hoffmann, 2013/03/18
- [Qemu-devel] [PATCH 06/15] console: add trace events, Gerd Hoffmann, 2013/03/18
- [Qemu-devel] [PATCH 02/15] pixman: render vgafont glyphs into pixman images, Gerd Hoffmann, 2013/03/18
- [Qemu-devel] [PATCH 13/15] console: make DisplayState private to console.c,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 05/15] console: switch color_table_rgb to pixman_color_t, Gerd Hoffmann, 2013/03/18
- [Qemu-devel] [PATCH 15/15] console: gui timer fixes, Gerd Hoffmann, 2013/03/18
- [Qemu-devel] [PATCH 08/15] console: rename vga_hw_*, add QemuConsole param, Gerd Hoffmann, 2013/03/18
- [Qemu-devel] [PATCH 01/15] pixman: add qemu_pixman_color(), Gerd Hoffmann, 2013/03/18
- [Qemu-devel] [PATCH 10/15] console: simplify screendump, Gerd Hoffmann, 2013/03/18
- [Qemu-devel] [PATCH 14/15] console: add GraphicHwOps, Gerd Hoffmann, 2013/03/18