From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwanQ-000375-IJ for qemu-devel@nongnu.org; Wed, 11 Nov 2015 14:11:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwanP-0006gW-H0 for qemu-devel@nongnu.org; Wed, 11 Nov 2015 14:11:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwanP-0006g2-C9 for qemu-devel@nongnu.org; Wed, 11 Nov 2015 14:11:03 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id F338D80080 for ; Wed, 11 Nov 2015 19:11:02 +0000 (UTC) From: Eduardo Habkost Date: Wed, 11 Nov 2015 17:09:15 -0200 Message-Id: <1447268956-27500-12-git-send-email-ehabkost@redhat.com> In-Reply-To: <1447268956-27500-1-git-send-email-ehabkost@redhat.com> References: <1447268956-27500-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 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 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 | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 917f327..3ed384f 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -132,16 +132,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 915fa29..0ea0934 100644 --- a/vl.c +++ b/vl.c @@ -2074,6 +2074,16 @@ 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