diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-09-16 12:33:03 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-01-22 11:18:46 +0100 |
commit | 4db14629c38611061fc19ec6927405923de84f08 (patch) | |
tree | 91f5a9dbe009f55a16654f426d8484ccdc42c671 /include/ui/console.h | |
parent | c8496408b443a2a34dd03ad4274c2575248aa3e8 (diff) |
vnc: switch to QemuOpts, allow multiple servers
This patch switches vnc over to QemuOpts, and it (more or less
as side effect) allows multiple vnc server instances.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/ui/console.h')
-rw-r--r-- | include/ui/console.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ui/console.h b/include/ui/console.h index 03358b4886..8a4d671fbc 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -332,12 +332,14 @@ void cocoa_display_init(DisplayState *ds, int full_screen); /* vnc.c */ void vnc_display_init(const char *id); -void vnc_display_open(const char *id, const char *display, Error **errp); +void vnc_display_open(const char *id, Error **errp); void vnc_display_add_client(const char *id, int csock, bool skipauth); char *vnc_display_local_addr(const char *id); #ifdef CONFIG_VNC int vnc_display_password(const char *id, const char *password); int vnc_display_pw_expire(const char *id, time_t expires); +QemuOpts *vnc_parse_func(const char *str); +int vnc_init_func(QemuOpts *opts, void *opaque); #else static inline int vnc_display_password(const char *id, const char *password) { |