]> git.proxmox.com Git - mirror_qemu.git/blame - ui/vnc-stubs.c
block/export: Conditionally ignore set-context error
[mirror_qemu.git] / ui / vnc-stubs.c
CommitLineData
637b0477
GH
1#include "qemu/osdep.h"
2#include "ui/console.h"
577ce409 3#include "qapi/error.h"
637b0477
GH
4
5int vnc_display_password(const char *id, const char *password)
6{
7 return -ENODEV;
8}
9int vnc_display_pw_expire(const char *id, time_t expires)
10{
11 return -ENODEV;
12};
653c9747 13void vnc_parse(const char *str)
637b0477 14{
db88404a 15 if (strcmp(str, "none") == 0) {
653c9747 16 return;
db88404a 17 }
653c9747 18 error_setg(&error_fatal, "VNC support is disabled");
637b0477
GH
19}
20int vnc_init_func(void *opaque, QemuOpts *opts, Error **errp)
21{
22 error_setg(errp, "VNC support is disabled");
23 return -1;
24}