summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/SharedCache.h
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache/core/SharedCache.h')
-rw-r--r--view/sharedcache/core/SharedCache.h31
1 files changed, 10 insertions, 21 deletions
diff --git a/view/sharedcache/core/SharedCache.h b/view/sharedcache/core/SharedCache.h
index 1dcc3033..a0d4e596 100644
--- a/view/sharedcache/core/SharedCache.h
+++ b/view/sharedcache/core/SharedCache.h
@@ -23,7 +23,6 @@ namespace SharedCacheCore {
DSCViewStateLoadedWithImages,
};
-
const std::string SharedCacheMetadataTag = "SHAREDCACHE-SharedCacheData";
struct MemoryRegion : public MetadataSerializable<MemoryRegion>
@@ -91,26 +90,6 @@ namespace SharedCacheCore {
}
};
- struct BackingCache : public MetadataSerializable<BackingCache>
- {
- std::string path;
- bool isPrimary = false;
- std::vector<std::pair<uint64_t, std::pair<uint64_t, uint64_t>>> mappings;
-
- void Store(SerializationContext& context) const
- {
- MSS(path);
- MSS(isPrimary);
- MSS(mappings);
- }
- void Load(DeserializationContext& context)
- {
- MSL(path);
- MSL(isPrimary);
- MSL(mappings);
- }
- };
-
#if defined(__GNUC__) || defined(__clang__)
#define PACKED_STRUCT __attribute__((packed))
#else
@@ -132,6 +111,16 @@ namespace SharedCacheCore {
uint32_t initProt;
};
+ struct BackingCache : public MetadataSerializable<BackingCache>
+ {
+ std::string path;
+ bool isPrimary = false;
+ std::vector<dyld_cache_mapping_info> mappings;
+
+ void Store(SerializationContext& context) const;
+ void Load(DeserializationContext& context);
+ };
+
struct LoadedMapping
{
std::shared_ptr<MMappedFileAccessor> backingFile;