From 4dabe24883ed9e538266a5deee7e2d1f1922208c Mon Sep 17 00:00:00 2001 From: aliguori Date: Sun, 5 Apr 2009 19:30:51 +0000 Subject: 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 Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6998 c046a42c-6fe2-441c-8c8c-71466251a162 --- savevm.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'savevm.c') diff --git a/savevm.c b/savevm.c index 793ea70695..70500dd57a 100644 --- a/savevm.c +++ b/savevm.c @@ -370,6 +370,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) -- cgit v1.2.1