From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asbka-0003EJ-Tt for qemu-devel@nongnu.org; Tue, 19 Apr 2016 15:55:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1asbka-0007eS-3v for qemu-devel@nongnu.org; Tue, 19 Apr 2016 15:55:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1asbkZ-0007eL-V2 for qemu-devel@nongnu.org; Tue, 19 Apr 2016 15:55:56 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8825078231 for ; Tue, 19 Apr 2016 19:55:55 +0000 (UTC) From: Eduardo Habkost Date: Tue, 19 Apr 2016 16:55:27 -0300 Message-Id: <1461095728-22055-12-git-send-email-ehabkost@redhat.com> In-Reply-To: <1461095728-22055-1-git-send-email-ehabkost@redhat.com> References: <1461095728-22055-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH for-2.7 v3 11/12] vl: Move DisplayType typedef to vl.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Marcel Apfelbaum Now the type is only used inside vl.c and doesn't need to be in a header file. Signed-off-by: Eduardo Habkost --- Change v1 -> v2: * Coding style fix (open brace '{' following enum go on the same line) --- 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 5867c0f..cc9cf65 100644 --- a/vl.c +++ b/vl.c @@ -2075,6 +2075,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.1.0