aboutsummaryrefslogtreecommitdiffstats
path: root/android/hw-pipe-net.c
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 /android/hw-pipe-net.c
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 'android/hw-pipe-net.c')
-rw-r--r--android/hw-pipe-net.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/android/hw-pipe-net.c b/android/hw-pipe-net.c
index 193d60b..c2a7e9e 100644
--- a/android/hw-pipe-net.c
+++ b/android/hw-pipe-net.c
@@ -442,6 +442,8 @@ static const GoldfishPipeFuncs netPipeTcp_funcs = {
netPipe_recvBuffers,
netPipe_poll,
netPipe_wakeOn,
+ NULL, /* we can't save these */
+ NULL, /* we can't load these */
};
#ifndef _WIN32
@@ -452,6 +454,8 @@ static const GoldfishPipeFuncs netPipeUnix_funcs = {
netPipe_recvBuffers,
netPipe_poll,
netPipe_wakeOn,
+ NULL, /* we can't save these */
+ NULL, /* we can't load these */
};
#endif
@@ -517,6 +521,8 @@ static const GoldfishPipeFuncs openglesPipe_funcs = {
netPipe_recvBuffers,
netPipe_poll,
netPipe_wakeOn,
+ NULL, /* we can't save these */
+ NULL, /* we can't load these */
};
void