@@ -2137,6 +2137,12 @@ static void do_inject_nmi(Monitor *mon, const QDict *qdict)
}
#endif
+static void qmp_query_status(Monitor *mon, QObject **ret_data)
+{
+ *ret_data = qobject_from_jsonf("{ 'running': %i, 'singlestep': %i }",
+ vm_running, singlestep);
+}
+
static void do_info_status_print(Monitor *mon, const QObject *data)
{
QDict *qdict;
@@ -2156,12 +2162,6 @@ static void do_info_status_print(Monitor *mon, const QObject *data)
monitor_printf(mon, "\n");
}
-static void qmp_query_status(Monitor *mon, QObject **ret_data)
-{
- *ret_data = qobject_from_jsonf("{ 'running': %i, 'singlestep': %i }",
- vm_running, singlestep);
-}
-
static qemu_acl *find_acl(Monitor *mon, const char *name)
{
qemu_acl *acl = qemu_acl_find(name);
So that next commit can change do_info_status_print() to use it. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> --- monitor.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)