aboutsummaryrefslogtreecommitdiff
path: root/savevm.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-05 19:33:37 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-05 19:33:37 +0000
commitda0ac2bc13bda3a4b202d049c086648f8680fc2d (patch)
treedcc1767ac74bdef30d14b639e0051fe36de9cd1c /savevm.c
parentd3c26320473efa638a55588450dcbc7bd29fab61 (diff)
create qemu_file_set_error (Glauber Costa)
This is mainly for consistency, since we don't want anything outside of savevm setting it explicitly. There are current no users of that in qemu tree, but there are potential candidates on kvm-userspace. And avi is a nice guy, let's be nice with him. Based on a patch by Yaniv Kamay Signed-off-by: Glauber Costa <glommer@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/branches/stable_0_10@7001 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'savevm.c')
-rw-r--r--savevm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/savevm.c b/savevm.c
index 3b4941448b..f2463e780e 100644
--- a/savevm.c
+++ b/savevm.c
@@ -366,6 +366,11 @@ int qemu_file_has_error(QEMUFile *f)
return f->has_error;
}
+void qemu_file_set_error(QEMUFile *f)
+{
+ f->has_error = 1;
+}
+
void qemu_fflush(QEMUFile *f)
{
if (!f->put_buffer)