summaryrefslogtreecommitdiff
path: root/savevm.c
diff options
context:
space:
mode:
authorLei Li <lilei@linux.vnet.ibm.com>2013-09-04 17:02:34 +0800
committerJuan Quintela <quintela@trasno.org>2013-09-24 13:22:08 +0200
commit675fd0a7daa484a2011895583249c88ef2a27921 (patch)
treeeec5d1c82867c5fc8b8eb205078d3994d906d2f6 /savevm.c
parentf828a4c8faa118e0ebab3e353ac6840f3b2a0318 (diff)
downloadqemu-675fd0a7daa484a2011895583249c88ef2a27921.tar.gz
savevm: add comments for qemu_file_get_error()
Add comments for qemu_file_get_error(), as its return value is not very clear. Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'savevm.c')
-rw-r--r--savevm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/savevm.c b/savevm.c
index 4a3c819fcd..a834c6f69a 100644
--- a/savevm.c
+++ b/savevm.c
@@ -566,6 +566,13 @@ QEMUFile *qemu_fopen_ops(void *opaque, const QEMUFileOps *ops)
return f;
}
+/*
+ * Get last error for stream f
+ *
+ * Return negative error value if there has been an error on previous
+ * operations, return 0 if no error happened.
+ *
+ */
int qemu_file_get_error(QEMUFile *f)
{
return f->last_error;