summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichael Lentine <mlentine@google.com>2015-05-27 17:39:22 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-05-27 17:39:23 +0000
commit338142aa81fa4e67065e82cc45bea8424db3a7f4 (patch)
tree1b23a3d2fbad9da8f8e7b0aa63e9596fe2abb751 /include
parent4b7ddd6105c44b01b473c5ed1035b6be34ba19e2 (diff)
parent60788050236ff77f84675e12efe9dba098e49870 (diff)
downloadsystem_core-338142aa81fa4e67065e82cc45bea8424db3a7f4.zip
system_core-338142aa81fa4e67065e82cc45bea8424db3a7f4.tar.gz
system_core-338142aa81fa4e67065e82cc45bea8424db3a7f4.tar.bz2
Merge "Adding a build id check to blob cache." into mnc-dev
Diffstat (limited to 'include')
-rw-r--r--include/utils/BlobCache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/utils/BlobCache.h b/include/utils/BlobCache.h
index 7d621e4..65dca9f 100644
--- a/include/utils/BlobCache.h
+++ b/include/utils/BlobCache.h
@@ -185,6 +185,12 @@ private:
// mNumEntries is number of cache entries following the header in the
// data.
size_t mNumEntries;
+
+ // mBuildId is the build id of the device when the cache was created.
+ // When an update to the build happens (via an OTA or other update) this
+ // is used to invalidate the cache.
+ int mBuildIdLength;
+ char mBuildId[];
};
// An EntryHeader is the header for a serialized cache entry. No need to