mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
db88404a4e
Currently `-vnc none` is fatal when built with `--disable-vnc`. Make vnc_parse accept "none", so QEMU still run without using vnc. Signed-off-by: Jason Andryuk <jandryuk@gmail.com> Message-id: 20201009014032.3507-1-jandryuk@gmail.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
26 lines
557 B
C
26 lines
557 B
C
#include "qemu/osdep.h"
|
|
#include "ui/console.h"
|
|
#include "qapi/error.h"
|
|
|
|
int vnc_display_password(const char *id, const char *password)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
int vnc_display_pw_expire(const char *id, time_t expires)
|
|
{
|
|
return -ENODEV;
|
|
};
|
|
QemuOpts *vnc_parse(const char *str, Error **errp)
|
|
{
|
|
if (strcmp(str, "none") == 0) {
|
|
return NULL;
|
|
}
|
|
error_setg(errp, "VNC support is disabled");
|
|
return NULL;
|
|
}
|
|
int vnc_init_func(void *opaque, QemuOpts *opts, Error **errp)
|
|
{
|
|
error_setg(errp, "VNC support is disabled");
|
|
return -1;
|
|
}
|