From 871da2aa80687142bec00ef7c1112253c76c32bb Mon Sep 17 00:00:00 2001 From: Ot ten Thije Date: Mon, 20 Sep 2010 10:29:22 +0100 Subject: Added state snapshot support for QemuD. With this patch, both modem and sensor functionality are correctly restored when a state snapshot is loaded. This was not the case previously because communication with either of these services is done using the qemud daemon, which did not support snapshots. The boot-properties and charpipe services have no specific save/load functionality yet, since the framework itself should be reviewed first. Adding support for bootproperties should not be difficult though, and charpipe may not need it. For a description of the high-level process for saving and loading, consult section IV "State snapshots" in docs/ANDROID-QEMUD.TXT. Change-Id: I5b06d88b911ca096e78060163174904c48a01c66 --- hw/hw.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw') diff --git a/hw/hw.h b/hw/hw.h index a826a72..4f9b650 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -63,6 +63,7 @@ static inline void qemu_put_ubyte(QEMUFile *f, unsigned int v) void qemu_put_be16(QEMUFile *f, unsigned int v); void qemu_put_be32(QEMUFile *f, unsigned int v); void qemu_put_be64(QEMUFile *f, uint64_t v); +void qemu_put_float(QEMUFile *f, float v); int qemu_get_buffer(QEMUFile *f, uint8_t *buf, int size); int qemu_get_byte(QEMUFile *f); @@ -76,6 +77,7 @@ static inline unsigned int qemu_get_ubyte(QEMUFile *f) unsigned int qemu_get_be16(QEMUFile *f); unsigned int qemu_get_be32(QEMUFile *f); uint64_t qemu_get_be64(QEMUFile *f); +float qemu_get_float(QEMUFile *f); int qemu_file_rate_limit(QEMUFile *f); size_t qemu_file_set_rate_limit(QEMUFile *f, size_t new_rate); size_t qemu_file_get_rate_limit(QEMUFile *f); -- cgit v1.1