aboutsummaryrefslogtreecommitdiffstats
path: root/hw/hw.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2011-10-11 03:02:41 +0200
committerVladimir Chtchetkine <vchtchetkine@google.com>2011-11-08 11:41:10 -0800
commit3e92c2d49cb0e8752ce8c9a3c879c84ac3299061 (patch)
tree2b098d2ce7857f14550b688c0678a53732430cbd /hw/hw.h
parentc53b475e5bf2301da452cd2c81fed7c1fea2ec2a (diff)
downloadexternal_qemu-3e92c2d49cb0e8752ce8c9a3c879c84ac3299061.zip
external_qemu-3e92c2d49cb0e8752ce8c9a3c879c84ac3299061.tar.gz
external_qemu-3e92c2d49cb0e8752ce8c9a3c879c84ac3299061.tar.bz2
Fix snapshot crash
- Add snapshot load/save support to QEMU Pipes This adds the ability to save and load QEMU Pipe connections with snapshots. Note that by default, all loaded pipe client connections are force-fully closed on load. We don't have a good way to save the state of network connections to persistent storage. Properly implements snapshot save / load for qemu pipe clients. Change-Id: Ie5767f8ce40c8341b958cc5844e724dd4fc1ed2b
Diffstat (limited to 'hw/hw.h')
-rw-r--r--hw/hw.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/hw.h b/hw/hw.h
index d230448..292d42e 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -218,6 +218,11 @@ static inline void qemu_get_sbe64s(QEMUFile *f, int64_t *pv)
qemu_get_be64s(f, (uint64_t *)pv);
}
+#ifdef CONFIG_ANDROID
+void qemu_put_string(QEMUFile *f, const char* str);
+char* qemu_get_string(QEMUFile *f);
+#endif
+
#ifdef NEED_CPU_H
#if TARGET_LONG_BITS == 64
#define qemu_put_betl qemu_put_be64