From 9ad5372daa3100d78b12aad59054970f15692a90 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Wed, 7 Dec 2011 11:47:57 -0200 Subject: qapi: Convert expire_password Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- hmp.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'hmp.c') diff --git a/hmp.c b/hmp.c index 888e1b96ce..081acabd21 100644 --- a/hmp.c +++ b/hmp.c @@ -692,3 +692,13 @@ void hmp_set_password(Monitor *mon, const QDict *qdict) qmp_set_password(protocol, password, !!connected, connected, &err); hmp_handle_error(mon, &err); } + +void hmp_expire_password(Monitor *mon, const QDict *qdict) +{ + const char *protocol = qdict_get_str(qdict, "protocol"); + const char *whenstr = qdict_get_str(qdict, "time"); + Error *err = NULL; + + qmp_expire_password(protocol, whenstr, &err); + hmp_handle_error(mon, &err); +} -- cgit v1.2.1