summaryrefslogtreecommitdiff
path: root/payload_constants.h
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2015-09-11 16:13:16 -0700
committerAlex Deymo <deymo@google.com>2015-09-28 17:18:35 -0700
commitcbf09896be9a627cd04dd54ef6875bed88daa3d8 (patch)
tree6f246abca6973648085cb24323156da70b11531c /payload_constants.h
parent2d528b4cd15682a7c84a415ae3cb15b7616d2b5d (diff)
Include the major version in update_engine.conf
This patch moves all the payload definition version numbers to payload_constants.h and exposes the supported one in the .conf file. Bug: 23946683 Test: Added unittest to match the .conf file with the code. Change-Id: I7d84d2aa3c85d2b4d5da8bf102aa9bf99acc0136
Diffstat (limited to 'payload_constants.h')
-rw-r--r--payload_constants.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/payload_constants.h b/payload_constants.h
index 188ea84d..21dab005 100644
--- a/payload_constants.h
+++ b/payload_constants.h
@@ -23,6 +23,22 @@
namespace chromeos_update_engine {
+// The major version used by Chrome OS.
+extern const uint64_t kChromeOSMajorPayloadVersion;
+
+// The major version used by Brillo.
+extern const uint64_t kBrilloMajorPayloadVersion;
+
+// The minor version used for all full payloads.
+extern const uint32_t kFullPayloadMinorVersion;
+
+// The minor version used by the in-place delta generator algorithm.
+extern const uint32_t kInPlaceMinorPayloadVersion;
+
+// The minor version used by the A to B delta generator algorithm.
+extern const uint32_t kSourceMinorPayloadVersion;
+
+
// The kernel and rootfs partition names used by the BootControlInterface when
// handling update payloads with a major version 1. The names of the updated
// partitions are include in the payload itself for major version 2.