vnc-stubs.c (57c98ea9acdcef5021f5671efa6475a5794a51c4) | vnc-stubs.c (653c97473530b4d0e79950103447bad99b64ed79) |
---|---|
1#include "qemu/osdep.h" 2#include "ui/console.h" 3#include "qapi/error.h" 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}; | 1#include "qemu/osdep.h" 2#include "ui/console.h" 3#include "qapi/error.h" 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}; |
13QemuOpts *vnc_parse(const char *str, Error **errp) | 13void vnc_parse(const char *str) |
14{ 15 if (strcmp(str, "none") == 0) { | 14{ 15 if (strcmp(str, "none") == 0) { |
16 return NULL; | 16 return; |
17 } | 17 } |
18 error_setg(errp, "VNC support is disabled"); 19 return NULL; | 18 error_setg(&error_fatal, "VNC support is disabled"); |
20} 21int vnc_init_func(void *opaque, QemuOpts *opts, Error **errp) 22{ 23 error_setg(errp, "VNC support is disabled"); 24 return -1; 25} | 19} 20int vnc_init_func(void *opaque, QemuOpts *opts, Error **errp) 21{ 22 error_setg(errp, "VNC support is disabled"); 23 return -1; 24} |