]> git.proxmox.com Git - qemu.git/blobdiff - qmp.c
qapi: Introduce change-vnc-password
[qemu.git] / qmp.c
diff --git a/qmp.c b/qmp.c
index 8b7b37999dda5b05b429b386242ad3a87f0ece59..f218485ef18c428e62e0c2eb0cb017407ae2205a 100644 (file)
--- a/qmp.c
+++ b/qmp.c
@@ -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);
+    }
+}