aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-01-29 21:53:01 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-01-29 21:53:01 +0000
commita65ff1b6e2bf87efbe147aec396076373abbffb3 (patch)
tree99d220991150ed175717cb8805e08e2e729066cf
parentb25e83b5c1a1125cdd4a21acbbb5c9f67baea2e9 (diff)
parent26b027d4bc5a5489c1144b3c921af3fd62d8f7b1 (diff)
downloadaemu-a65ff1b6e2bf87efbe147aec396076373abbffb3.tar.gz
Snap for 11373871 from 26b027d4bc5a5489c1144b3c921af3fd62d8f7b1 to emu-34-2-release
Change-Id: Id88417d52488a7f918b3a0104e4719d61662b023
-rw-r--r--snapshot/include/snapshot/common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/snapshot/include/snapshot/common.h b/snapshot/include/snapshot/common.h
index bc4d3cf..c62ffc0 100644
--- a/snapshot/include/snapshot/common.h
+++ b/snapshot/include/snapshot/common.h
@@ -18,6 +18,8 @@
#include "interface.h"
+#include "aemu/base/files/Stream.h"
+
#include <memory>
#include <string>
#include <stdint.h>
@@ -45,6 +47,16 @@ using ITextureSaverPtr = std::shared_ptr<ITextureSaver>;
using ITextureLoaderPtr = std::shared_ptr<ITextureLoader>;
using ITextureLoaderWPtr = std::weak_ptr<ITextureLoader>;
+struct SnapshotSaveStream {
+ android::base::Stream* stream = nullptr;
+ ITextureSaverPtr textureSaver;
+};
+
+struct SnapshotLoadStream {
+ android::base::Stream* stream = nullptr;
+ ITextureLoaderPtr textureLoader;
+};
+
// Taken from exec.c, these #defines
// are for the |flags| field in SnapshotRamBlock.
#define SNAPSHOT_RAM_MAPPED_SHARED (1 << 1)