diff options
author | Wenchao Xia <wenchaoqemu@gmail.com> | 2014-06-18 08:43:33 +0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-06-23 11:01:25 -0400 |
commit | 8432183137c4ae91e63e36a683fa0869b3db768e (patch) | |
tree | c98ca1bf8752172dda4fd4c8037d8ed36914b9a0 /vl.c | |
parent | f668470f403e83cc4622b1b4e563e2c61fbdfe62 (diff) | |
download | qemu-8432183137c4ae91e63e36a683fa0869b3db768e.tar.gz qemu-8432183137c4ae91e63e36a683fa0869b3db768e.tar.bz2 qemu-8432183137c4ae91e63e36a683fa0869b3db768e.zip |
qapi event: convert SHUTDOWN
This patch also eliminates build time warning caused by
QAPI_EVENT_MAX = 0.
Signed-off-by: Wenchao Xia <wenchaoqemu@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -117,6 +117,8 @@ int main(int argc, char **argv) #include "ui/qemu-spice.h" #include "qapi/string-input-visitor.h" #include "qapi/opts-visitor.h" +#include "qom/object_interfaces.h" +#include "qapi-event.h" #define DEFAULT_RAM_SIZE 128 @@ -1962,7 +1964,7 @@ static bool main_loop_should_exit(void) } if (qemu_shutdown_requested()) { qemu_kill_report(); - monitor_protocol_event(QEVENT_SHUTDOWN, NULL); + qapi_event_send_shutdown(&error_abort); if (no_shutdown) { vm_stop(RUN_STATE_SHUTDOWN); } else { |