aboutsummaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2011-09-15 14:20:28 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2011-10-04 11:02:57 -0300
commit7a7f325e053c5079ce4b7b8e9e2b0f4c4c30ade8 (patch)
treedcdb119186cc081a65485edbe9826ca9f44aa6b1 /hmp.c
parentaa9b79bcd813b399ad13e13b5db4e8b2e8787e4c (diff)
qapi: Convert quit
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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c
index 30c6cc9511..7695dfc467 100644
--- a/hmp.c
+++ b/hmp.c
@@ -93,3 +93,9 @@ void hmp_info_chardev(Monitor *mon)
qapi_free_ChardevInfoList(char_info);
}
+
+void hmp_quit(Monitor *mon, const QDict *qdict)
+{
+ monitor_suspend(mon);
+ qmp_quit(NULL);
+}