mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
QMP: Introduce basic asynchronous events
Debug, shutdown, reset, powerdown and stop are all basic events, as they are very simple they can be added in the same commit. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
0d1ea871b0
commit
b1a15e7eaa
3 changed files with 29 additions and 2 deletions
15
monitor.c
15
monitor.c
|
|
@ -342,6 +342,21 @@ void monitor_protocol_event(MonitorEvent event, QObject *data)
|
|||
return;
|
||||
|
||||
switch (event) {
|
||||
case EVENT_DEBUG:
|
||||
event_name = "DEBUG";
|
||||
break;
|
||||
case EVENT_SHUTDOWN:
|
||||
event_name = "SHUTDOWN";
|
||||
break;
|
||||
case EVENT_RESET:
|
||||
event_name = "RESET";
|
||||
break;
|
||||
case EVENT_POWERDOWN:
|
||||
event_name = "POWERDOWN";
|
||||
break;
|
||||
case EVENT_STOP:
|
||||
event_name = "STOP";
|
||||
break;
|
||||
default:
|
||||
abort();
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue