From 3264ff120c032df83ae3f6aa84fbe90ff55a3a13 Mon Sep 17 00:00:00 2001 From: Jes Sorensen Date: Wed, 16 Mar 2011 13:33:33 +0100 Subject: Add support for -display vnc Signed-off-by: Jes Sorensen Signed-off-by: Anthony Liguori --- vl.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'vl.c') diff --git a/vl.c b/vl.c index 2da2136..1cb7ce2 100644 --- a/vl.c +++ b/vl.c @@ -1611,6 +1611,20 @@ static DisplayType select_display(const char *p) fprintf(stderr, "SDL support is disabled\n"); exit(1); #endif + } else if (strstart(p, "vnc", &opts)) { + display_remote++; + + if (*opts) { + const char *nextopt; + + if (strstart(opts, "=", &nextopt)) { + vnc_display = nextopt; + } + } + if (!vnc_display) { + fprintf(stderr, "VNC requires a display argument vnc=\n"); + exit(1); + } } else if (strstart(p, "curses", &opts)) { #ifdef CONFIG_CURSES display = DT_CURSES; -- cgit v1.1