]> git.proxmox.com Git - mirror_qemu.git/commitdiff
ui: switch trivial displays to qapi parser
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 7 May 2018 09:55:37 +0000 (11:55 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 15 May 2018 08:37:40 +0000 (10:37 +0200)
Drop the option-less display types (egl-headless, curses, none) from
parse_display(), so they'll be handled by parse_display_qapi().

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20180507095539.19584-3-kraxel@redhat.com

vl.c

diff --git a/vl.c b/vl.c
index c56f7f80463d89c7a1aee79d93b3d45bd35e0a88..6b8f946d58a9d92535ff80b6114a58d7ae6588c9 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -2185,10 +2185,6 @@ static void parse_display(const char *p)
             error_report("VNC requires a display argument vnc=<display>");
             exit(1);
         }
-    } else if (strstart(p, "egl-headless", &opts)) {
-        dpy.type = DISPLAY_TYPE_EGL_HEADLESS;
-    } else if (strstart(p, "curses", &opts)) {
-        dpy.type = DISPLAY_TYPE_CURSES;
     } else if (strstart(p, "gtk", &opts)) {
         dpy.type = DISPLAY_TYPE_GTK;
         while (*opts) {
@@ -2221,8 +2217,6 @@ static void parse_display(const char *p)
             }
             opts = nextopt;
         }
-    } else if (strstart(p, "none", &opts)) {
-        dpy.type = DISPLAY_TYPE_NONE;
     } else {
         parse_display_qapi(p);
     }