diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2011-12-08 11:45:55 -0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-01-18 10:23:39 -0200 |
commit | 270b243f91cdae380eb02396e57452c15dbcef86 (patch) | |
tree | b18d5ce1084d8d88bbc87547a07d0128d846a52c /qmp.c | |
parent | 7060b478d3f3a8bc7a282292609ff5aec6de1958 (diff) | |
download | qemu-270b243f91cdae380eb02396e57452c15dbcef86.zip qemu-270b243f91cdae380eb02396e57452c15dbcef86.tar.gz qemu-270b243f91cdae380eb02396e57452c15dbcef86.tar.bz2 |
qapi: Introduce change-vnc-password
New QMP command to change the VNC password.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qmp.c')
-rw-r--r-- | qmp.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -343,3 +343,10 @@ void qmp_expire_password(const char *protocol, const char *whenstr, error_set(errp, QERR_INVALID_PARAMETER, "protocol"); } + +void qmp_change_vnc_password(const char *password, Error **errp) +{ + if (vnc_display_password(NULL, password) < 0) { + error_set(errp, QERR_SET_PASSWD_FAILED); + } +} |