[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH for-2.7 v3 11/12] vl: Move DisplayType typedef to vl
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PATCH for-2.7 v3 11/12] vl: Move DisplayType typedef to vl.c |
Date: |
Tue, 19 Apr 2016 16:55:27 -0300 |
Now the type is only used inside vl.c and doesn't need to be in a
header file.
Signed-off-by: Eduardo Habkost <address@hidden>
---
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
- [Qemu-devel] [PATCH for-2.7 v3 04/12] sdl: Initialization stubs, (continued)
- [Qemu-devel] [PATCH for-2.7 v3 04/12] sdl: Initialization stubs, Eduardo Habkost, 2016/04/19
- [Qemu-devel] [PATCH for-2.7 v3 01/12] vl: Add DT_COCOA DisplayType value, Eduardo Habkost, 2016/04/19
- [Qemu-devel] [PATCH for-2.7 v3 05/12] cocoa: cocoa_display_init() stub, Eduardo Habkost, 2016/04/19
- [Qemu-devel] [PATCH for-2.7 v3 02/12] vnc: Initialization stubs, Eduardo Habkost, 2016/04/19
- [Qemu-devel] [PATCH for-2.7 v3 07/12] spice: Initialization stubs on qemu-spice.h, Eduardo Habkost, 2016/04/19
- [Qemu-devel] [PATCH for-2.7 v3 08/12] milkymist: Move DT_NOGRAPHIC check outside milkymist_tmu2_create(), Eduardo Habkost, 2016/04/19
- [Qemu-devel] [PATCH for-2.7 v3 10/12] vl: Make display_type a local variable, Eduardo Habkost, 2016/04/19
- [Qemu-devel] [PATCH for-2.7 v3 06/12] gtk: Initialization stubs, Eduardo Habkost, 2016/04/19
- [Qemu-devel] [PATCH for-2.7 v3 09/12] vl: Replace DT_NOGRAPHIC with machine option, Eduardo Habkost, 2016/04/19
- [Qemu-devel] [PATCH for-2.7 v3 12/12] vl: Make display_remote a local variable, Eduardo Habkost, 2016/04/19
- [Qemu-devel] [PATCH for-2.7 v3 11/12] vl: Move DisplayType typedef to vl.c,
Eduardo Habkost <=