]> git.proxmox.com Git - mirror_qemu.git/commit - softmmu/vl.c
ui: add qapi parser for -display
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 7 May 2018 09:55:36 +0000 (11:55 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 15 May 2018 08:37:40 +0000 (10:37 +0200)
commit776d1344bd0566f412d5bc063e753a6b98530bcf
tree0e2c9f65cbef6d9a4eeaf18356c2ee61a0a3e0ce
parentf31f9c1080d8907c95f1501c6abab038eceb5490
ui: add qapi parser for -display

Add parse_display_qapi() function which parses the -display command line
using a qapi visitor for DisplayOptions.  Wire up as default catch in
parse_display().

Improves the error message for unknown display types.

Also enables json as -display argument, i.e. -display "{ 'type': 'gtk' }"

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