From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3t8R-0001hc-2Z for qemu-devel@nongnu.org; Fri, 20 May 2016 18:43:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3r2v-0001BH-DT for qemu-devel@nongnu.org; Fri, 20 May 2016 16:29:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3r2v-0001BD-7x for qemu-devel@nongnu.org; Fri, 20 May 2016 16:29:21 -0400 From: Eduardo Habkost Date: Fri, 20 May 2016 17:28:35 -0300 Message-Id: <1463776121-13529-16-git-send-email-ehabkost@redhat.com> In-Reply-To: <1463776121-13529-1-git-send-email-ehabkost@redhat.com> References: <1463776121-13529-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PULL 15/21] vl: Move DisplayType typedef to vl.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , "Michael S. Tsirkin" , Marcel Apfelbaum , qemu-devel@nongnu.org Now the type is only used inside vl.c and doesn't need to be in a header file. Signed-off-by: Eduardo Habkost --- include/sysemu/sysemu.h | 10 ---------- vl.c | 9 +++++++++ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 7e9f93e..618169c 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -131,16 +131,6 @@ void qemu_savevm_send_postcopy_ram_discard(QEMUFile *f, const char *name, int qemu_loadvm_state(QEMUFile *f); -typedef enum DisplayType -{ - DT_DEFAULT, - DT_CURSES, - DT_SDL, - DT_COCOA, - DT_GTK, - DT_NONE, -} DisplayType; - extern int autostart; typedef enum { diff --git a/vl.c b/vl.c index 0d10ceb..aaf9134 100644 --- a/vl.c +++ b/vl.c @@ -2077,6 +2077,15 @@ static void select_vgahw(const char *p) } } +typedef enum DisplayType { + DT_DEFAULT, + DT_CURSES, + DT_SDL, + DT_COCOA, + DT_GTK, + DT_NONE, +} DisplayType; + static DisplayType select_display(const char *p) { const char *opts; -- 2.5.5