From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHYt2-0004xk-5C for qemu-devel@nongnu.org; Mon, 18 Mar 2013 08:09:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHYsv-0005Nn-Uc for qemu-devel@nongnu.org; Mon, 18 Mar 2013 08:09:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHYsv-0005NF-MX for qemu-devel@nongnu.org; Mon, 18 Mar 2013 08:09:49 -0400 From: Gerd Hoffmann Date: Mon, 18 Mar 2013 13:09:40 +0100 Message-Id: <1363608582-26571-14-git-send-email-kraxel@redhat.com> In-Reply-To: <1363608582-26571-1-git-send-email-kraxel@redhat.com> References: <1363608582-26571-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 13/15] console: make DisplayState private to console.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Gerd Hoffmann 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 --- 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