unit-test: Add testcase for pxb
[qemu.git] / ui / vnc-stubs.c
blobc6b737dcec67529e27e78b4c46f787bd32258e45
1 #include "qemu/osdep.h"
2 #include "ui/console.h"
3 #include "qapi/error.h"
5 int vnc_display_password(const char *id, const char *password)
7 return -ENODEV;
9 int vnc_display_pw_expire(const char *id, time_t expires)
11 return -ENODEV;
13 QemuOpts *vnc_parse(const char *str, Error **errp)
15 if (strcmp(str, "none") == 0) {
16 return NULL;
18 error_setg(errp, "VNC support is disabled");
19 return NULL;
21 int vnc_init_func(void *opaque, QemuOpts *opts, Error **errp)
23 error_setg(errp, "VNC support is disabled");
24 return -1;