From 2ff39a367738422c0ca1313cac8ff380e1fdd498 Mon Sep 17 00:00:00 2001 From: Ot ten Thije Date: Wed, 6 Oct 2010 17:48:15 +0100 Subject: Control state snapshots from Android console. This patch exposes Qemu's save, load, delete and list commands for state snapshots on the Android console. A level of indirection is added by means of the OutputChannel construct. This allows us to show the output of the Qemu commands on the console rather than on the monitor, while minimizing the differences with the upstream codebase. The new commands are exposed only when the configuration constant CONFIG_ANDROID_SNAPSHOTS is not 0. Change-Id: I558d5cd505d321fe2da5835713d341d151f60534 --- sysemu.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sysemu.h') diff --git a/sysemu.h b/sysemu.h index 0c57d5d..fadf908 100644 --- a/sysemu.h +++ b/sysemu.h @@ -8,6 +8,7 @@ #include "qemu-timer.h" #include "qdict.h" #include "qerror.h" +#include "outputchannel.h" #ifdef _WIN32 #include @@ -61,9 +62,13 @@ void qemu_system_powerdown(void); void qemu_system_reset(void); void do_savevm(Monitor *mon, const char *name); +void do_savevm_oc(OutputChannel *err, const char *name); void do_loadvm(Monitor *mon, const char *name); +void do_loadvm_oc(OutputChannel *err, const char *name); void do_delvm(Monitor *mon, const char *name); +void do_delvm_oc(OutputChannel *err, const char *name); void do_info_snapshots(Monitor *mon); +void do_info_snapshots_oc(OutputChannel *out, OutputChannel *err); void qemu_announce_self(void); -- cgit v1.1