[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT c80d259] monitor: Convert do_system_reset() to QO
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT c80d259] monitor: Convert do_system_reset() to QObject |
Date: |
Fri, 09 Oct 2009 02:22:01 -0000 |
From: Luiz Capitulino <address@hidden>
Patchworks-ID: 35347
Signed-off-by: Luiz Capitulino <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/monitor.c b/monitor.c
index ae0a567..3209875 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1292,7 +1292,11 @@ static void do_boot_set(Monitor *mon, const QDict *qdict)
}
}
-static void do_system_reset(Monitor *mon, const QDict *qdict)
+/**
+ * do_system_reset(): Issue a machine reset
+ */
+static void do_system_reset(Monitor *mon, const QDict *qdict,
+ QObject **ret_data)
{
qemu_system_reset_request();
}
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index 8fcba24..b116b5e 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -467,7 +467,8 @@ ETEXI
.args_type = "",
.params = "",
.help = "reset the system",
- .mhandler.cmd = do_system_reset,
+ .user_print = monitor_user_noop,
+ .mhandler.cmd_new = do_system_reset,
},
STEXI
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT c80d259] monitor: Convert do_system_reset() to QObject,
Anthony Liguori <=