diff options
author | Kelvin Zhang <zhangkelvin@google.com> | 2021-11-19 20:15:33 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-11-19 20:15:33 +0000 |
commit | 1de48bf84e890cc22f397ccece799fc67554a77f (patch) | |
tree | e796a37895a74a9ecffab0478f63011c8711b73c /version_info.h | |
parent | 7be427590935bc88198d32004449ccfcf60b60d4 (diff) | |
parent | dd0b6e3bf2772b7aa743d157d3070bd6cd204a6e (diff) | |
download | zucchini-1de48bf84e890cc22f397ccece799fc67554a77f.tar.gz |
Merge remote-tracking branch 'aosp/upstream-main' am: a2c45bea23 am: 0d1306182f am: dd0b6e3bf2
Original change: https://android-review.googlesource.com/c/platform/external/zucchini/+/1895428
Change-Id: Id00baf17a5e0ed9850acb726af82cca3c5dcd09f
Diffstat (limited to 'version_info.h')
-rw-r--r-- | version_info.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/version_info.h b/version_info.h new file mode 100644 index 0000000..c6d2fac --- /dev/null +++ b/version_info.h @@ -0,0 +1,30 @@ +// Copyright 2021 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef COMPONENTS_ZUCCHINI_VERSION_INFO_H_ +#define COMPONENTS_ZUCCHINI_VERSION_INFO_H_ + +// This file serves as a stable location for main Zucchini version constants, +// whose names and types should also be stable. These allow external tools to +// determine Zucchini version at compile time by inclusion or parsing. + +namespace zucchini { + +// A change in major version indicates breaking changes such that a patch +// definitely cannot be applied by a zucchini binary whose major version doesn't +// match. +enum : uint16_t { kMajorVersion = 1 }; + +// A change in minor version indicates possibly breaking changes at the element +// level, such that it may not be possible to apply a patch whose minor version +// doesn't match this version. To determine if a given patch may be applied with +// this version, VerifyPatch() should be called. +enum : uint16_t { kMinorVersion = 0 }; + +// A empty or error value for major or minor version numbers. +enum : uint16_t { kInvalidVersion = 0xffff }; + +} // namespace zucchini + +#endif // COMPONENTS_ZUCCHINI_VERSION_INFO_H_ |