vnc-stubs.c 524 B

123456789101112131415161718192021222324
  1. #include "qemu/osdep.h"
  2. #include "ui/console.h"
  3. #include "qapi/error.h"
  4. int vnc_display_password(const char *id, const char *password)
  5. {
  6. return -ENODEV;
  7. }
  8. int vnc_display_pw_expire(const char *id, time_t expires)
  9. {
  10. return -ENODEV;
  11. };
  12. void vnc_parse(const char *str)
  13. {
  14. if (strcmp(str, "none") == 0) {
  15. return;
  16. }
  17. error_setg(&error_fatal, "VNC support is disabled");
  18. }
  19. int vnc_init_func(void *opaque, QemuOpts *opts, Error **errp)
  20. {
  21. error_setg(errp, "VNC support is disabled");
  22. return -1;
  23. }