aboutsummaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2011-11-23 13:28:21 -0200
committerLuiz Capitulino <lcapitulino@redhat.com>2011-12-06 11:40:01 -0200
commita4dea8a9f4e0a4a863e5f3b366350fd697552d8a (patch)
tree6721237466ed612c826d6f2d0e3eeb6800fc5282 /hmp.c
parent4b37156c40c3d7d63ac332e3bb9f85a66c3f5e5e (diff)
downloadqemu-a4dea8a9f4e0a4a863e5f3b366350fd697552d8a.zip
qemu-a4dea8a9f4e0a4a863e5f3b366350fd697552d8a.tar.gz
qemu-a4dea8a9f4e0a4a863e5f3b366350fd697552d8a.tar.bz2
qapi: Convert block_passwd
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c
index 5d1687d..3893d59 100644
--- a/hmp.c
+++ b/hmp.c
@@ -611,3 +611,13 @@ void hmp_set_link(Monitor *mon, const QDict *qdict)
qmp_set_link(name, up, &errp);
hmp_handle_error(mon, &errp);
}
+
+void hmp_block_passwd(Monitor *mon, const QDict *qdict)
+{
+ const char *device = qdict_get_str(qdict, "device");
+ const char *password = qdict_get_str(qdict, "password");
+ Error *errp = NULL;
+
+ qmp_block_passwd(device, password, &errp);
+ hmp_handle_error(mon, &errp);
+}