diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2011-11-23 13:28:21 -0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2011-12-06 11:40:01 -0200 |
commit | a4dea8a9f4e0a4a863e5f3b366350fd697552d8a (patch) | |
tree | 6721237466ed612c826d6f2d0e3eeb6800fc5282 /hmp.c | |
parent | 4b37156c40c3d7d63ac332e3bb9f85a66c3f5e5e (diff) |
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.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); +} |