mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
vnc: generalize "VNC server running on ..." message
The message is useful whenever the user specifies "-vnc to=XX". Move it to ui/vnc.c. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
cc96677469
commit
33df7bf3bf
3 changed files with 12 additions and 25 deletions
|
@ -460,7 +460,6 @@ void vnc_display_add_client(const char *id, int csock, bool skipauth);
|
|||
#ifdef CONFIG_VNC
|
||||
int vnc_display_password(const char *id, const char *password);
|
||||
int vnc_display_pw_expire(const char *id, time_t expires);
|
||||
char *vnc_display_local_addr(const char *id);
|
||||
QemuOpts *vnc_parse(const char *str, Error **errp);
|
||||
int vnc_init_func(void *opaque, QemuOpts *opts, Error **errp);
|
||||
#else
|
||||
|
@ -482,12 +481,6 @@ static inline int vnc_init_func(void *opaque, QemuOpts *opts, Error **errp)
|
|||
error_setg(errp, "VNC support is disabled");
|
||||
return -1;
|
||||
}
|
||||
static inline char *vnc_display_local_addr(const char *id)
|
||||
{
|
||||
/* This must never be called if CONFIG_VNC is disabled */
|
||||
error_report("VNC support is disabled");
|
||||
abort();
|
||||
}
|
||||
#endif
|
||||
|
||||
/* curses.c */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue