summaryrefslogtreecommitdiffstats
path: root/ui/vnc-stubs.c
blob: b4eb3ce718e750ec905e3e35b2763be06ed00682 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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;
};
void vnc_parse(const char *str)
{
    if (strcmp(str, "none") == 0) {
        return;
    }
    error_setg(&error_fatal, "VNC support is disabled");
}
int vnc_init_func(void *opaque, QemuOpts *opts, Error **errp)
{
    error_setg(errp, "VNC support is disabled");
    return -1;
}